Skip to content

Dev tley git md#122

Open
tleyrer wants to merge 6 commits intomainfrom
dev_tley_git_md
Open

Dev tley git md#122
tleyrer wants to merge 6 commits intomainfrom
dev_tley_git_md

Conversation

@tleyrer
Copy link
Copy Markdown
Collaborator

@tleyrer tleyrer commented Mar 20, 2026

git guidelines for users and llms.

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add comprehensive Git workflow guide for contributors and LLM agents

📝 Documentation

Grey Divider

Walkthroughs

Description
• Add comprehensive Git workflow guide for developers and LLM agents
• Define standardized branch naming convention with strict syntax rules
• Document development workflow, commit guidelines, and PR requirements
• Include advanced Git topics: stash, squash commits, conflict resolution
• Establish branch protection and merge strategy best practices
Diagram
flowchart LR
  A["Git Workflow Guide"] --> B["Branch Naming Convention"]
  A --> C["Development Workflow"]
  A --> D["Commit Rules"]
  A --> E["PR Guidelines"]
  A --> F["Advanced Topics"]
  B --> G["dev_author_type_subject format"]
  C --> H["Create branch from main"]
  C --> I["Commit and push changes"]
  C --> J["Open PR for review"]
  F --> K["Stash, Squash, Amend"]
  F --> L["Conflict Resolution"]
  E --> M["Squash and Merge strategy"]
Loading

Grey Divider

File Changes

1. docs/git_user_and_llm_guide.md 📝 Documentation +483/-0

Comprehensive Git workflow and contribution guidelines

• Created new comprehensive Git workflow documentation with 15 sections covering core principles,
 branch naming, development workflow, and commit guidelines
• Defined strict branch naming convention: dev_<author>_<type>_<subject> with examples for human
 developers and LLM agents
• Documented step-by-step development workflow from repository update through PR merge
• Included advanced Git topics: stash, squash commits, amend, conflict resolution with practical
 examples
• Established PR review guidelines, merge strategy (squash and merge), branch protection rules, and
 LLM contribution rules

docs/git_user_and_llm_guide.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 20, 2026

Code Review by Qodo

🐞 Bugs (7) 📘 Rule violations (3) 📎 Requirement gaps (0) 📐 Spec deviations (0)

Grey Divider


Action required

1. Branch naming contradiction 🐞 Bug ✓ Correctness ⭐ New
Description
Section 2 says the naming syntax is <author>_<subject>, but the actual format and examples require
dev_<author>_<type>_<subject>, which can lead to nonconforming branches.
Code

docs/git_user_and_llm_guide.md[R32-43]

+# 2. Branch Naming Convention
+
+## 2. Branch Naming Convention
+
+To ensure consistency and traceability, all development branches should follow the naming syntax of <author>_<subject>. 
+<author> is however you choose to identify yourself, while <subject> is a short description of the change.
+
+## Branch Name Format
+
+```
+dev_<author>_<type>_<subject>
+```
Evidence
The prose describes a 2-field format, while the code block immediately below defines a 4-field
format used by all examples.

docs/git_user_and_llm_guide.md[32-43]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The branch naming section gives two incompatible formats: a 2-part `&lt;author&gt;_&lt;subject&gt;` description and a 4-part `dev_&lt;author&gt;_&lt;type&gt;_&lt;subject&gt;` format. This is self-contradictory and will confuse contributors.

## Issue Context
All examples in the guide follow the 4-part format, so the 2-part description appears incorrect.

## Fix Focus Areas
- docs/git_user_and_llm_guide.md[32-43]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Trailing whitespace in guide 📘 Rule violation ⚙ Maintainability
Description
The new documentation file contains trailing whitespace at the ends of multiple lines, which
violates the repository documentation style requirements and can create noisy diffs. Remove trailing
spaces to keep formatting consistent and review-friendly.
Code

docs/git_user_and_llm_guide.md[R5-6]

+**Entry points:** This guide is intended to be discovered via the repository’s contributor documentation 
+(for example, `docs/contributing.md` and/or `README.md`). If you are reading this in isolation, 
Evidence
PR Compliance ID 21 requires documentation to have no trailing whitespace. Lines 5-6, 134, and 498
in the newly added guide end with a trailing space.

docs/git_user_and_llm_guide.md[5-6]
docs/git_user_and_llm_guide.md[134-134]
docs/git_user_and_llm_guide.md[498-498]
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The markdown guide includes trailing whitespace at end-of-line on multiple lines, violating documentation whitespace hygiene rules.
## Issue Context
Trailing whitespace creates noisy diffs and can break style checks.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[5-6]
- docs/git_user_and_llm_guide.md[134-134]
- docs/git_user_and_llm_guide.md[498-498]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Lines exceed 129 columns 📘 Rule violation ⚙ Maintainability
Description
Multiple added documentation lines exceed the 129-column hard limit, reducing readability and
violating the repository line-length policy. These lines should be reflowed or reformatted (for
example, wrap prose and split wide tables).
Code

docs/git_user_and_llm_guide.md[144]

+> **Note:** Prefer `git add <specific files>` over `git add .` to avoid accidentally staging untracked or generated files. Use `git status` to review what will be staged.
Evidence
The checklist sets a hard maximum of 129 columns per line. The cited added lines match a ^.{130,}$
pattern, demonstrating they exceed the hard limit.

docs/git_user_and_llm_guide.md[41-46]
docs/git_user_and_llm_guide.md[144-144]
docs/git_user_and_llm_guide.md[325-325]
docs/git_user_and_llm_guide.md[365-365]
docs/git_user_and_llm_guide.md[490-490]
Best Practice: Repository guidelines

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Several lines in `docs/git_user_and_llm_guide.md` exceed the 129-character hard line-length limit.
## Issue Context
This is documentation content (tables and paragraphs) that can be reformatted without changing meaning.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[41-46]
- docs/git_user_and_llm_guide.md[144-144]
- docs/git_user_and_llm_guide.md[325-325]
- docs/git_user_and_llm_guide.md[365-365]
- docs/git_user_and_llm_guide.md[490-490]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (8)
4. Inline shell commands unfenced📘 Rule violation ⚙ Maintainability
Description
The documentation presents user-entered shell commands inline (backticks/parentheses) instead of
fenced code blocks, which can break copy/paste and wrapping. Commands intended for users should be
in fenced blocks per the docs policy.
Code

