Skip to content

best-practices: add expanded policy for AI interactions with PRs - #63

Open
paddybyers wants to merge 1 commit into
mainfrom
feature/update-pr-practice-for-ai
Open

paddybyers wants to merge 1 commit into
mainfrom
feature/update-pr-practice-for-ai

Conversation

@paddybyers

Copy link
Copy Markdown
Member

## Use of coding agents and AI review bots

Code generated by coding agents is now the default way that much of our code is produced. Coding agents can raise PRs, so long as they follow the guidance in this document and in [commits.md](commits.md).
Code generated by coding agents is now the default way that much of our code is produced. Coding agents can raise PRs, so long as they follow the guidance in this document and in [commits.md](commits.md). The core principles that must be maintained when introducing AI-based workflows are as follows.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we could consider including a statement in this section akin to "humans still have to review PRs more often than not, and therefore need to understand the intent behind it; repos should contain templates for what to put in a PR description and agents should be encouraged to write in terse, straight-to-the-point language to avoid a wall of text"?

PRs are a vehicle for humans to understand, discuss and approve changes. This means that:

By default, AI review comments and the resulting discussion and resolution should remain in the PR for future reference, unless the author believes that they constitute extraneous noise. In that case, consider re-raising a clean PR without the noise. It is the author's responsibility to ensure that the PR is in a fit state to review, and that extends to the PR discussion as well as to the code and history.
- PR conversations are for humans. A comment on a PR should mean a person said something to you. The conversation thread should consist of human contributions, plus only those bot contributions that specifically require human attention and action.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perhaps my comment above may better live here... but definitely something about how PR descriptions are the key vehicle behind a quick understanding of intent, so need to be to the point, not full of waffle/claudisms etc

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants