rsrobo checks Conventional Commits in code, and a model only writes the suggested subject
Context#
rsrobo reviews commit subjects and the PR title. A model check would give different verdicts for the same subject.
Decision#
Code checks each commit subject and the PR title against a per-repo type list in config.json. Merge and Revert " subjects are exempt. A bad one is P1, so the verdict is "Needs changes". A model writes the suggested replacement subject for each bad one. Code shows the suggestion only if it passes the same check. The "copy-paste text for an agent" tells the agent to run git rebase -i, mark each commit reword, set the PR title, and not push. In dftracer-utils the commit-msg hook rejects only empty and WIP subjects, so nothing else enforces the form there.
Why#
Code gives the same verdict every time. Code cannot choose feat or fix because it never reads the diff, so a model must write the suggestion.
Rejected options#
Leave the check to the model: inconsistent. Guess the type from the first word ("added" becomes feat:): it can be wrong in a public review.
Also found by searching
- how does rsrobo check commit messages
- does a model decide whether the rsrobo commit subject is valid
- rsrobo suggested a feat subject for a bad commit message
- rsrobo copy-paste text for an agent to fix commit messages