docs/git_user_and_llm_guide.md[241]

+`git stash` temporarily saves uncommitted changes.
Evidence
The checklist requires user-entered shell commands to be shown as fenced code blocks. The cited
added lines include shell commands inline (for example, git stash and `git push
--force-with-lease`), which violates that requirement.

docs/git_user_and_llm_guide.md[241-241]
docs/git_user_and_llm_guide.md[144-144]
docs/git_user_and_llm_guide.md[325-325]
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Some shell commands intended for users are presented inline rather than as fenced code blocks.
## Issue Context
Inline commands can wrap unpredictably and are less copy/paste-friendly; the docs standard requires fenced code blocks for user-entered commands.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[144-144]
- docs/git_user_and_llm_guide.md[241-241]
- docs/git_user_and_llm_guide.md[325-325]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Ambiguous branch update method 🐞 Bug ⚙ Maintainability
Description
The new guide recommends rebasing onto origin/main but also suggests using GitHub’s “Update branch”
button as an alternative, which conflicts with the existing contributing guide’s explicit rebase
instruction. This will lead to inconsistent branch update practices and undermines the repo’s stated
“rebase” workflow for keeping branches current.
Code

docs/git_user_and_llm_guide.md[R335-342]

+```bash
+git checkout dev_tley_feature_my-work
+git fetch origin
+git rebase origin/main
+```
+
+Alternatively, use the **"Update branch"** button on the GitHub PR page.
+
Evidence
The new guide presents rebase and “Update branch” as interchangeable, while the existing contributor
checklist instructs rebasing onto main; these are different workflows and the docs will send
contributors in different directions.

docs/git_user_and_llm_guide.md[333-342]
docs/contributing.md[98-106]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new Git guide mixes two different ways of bringing a PR branch up to date (CLI rebase and GitHub “Update branch”) without clarifying which is the repo standard. This conflicts with the existing `docs/contributing.md` instruction to rebase onto `main`.
## Issue Context
- `docs/contributing.md` currently documents rebasing onto main before PR.
- `docs/git_user_and_llm_guide.md` should either align with that, or clearly explain when/why another method is acceptable.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[333-342]
- docs/contributing.md[98-106]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Workflow guide not discoverable🐞 Bug ⚙ Maintainability
Description
The new workflow guide is not linked from README.md or docs/contributing.md, which are the primary
entry points for contributors. This makes it unlikely the “standard workflow” will be found/followed
and increases risk of diverging contributor guidance across docs.
Code

docs/git_user_and_llm_guide.md[R1-15]

+# Git Development Workflow Guide
+
+This document defines the **standard Git workflow** for contributors and LLM agents working on this repository.
+
+It describes:
+
+* branch naming rules
+* development workflow
+* commit guidelines
+* pull request rules
+* merge strategy
+* advanced Git topics
+
+The goal is to maintain a **clean, traceable, and automation-friendly repository history**.
+
Evidence
README directs contributors only to docs/contributing.md, and there are no markdown references to
the new guide elsewhere, so the new document is effectively orphaned.

README.md[144-150]
docs/git_user_and_llm_guide.md[1-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`docs/git_user_and_llm_guide.md` is added as the “standard Git workflow” but is not referenced from the repo’s contributor entry points, so contributors won’t discover it.
## Issue Context
README currently links only to `./docs/contributing.md`. Add a link to the new guide from README and/or from `docs/contributing.md` to avoid two disconnected sources of truth.
## Fix Focus Areas
- README.md[147-150]
- docs/contributing.md[1-20]
- docs/git_user_and_llm_guide.md[1-15]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. e.g., used in docs📘 Rule violation ⚙ Maintainability
Description
The new documentation uses e.g., instead of the required phrasing for example, which violates
the repository-wide documentation wording standard. The same line is also far beyond the hard
129-character limit, reducing readability and breaking formatting rules.
Code

docs/git_user_and_llm_guide.md[410]

+1. Use `llm` as the `<author>` field in the branch name (e.g., `dev_llm_feature_...`). If a specific agent identifier is preferred (e.g., `copilot`), it may be used instead, but must be lowercase and consistent.
Evidence
PR Compliance ID 12 forbids e.g., and sets a hard 129-column limit; the added list item at line
410 contains e.g., (twice) and is a single very long line. PR Compliance ID 15 additionally
requires doc style consistency and respecting preferred line length.

docs/git_user_and_llm_guide.md[410-410]
Best Practice: Repository guidelines
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The documentation uses prohibited shorthand (`e.g.,`) and contains at least one line that exceeds the hard 129-column limit.
## Issue Context
Repository standards require using preferred phrasing (use `for example`, not `e.g.,`) and keeping lines within the configured line-length limits.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[410-410]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


8. Missing final newline📘 Rule violation ⚙ Maintainability
Description
The new markdown file does not end with a newline, violating the repository’s EOL/formatting
requirements and creating avoidable diff noise across tooling. The last line also contains an
unclosed ** marker, which can render the final sentence incorrectly.
Code

docs/git_user_and_llm_guide.md[483]

+This workflow enables **efficient collaboration between human developers and LLM agents while keeping the repository maintainable and traceable.
Evidence
PR Compliance ID 12 requires Unix LF and consistent file formatting; the PR diff explicitly
indicates \ No newline at end of file, and the last added line shows the unterminated bold marker.

docs/git_user_and_llm_guide.md[483-483]
Best Practice: Repository guidelines

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The markdown file is missing a trailing newline at EOF (explicitly flagged in the diff) and the final sentence contains an unclosed bold marker (`**`).
## Issue Context
Repository formatting standards require consistent EOL handling; missing EOF newline can cause tooling issues and noisy diffs.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[483-483]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. Wrong section reference🐞 Bug ✓ Correctness
Description
In “Core Principles” the guide points readers to “Section 14” for branch protection rules, but
branch protection is defined in Section 13 and Section 14 is an example workflow. This misdirects
readers from a key rule referenced at the top of the document.
Code

docs/git_user_and_llm_guide.md[20]

+1. **Never commit directly to `main`.** (Enforce via branch protection rules — see Section 14.)
Evidence
Line 20 directs users to Section 14 for branch protection rules, but the actual “Branch Protection”
section is numbered 13 and Section 14 is “Example Full Workflow.”

docs/git_user_and_llm_guide.md[18-26]
docs/git_user_and_llm_guide.md[437-451]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The guide references the wrong section number for branch protection rules, which will send readers to the wrong part of the document.
### Issue Context
“Branch Protection” is Section 13, while Section 14 is “Example Full Workflow”.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[18-26]
### Suggested change
Update “see Section 14” to “see Section 13” (or “see Section 13: Branch Protection”).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


10. Broken blockquote code fence🐞 Bug ⚙ Maintainability
Description
The force-push warning opens a fenced code block inside a blockquote, but the command line is not
prefixed with > so it will render outside the warning block. This breaks formatting around an
important safety note.
Code

docs/git_user_and_llm_guide.md[R306-310]

+> **Warning:** After squashing, you must force-push the branch:
+> ```
+git push --force-with-lease origin <branch-name>
+> ```
+> Only do this on **development branches**, never on `main`. Coordinate with collaborators if the branch is shared.
Evidence
Within the blockquote, the opening and closing backticks are quoted (>), but the git push ...
line is not, which breaks Markdown blockquote formatting for fenced blocks.

docs/git_user_and_llm_guide.md[306-310]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A fenced code block is intended to be inside a blockquote warning, but one line is missing the `&amp;amp;amp;amp;amp;amp;amp;amp;gt;` prefix, so Markdown will render the command outside the warning.
### Issue Context
In Markdown, every line inside a blockquote (including fenced code block content) must be prefixed with `&amp;amp;amp;amp;amp;amp;amp;amp;gt;`.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[306-310]
### Suggested change
Change to a fully-quoted block, e.g.:

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


11. Broken list code blocks🐞 Bug ⚙ Maintainability
Description
In the conflict resolution numbered list, fenced code blocks are inconsistently indented and the
command lines are not indented under the list items. This can terminate the list early and render
the commands outside their intended steps.
Code

docs/git_user_and_llm_guide.md[R345-358]

+1. Git will pause the rebase and indicate conflicting files.
+2. Open each conflicting file and resolve the conflicts manually.
+3. Stage the resolved files:
+   ```
+git add <resolved-file>
+   ```
+4. Continue the rebase:
+   ```
+git rebase --continue
+   ```
+5. Force-push the updated branch:
+   ```
+git push --force-with-lease origin <branch-name>
+   ```
Evidence
The list items introduce fenced blocks (steps 3–5), but the code lines (e.g., git add ..., `git
rebase --continue, git push ...`) are not indented to match the fenced block indentation within
the list, causing Markdown parsing/rendering issues.

docs/git_user_and_llm_guide.md[343-359]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Fenced code blocks inside the numbered list are not properly indented, and their code lines are unindented. This breaks Markdown list continuation and can render commands outside the intended steps.
### Issue Context
For fenced code blocks inside list items, indent the opening fence, code lines, and closing fence consistently under the list item.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[343-359]
### Suggested change
Ensure each block is consistently indented, e.g.:

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

12. Duplicate section 2 heading 📘 Rule violation ⚙ Maintainability ⭐ New
Description
The document uses both # 2. Branch Naming Convention and ## 2. Branch Naming Convention
back-to-back, which is inconsistent heading structure and reduces documentation readability.
Code

docs/git_user_and_llm_guide.md[R32-36]

+# 2. Branch Naming Convention
+
+## 2. Branch Naming Convention
+
+To ensure consistency and traceability, all development branches should follow the naming syntax of <author>_<subject>. 
Evidence
PR Compliance ID 26 requires consistent documentation style and headings; the same section title is
repeated at two different heading levels immediately one after the other.

docs/git_user_and_llm_guide.md[32-36]
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Section 2 is declared twice in a row using different heading levels (`#` then `##`) with the same text, creating inconsistent heading structure.

## Issue Context
Consistent heading hierarchy improves navigation (TOC generation), readability, and adherence to documentation style rules.

## Fix Focus Areas
- docs/git_user_and_llm_guide.md[32-36]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


13. Hardcoded GitHub docs link 🐞 Bug ⚙ Maintainability
Description
The guide links to an internal repo doc via an absolute GitHub URL pinned to main, which can break
for forks/offline clones and diverges from the repo’s existing relative-link style. This makes the
documentation less portable and harder to maintain.
Code

docs/git_user_and_llm_guide.md[134]

+See https://github.com/TexasInstruments/open-pru/blob/main/docs/open_pru_create_new_project.md 
Evidence
The new guide uses an absolute GitHub URL for a document that already exists in-repo and is linked
relatively elsewhere, indicating the absolute link is unnecessary and less robust.

docs/git_user_and_llm_guide.md[133-135]
docs/contributing.md[66-69]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`docs/git_user_and_llm_guide.md` links to an internal repository document using an absolute GitHub URL (pinned to `main`). This is less portable for forks/offline usage and inconsistent with existing docs.
### Issue Context
`docs/contributing.md` already references the same document using a relative link.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[133-135]
- docs/contributing.md[66-69]
### Expected change
Replace the absolute URL with a relative markdown link, e.g. `See [Creating a New Project in the OpenPRU Repo](./open_pru_create_new_project.md)` (or similar).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


14. Commit template inconsistent 🐞 Bug ⚙ Maintainability
Description
The commit message template is internally inconsistent: it includes the ungrammatical line "Describe
what if modified." above the :  line, while the examples below use : as the first line.
Contributors copying the template will produce commit messages that don’t match the guide’s own
examples.
Code

docs/git_user_and_llm_guide.md[R178-184]

+```
+Describe what if modified.
+
+<type>: <short description>
+
+more detailed description
+```
Evidence
The template format conflicts with the examples immediately below it, and the template contains a
clear grammar error, making it likely contributors will follow the wrong structure.

docs/git_user_and_llm_guide.md[176-184]
docs/git_user_and_llm_guide.md[196-203]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The commit message template is contradictory to the examples and contains a grammar error (&amp;amp;quot;Describe what if modified.&amp;amp;quot;). This undermines the goal of standardized, automation-friendly commit messages.
### Issue Context
Examples show `feat:`/`fix:`/`docs:` as the first line, but the template puts a different line above that.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[176-184]
- docs/git_user_and_llm_guide.md[196-203]
### Expected change
Update the template to match the examples, e.g.:

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (2)
15. Conflicting pull/rebase guidance 🐞 Bug ✓ Correctness
Description
The guide instructs git pull origin main for updating local main, but the existing contributing
checklist requires git pull --rebase origin main, creating inconsistent workflow guidance in the
repo.
Code

docs/git_user_and_llm_guide.md[R114-119]

+## Step 1 — Update Local Repository
+
+```
+git checkout main
+git pull origin main
+```
Evidence
Existing contributor guidance explicitly says to rebase when pulling main, while the new guide’s
Step 1 uses a plain pull. The new guide later recommends rebasing (git rebase origin/main),
reinforcing that the intended approach is rebase-based, not merge-based pull.

docs/git_user_and_llm_guide.md[114-120]
docs/contributing.md[98-106]
docs/git_user_and_llm_guide.md[334-340]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The repo now documents two different ways to update `main` (`git pull origin main` vs `git pull --rebase origin main`). This is inconsistent and will confuse contributors.
### Issue Context
`docs/contributing.md` already prescribes `git pull --rebase origin main`.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[114-120]
- docs/git_user_and_llm_guide.md[458-473]
- docs/contributing.md[98-106]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


16. Redundant squashing guidance 🐞 Bug ⚙ Maintainability
Description
The guide states the repo uses “Squash and Merge”, but also tells contributors to squash commits in
their branch before merging, including force-pushing. This is redundant with squash-merge and can
confuse reviewers/contributors about whether history rewriting is required or optional.
Code

docs/git_user_and_llm_guide.md[R276-310]

+## 7.2 Combine (Squash) Commits
+
+Before merging a branch, combine small commits into **one clean commit**.
+
+### Interactive Rebase
+
+```
+git rebase -i HEAD~5
+```
+
+Example:
+
+```
+pick 1234 initial code
+squash 5678 fix typo
+squash 9abc formatting
+```
+
+Final result:
+
+```
+feat: implement PRU instruction test library
+```
+
+Benefits:
+
+* cleaner history
+* easier review
+* simpler debugging
+
+> **Warning:** After squashing, you must force-push the branch:
+> ```bash
+> git push --force-with-lease origin <branch-name>
+> ```
+> Only do this on **development branches**, never on `main`. Coordinate with collaborators if the branch is shared.
Evidence
Section 7.2 frames manual squashing as a pre-merge requirement, while Section 10 declares
squash-merge as the merge strategy that already yields a single commit on main; the combination
reads like two different requirements for achieving the same end state.

docs/git_user_and_llm_guide.md[276-310]
docs/git_user_and_llm_guide.md[393-401]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The doc mandates manual squashing/force-push “before merging” while also stating the repository uses “Squash and Merge”. This is redundant and can mislead contributors into unnecessary history rewriting.
## Issue Context
If the repo’s standard is GitHub “Squash and Merge”, then manual squashing should be described as optional (e.g., only to clean up a messy branch before review), or removed to avoid mixed signals.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[276-310]
- docs/git_user_and_llm_guide.md[393-401]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Advisory comments

17. Duplicated word in bullet 🐞 Bug ⚙ Maintainability
Description
A Step 7 bullet contains a duplicated word ("branch branch"), reducing clarity in a prescriptive
workflow section.
Code

docs/git_user_and_llm_guide.md[170]

+* feature branch branch should be deleted by contributor
Evidence
The bullet has a repeated word that should be removed for readability.

docs/git_user_and_llm_guide.md[167-171]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Step 7 bullet has a duplicated word: &amp;amp;quot;feature branch branch&amp;amp;quot;.
### Issue Context
This is in the merge step checklist.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[169-170]
### Expected change
Edit the bullet to remove the duplicate word, e.g. &amp;amp;quot;feature branch should be deleted by contributor&amp;amp;quot;.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Grey Divider

Previous review results

Review updated until commit 6998087

Results up to commit N/A


🐞 Bugs (6) 📘 Rule violations (2) 📎 Requirement gaps (0) 📐 Spec deviations (0)

Grey Divider
Action required
1. Trailing whitespace in guide 📘 Rule violation ⚙ Maintainability
Description
The new documentation file contains trailing whitespace at the ends of multiple lines, which
violates the repository documentation style requirements and can create noisy diffs. Remove trailing
spaces to keep formatting consistent and review-friendly.
Code

docs/git_user_and_llm_guide.md[R5-6]

+**Entry points:** This guide is intended to be discovered via the repository’s contributor documentation 
+(for example, `docs/contributing.md` and/or `README.md`). If you are reading this in isolation, 
Evidence
PR Compliance ID 21 requires documentation to have no trailing whitespace. Lines 5-6, 134, and 498
in the newly added guide end with a trailing space.

docs/git_user_and_llm_guide.md[5-6]
docs/git_user_and_llm_guide.md[134-134]
docs/git_user_and_llm_guide.md[498-498]
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The markdown guide includes trailing whitespace at end-of-line on multiple lines, violating documentation whitespace hygiene rules.
## Issue Context
Trailing whitespace creates noisy diffs and can break style checks.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[5-6]
- docs/git_user_and_llm_guide.md[134-134]
- docs/git_user_and_llm_guide.md[498-498]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Lines exceed 129 columns 📘 Rule violation ⚙ Maintainability
Description
Multiple added documentation lines exceed the 129-column hard limit, reducing readability and
violating the repository line-length policy. These lines should be reflowed or reformatted (for
example, wrap prose and split wide tables).
Code

docs/git_user_and_llm_guide.md[144]

+> **Note:** Prefer `git add <specific files>` over `git add .` to avoid accidentally staging untracked or generated files. Use `git status` to review what will be staged.
Evidence
The checklist sets a hard maximum of 129 columns per line. The cited added lines match a ^.{130,}$
pattern, demonstrating they exceed the hard limit.

docs/git_user_and_llm_guide.md[41-46]
docs/git_user_and_llm_guide.md[144-144]
docs/git_user_and_llm_guide.md[325-325]
docs/git_user_and_llm_guide.md[365-365]
docs/git_user_and_llm_guide.md[490-490]
Best Practice: Repository guidelines

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Several lines in `docs/git_user_and_llm_guide.md` exceed the 129-character hard line-length limit.
## Issue Context
This is documentation content (tables and paragraphs) that can be reformatted without changing meaning.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[41-46]
- docs/git_user_and_llm_guide.md[144-144]
- docs/git_user_and_llm_guide.md[325-325]
- docs/git_user_and_llm_guide.md[365-365]
- docs/git_user_and_llm_guide.md[490-490]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Inline shell commands unfenced📘 Rule violation ⚙ Maintainability
Description
The documentation presents user-entered shell commands inline (backticks/parentheses) instead of
fenced code blocks, which can break copy/paste and wrapping. Commands intended for users should be
in fenced blocks per the docs policy.
Code

docs/git_user_and_llm_guide.md[241]

+`git stash` temporarily saves uncommitted changes.
Evidence
The checklist requires user-entered shell commands to be shown as fenced code blocks. The cited
added lines include shell commands inline (for example, git stash and `git push
--force-with-lease`), which violates that requirement.

docs/git_user_and_llm_guide.md[241-241]
docs/git_user_and_llm_guide.md[144-144]
docs/git_user_and_llm_guide.md[325-325]
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Some shell commands intended for users are presented inline rather than as fenced code blocks.
## Issue Context
Inline commands can wrap unpredictably and are less copy/paste-friendly; the docs standard requires fenced code blocks for user-entered commands.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[144-144]
- docs/git_user_and_llm_guide.md[241-241]
- docs/git_user_and_llm_guide.md[325-325]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (7)
4. Ambiguous branch update method 🐞 Bug ⚙ Maintainability
Description
The new guide recommends rebasing onto origin/main but also suggests using GitHub’s “Update branch”
button as an alternative, which conflicts with the existing contributing guide’s explicit rebase
instruction. This will lead to inconsistent branch update practices and undermines the repo’s stated
“rebase” workflow for keeping branches current.
Code

docs/git_user_and_llm_guide.md[R335-342]

+```bash
+git checkout dev_tley_feature_my-work
+git fetch origin
+git rebase origin/main
+```
+
+Alternatively, use the **"Update branch"** button on the GitHub PR page.
+
Evidence
The new guide presents rebase and “Update branch” as interchangeable, while the existing contributor
checklist instructs rebasing onto main; these are different workflows and the docs will send
contributors in different directions.

docs/git_user_and_llm_guide.md[333-342]
docs/contributing.md[98-106]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new Git guide mixes two different ways of bringing a PR branch up to date (CLI rebase and GitHub “Update branch”) without clarifying which is the repo standard. This conflicts with the existing `docs/contributing.md` instruction to rebase onto `main`.
## Issue Context
- `docs/contributing.md` currently documents rebasing onto main before PR.
- `docs/git_user_and_llm_guide.md` should either align with that, or clearly explain when/why another method is acceptable.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[333-342]
- docs/contributing.md[98-106]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Workflow guide not discoverable🐞 Bug ⚙ Maintainability
Description
The new workflow guide is not linked from README.md or docs/contributing.md, which are the primary
entry points for contributors. This makes it unlikely the “standard workflow” will be found/followed
and increases risk of diverging contributor guidance across docs.
Code

docs/git_user_and_llm_guide.md[R1-15]

+# Git Development Workflow Guide
+
+This document defines the **standard Git workflow** for contributors and LLM agents working on this repository.
+
+It describes:
+
+* branch naming rules
+* development workflow
+* commit guidelines
+* pull request rules
+* merge strategy
+* advanced Git topics
+
+The goal is to maintain a **clean, traceable, and automation-friendly repository history**.
+
Evidence
README directs contributors only to docs/contributing.md, and there are no markdown references to
the new guide elsewhere, so the new document is effectively orphaned.

README.md[144-150]
docs/git_user_and_llm_guide.md[1-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`docs/git_user_and_llm_guide.md` is added as the “standard Git workflow” but is not referenced from the repo’s contributor entry points, so contributors won’t discover it.
## Issue Context
README currently links only to `./docs/contributing.md`. Add a link to the new guide from README and/or from `docs/contributing.md` to avoid two disconnected sources of truth.
## Fix Focus Areas
- README.md[147-150]
- docs/contributing.md[1-20]
- docs/git_user_and_llm_guide.md[1-15]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. e.g., used in docs📘 Rule violation ⚙ Maintainability
Description
The new documentation uses e.g., instead of the required phrasing for example, which violates
the repository-wide documentation wording standard. The same line is also far beyond the hard
129-character limit, reducing readability and breaking formatting rules.
Code

docs/git_user_and_llm_guide.md[410]

+1. Use `llm` as the `<author>` field in the branch name (e.g., `dev_llm_feature_...`). If a specific agent identifier is preferred (e.g., `copilot`), it may be used instead, but must be lowercase and consistent.
Evidence
PR Compliance ID 12 forbids e.g., and sets a hard 129-column limit; the added list item at line
410 contains e.g., (twice) and is a single very long line. PR Compliance ID 15 additionally
requires doc style consistency and respecting preferred line length.

docs/git_user_and_llm_guide.md[410-410]
Best Practice: Repository guidelines
Best Practice: Learned patterns

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The documentation uses prohibited shorthand (`e.g.,`) and contains at least one line that exceeds the hard 129-column limit.
## Issue Context
Repository standards require using preferred phrasing (use `for example`, not `e.g.,`) and keeping lines within the configured line-length limits.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[410-410]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. Missing final newline📘 Rule violation ⚙ Maintainability
Description
The new markdown file does not end with a newline, violating the repository’s EOL/formatting
requirements and creating avoidable diff noise across tooling. The last line also contains an
unclosed ** marker, which can render the final sentence incorrectly.
Code

docs/git_user_and_llm_guide.md[483]

+This workflow enables **efficient collaboration between human developers and LLM agents while keeping the repository maintainable and traceable.
Evidence
PR Compliance ID 12 requires Unix LF and consistent file formatting; the PR diff explicitly
indicates \ No newline at end of file, and the last added line shows the unterminated bold marker.

docs/git_user_and_llm_guide.md[483-483]
Best Practice: Repository guidelines

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The markdown file is missing a trailing newline at EOF (explicitly flagged in the diff) and the final sentence contains an unclosed bold marker (`**`).
## Issue Context
Repository formatting standards require consistent EOL handling; missing EOF newline can cause tooling issues and noisy diffs.
## Fix Focus Areas
- docs/git_user_and_llm_guide.md[483-483]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


8. Wrong section reference🐞 Bug ✓ Correctness
Description
In “Core Principles” the guide points readers to “Section 14” for branch protection rules, but
branch protection is defined in Section 13 and Section 14 is an example workflow. This misdirects
readers from a key rule referenced at the top of the document.
Code

docs/git_user_and_llm_guide.md[20]

+1. **Never commit directly to `main`.** (Enforce via branch protection rules — see Section 14.)
Evidence
Line 20 directs users to Section 14 for branch protection rules, but the actual “Branch Protection”
section is numbered 13 and Section 14 is “Example Full Workflow.”

docs/git_user_and_llm_guide.md[18-26]
docs/git_user_and_llm_guide.md[437-451]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The guide references the wrong section number for branch protection rules, which will send readers to the wrong part of the document.
### Issue Context
“Branch Protection” is Section 13, while Section 14 is “Example Full Workflow”.
### Fix Focus Areas
- docs/git_user_and_llm_guide.md[18-26]
### Suggested change
Update “see Section 14” to “see Section 13” (or “see Section 13: Branch Protection”).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. Broken blockquote code fence🐞 Bug ⚙ Maintainability
Description
The force-push warning opens a fenced code block inside a blockquote, but the command line is not
prefixed with > so it will render outside the warning block. This breaks formatting around an
important safety note.
Code

docs/git_user_and_llm_guide.md[R306-310]

+> **Warning:** After squashing, you must force-push the branch:
+> ```
+git push --force-with-lease origin <branch-name>
+> ```
+> Only do this on **development branches**, never on `main`. Coordinate with collaborators if the branch is shared.
Evidence
Within the blockquote, the opening and closing backticks are quoted (>), but the git push ...
line is not, which breaks Markdown blockquote formatting for fenced blocks.

docs/git_user_and_llm_guide.md[306-310]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A fenced code block is intended to be inside a blockquote warning, but one line is missing the `&amp;amp;amp;amp;amp;amp;amp;gt;` prefix, so Markdown ...

Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md
Comment thread docs/git_user_and_llm_guide.md
Co-authored-by: tleyrer <24540697+tleyrer@users.noreply.github.com>
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add comprehensive Git development workflow guide

📝 Documentation

Grey Divider

Walkthroughs

Description
• Comprehensive Git workflow guide for developers and LLM agents
• Defines branch naming conventions, commit rules, and PR standards
• Includes advanced Git topics like stashing, rebasing, and conflict resolution
• Establishes repository hygiene and branch protection requirements
Diagram
flowchart LR
  A["Git Workflow Guide"] --> B["Branch Naming Convention"]
  A --> C["Development Workflow"]
  A --> D["Commit Rules"]
  A --> E["PR Guidelines"]
  A --> F["Advanced Topics"]
  B --> G["dev_author_type_subject format"]
  C --> H["Create branch from main"]
  D --> I["Conventional commit messages"]
  E --> J["Clear PR descriptions"]
  F --> K["Stash, Rebase, Squash"]
Loading

Grey Divider

File Changes

1. docs/git_user_and_llm_guide.md 📝 Documentation +490/-0

Comprehensive Git workflow documentation for all contributors

• New comprehensive Git workflow guide with 15 sections covering core principles, branch naming, and
 development practices
• Defines standardized branch naming format dev_<author>_<type>_<subject> with examples for human
 and LLM contributors
• Documents complete development workflow from branch creation through PR review and merge
• Includes advanced Git topics such as stashing, interactive rebasing, commit amending, and conflict
 resolution
• Specifies merge strategy using squash and merge, branch protection rules, and repository hygiene
 practices
• Provides LLM-specific contribution guidelines and full workflow examples

docs/git_user_and_llm_guide.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 20, 2026

Persistent review updated to latest commit be3df51

Comment thread docs/git_user_and_llm_guide.md Outdated
git commit -m "feat: add PRU instruction self-test framework"
```

> **Note:** Prefer `git add <specific files>` over `git add .` to avoid accidentally staging untracked or generated files. Use `git status` to review what will be staged.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Lines exceed 129 columns 📘 Rule violation ⚙ Maintainability

Multiple added documentation lines exceed the 129-column hard limit, reducing readability and
violating the repository line-length policy. These lines should be reflowed or reformatted (for
example, wrap prose and split wide tables).
Agent Prompt
## Issue description
Several lines in `docs/git_user_and_llm_guide.md` exceed the 129-character hard line-length limit.

## Issue Context
This is documentation content (tables and paragraphs) that can be reformatted without changing meaning.

## Fix Focus Areas
- docs/git_user_and_llm_guide.md[41-46]
- docs/git_user_and_llm_guide.md[144-144]
- docs/git_user_and_llm_guide.md[325-325]
- docs/git_user_and_llm_guide.md[365-365]
- docs/git_user_and_llm_guide.md[490-490]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Comment thread docs/git_user_and_llm_guide.md
Comment thread docs/git_user_and_llm_guide.md
Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md
Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md Outdated

1. **Never commit directly to `main`.** (Enforce via branch protection rules — see Section 13.)
2. All development must occur in **dedicated branches**.
3. Every change must be integrated via a **Pull Request (PR)**.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
3. Every change must be integrated via a **Pull Request (PR)**.
3. Every change must be integrated into the main branch via a **Pull Request (PR)**.

Comment thread docs/git_user_and_llm_guide.md Outdated
Comment thread docs/git_user_and_llm_guide.md
```
git status
git add <specific files>
git commit -m "feat: add PRU instruction self-test framework"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I prefer git commit -s, which signs the commits with your git ID, and (at least on Linux) opens the git commit message in a text editor to add both the title, and however many paragraph descriptions that you need. I do NOT want to encourage people to only give a title to their commit messages, and no additional context or information.

With that said, apparently you can do git commit -m "title" -m "first paragraph here" -m "second paragraph here". If you wanna document that for LLMs I suppose that is fine, but I would expect a text editor to be easier for an actual human to interact with.

Comment thread docs/git_user_and_llm_guide.md Outdated
After approval:

* PR is merged
* branch is deleted
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note that the OpenPRU repo will not delete your feature branch. We SHOULD document separately that you should delete your feature branch after it is merged though

Comment thread docs/git_user_and_llm_guide.md Outdated
docs: update PRU instruction cheat sheet reference
```

---
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I need to pivot to working on other stuff, will try to continue review at 6 later

Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add comprehensive Git workflow guide for contributors and LLM agents

📝 Documentation

Grey Divider

Walkthroughs

Description
• Comprehensive Git workflow guide for developers and LLM agents
• Defines branch naming conventions, commit rules, and PR guidelines
• Covers advanced Git topics including stash, rebase, and conflict resolution
• Establishes repository hygiene and branch protection standards
Diagram
flowchart LR
  A["Git Workflow Guide"] --> B["Branch Naming Convention"]
  A --> C["Development Workflow"]
  A --> D["Commit Rules"]
  A --> E["PR Guidelines"]
  A --> F["Advanced Git Topics"]
  A --> G["Repository Standards"]
  B --> H["dev_author_type_subject format"]
  C --> I["Create branch from main"]
  D --> J["Conventional commit messages"]
  E --> K["Clear PR descriptions"]
  F --> L["Stash, Rebase, Squash"]
  G --> M["Branch protection rules"]
Loading

Grey Divider

File Changes

1. docs/git_user_and_llm_guide.md 📝 Documentation +491/-0

Complete Git workflow guide for developers and LLM agents

• New comprehensive Git workflow documentation with 15 sections covering core principles, branch
 naming, development workflow, and commit guidelines
• Defines standardized branch naming format dev_<author>_<type>_<subject> with examples for human
 developers and LLM agents
• Includes detailed instructions for development workflow steps, commit message format, and PR
 requirements
• Documents advanced Git topics including stash, interactive rebase, squash commits, conflict
 resolution, and repository hygiene
• Establishes branch protection rules and merge strategy using squash and merge approach

docs/git_user_and_llm_guide.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 20, 2026

Persistent review updated to latest commit 333b858

Updated with Nick's feedback and shorten line length
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add comprehensive Git workflow guide for developers and LLM agents

📝 Documentation

Grey Divider

Walkthroughs

Description
• Comprehensive Git workflow guide for developers and LLM agents
• Defines branch naming conventions, commit rules, and PR standards
• Includes advanced Git topics like stashing, rebasing, and conflict resolution
• Establishes repository hygiene and branch protection requirements
Diagram
flowchart LR
  A["Core Principles"] --> B["Branch Naming Convention"]
  B --> C["Development Workflow"]
  C --> D["Commit Rules"]
  D --> E["Pull Request Rules"]
  E --> F["Advanced Git Topics"]
  F --> G["Conflict Resolution"]
  G --> H["Merge Strategy"]
  H --> I["LLM Contribution Rules"]
  I --> J["Repository Hygiene"]
Loading

Grey Divider

File Changes

1. docs/git_user_and_llm_guide.md 📝 Documentation +499/-0

Complete Git workflow documentation for contributors

• New comprehensive Git workflow guide with 15 sections covering development standards
• Defines strict branch naming convention: dev_<author>_<type>_<subject>
• Documents complete development workflow from branch creation to PR merge
• Includes commit message format, PR templates, and merge strategy guidelines
• Covers advanced topics: git stash, interactive rebase, amend, conflict resolution
• Specifies LLM agent contribution rules and repository hygiene practices
• Establishes branch protection requirements for main branch

docs/git_user_and_llm_guide.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 20, 2026

Persistent review updated to latest commit 56911d1

Comment on lines +5 to +6
**Entry points:** This guide is intended to be discovered via the repository’s contributor documentation
(for example, `docs/contributing.md` and/or `README.md`). If you are reading this in isolation,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Trailing whitespace in guide 📘 Rule violation ⚙ Maintainability

The new documentation file contains trailing whitespace at the ends of multiple lines, which
violates the repository documentation style requirements and can create noisy diffs. Remove trailing
spaces to keep formatting consistent and review-friendly.
Agent Prompt
## Issue description
The markdown guide includes trailing whitespace at end-of-line on multiple lines, violating documentation whitespace hygiene rules.

## Issue Context
Trailing whitespace creates noisy diffs and can break style checks.

## Fix Focus Areas
- docs/git_user_and_llm_guide.md[5-6]
- docs/git_user_and_llm_guide.md[134-134]
- docs/git_user_and_llm_guide.md[498-498]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Updated the branch naming convention section for clarity.
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add comprehensive Git workflow guide for contributors and LLM agents

📝 Documentation

Grey Divider

Walkthroughs

Description
• Comprehensive Git workflow guide for developers and LLM agents
• Defines branch naming conventions, commit rules, and PR standards
• Includes advanced Git topics like stashing, rebasing, and conflict resolution
• Establishes branch protection and merge strategy requirements
Diagram
flowchart LR
  A["Git Workflow Guide"] --> B["Branch Naming Convention"]
  A --> C["Development Workflow"]
  A --> D["Commit Rules"]
  A --> E["PR Guidelines"]
  A --> F["Advanced Git Topics"]
  B --> G["dev_author_type_subject format"]
  C --> H["Create branch from main"]
  D --> I["Conventional commit messages"]
  E --> J["Clear PR descriptions"]
  F --> K["Stash, Rebase, Amend"]
  A --> L["LLM Contribution Rules"]
  A --> M["Branch Protection Rules"]
Loading

Grey Divider

File Changes

1. docs/git_user_and_llm_guide.md 📝 Documentation +502/-0

Complete Git workflow documentation for all contributors

• New comprehensive guide covering Git workflow standards for human developers and LLM agents
• Defines branch naming convention with format dev_<author>_<type>_<subject>
• Establishes development workflow steps from branch creation through PR merge
• Documents commit message format using conventional commits (feat, fix, refactor, docs)
• Provides PR template and review guidelines for code quality and functionality
• Includes advanced Git topics: stashing, interactive rebase, amending commits, conflict resolution
• Specifies merge strategy using squash and merge for clean history
• Defines LLM contribution rules and branch protection requirements

docs/git_user_and_llm_guide.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Mar 20, 2026

Persistent review updated to latest commit 6998087

Comment on lines +32 to +43
# 2. Branch Naming Convention

## 2. Branch Naming Convention

To ensure consistency and traceability, all development branches should follow the naming syntax of <author>_<subject>.
<author> is however you choose to identify yourself, while <subject> is a short description of the change.

## Branch Name Format

```
dev_<author>_<type>_<subject>
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Branch naming contradiction 🐞 Bug ✓ Correctness

Section 2 says the naming syntax is <author>_<subject>, but the actual format and examples require
dev_<author>_<type>_<subject>, which can lead to nonconforming branches.
Agent Prompt
## Issue description
The branch naming section gives two incompatible formats: a 2-part `<author>_<subject>` description and a 4-part `dev_<author>_<type>_<subject>` format. This is self-contradictory and will confuse contributors.

## Issue Context
All examples in the guide follow the 4-part format, so the 2-part description appears incorrect.

## Fix Focus Areas
- docs/git_user_and_llm_guide.md[32-43]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@qodo-code-review
Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: Build and Validate

Failed stage: Install MCU+ SDKs, CCS, SYSCONFIG, TIARMCLANG and PRU CGT if missing [❌]

Failed test name: ""

Failure summary:

The action failed during the unattended installation of Code Composer Studio. The installer process
./ccs_setup_20.3.1.00005.run --mode unattended --prefix "$HOME/ti/ccs_20.3.1" aborted with a memory
allocator error (alloc: invalid block ...) and dumped core at
/home/runner/work/_temp/1eccfc99-c068-4d9d-ae3a-fe48106f39f9.sh: line 14.
The abort caused the
script to exit with code 134, which failed the GitHub Action step.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

393:  �[36;1m  wget -q --retry-connrefused --waitretry=1 --tries=5 --timeout=30 \�[0m
394:  �[36;1m    https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-JVtW1V4WfA/10.02.00.15/mcu_plus_sdk_am263px_10_02_00_15-linux-x64-installer.run�[0m
395:  �[36;1m  chmod +x mcu_plus_sdk_am263px_10_02_00_15-linux-x64-installer.run�[0m
396:  �[36;1m  ./mcu_plus_sdk_am263px_10_02_00_15-linux-x64-installer.run --mode unattended --prefix "$HOME/ti/"�[0m
397:  �[36;1mfi�[0m
398:  �[36;1m#ls -l "$HOME/ti/"�[0m
399:  �[36;1m#ls -l "$HOME/ti/downloads"�[0m
400:  �[36;1m#ls -l "$HOME/ti/ccs_20.3.1/ccs/tools/compiler"�[0m
401:  �[36;1m#ls -l "$HOME/ti/sysconfig_1.26.2"�[0m
402:  �[36;1m#ls -lR "$HOME/ti/ti-cgt-armllvm_4.0.3.LTS"�[0m
403:  �[36;1mtest -x "$HOME/ti/ti-cgt-armllvm_4.0.3.LTS/bin/tiarmclang" && "$HOME/ti/ti-cgt-armllvm_4.0.3.LTS/bin/tiarmclang" --version || ls -l "$HOME/ti/ti-cgt-armllvm_4.0.3.LTS"�[0m
404:  shell: /usr/bin/bash -e {0}
405:  ##[endgroup]
406:  alloc: invalid block: 0x7f07574d4950: f0 57
407:  /home/runner/work/_temp/1eccfc99-c068-4d9d-ae3a-fe48106f39f9.sh: line 14:  2993 Aborted                 (core dumped) ./ccs_setup_20.3.1.00005.run --mode unattended --prefix "$HOME/ti/ccs_20.3.1"
408:  ##[error]Process completed with exit code 134.
409:  ##[group]Run actions/upload-artifact@v4

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.

3 participants