Replies: 1 comment 4 replies
|
@dsilhavy, thanks for kick-starting this. It looks good. It may be would be useful to make a distinction between using AI to fix an existing issue (this is very self-contained) vs developing new code where the functionalities do not exist (but the baseline does). For the latter, I would like to propose a process on top of the generation of code and PRs. From the experience with MBS I think it is necessary to train the AI tool to first understand the specifications without the bias of taking a repo which exists, then understand the repositories which are within scope (e.g. pass all the rt-mbs- ones), audit the specification coverage per repo to see where the gaps are, then start implementing. To make this practical, I am now about to push guidelines as a PR to the Standards2Deployments repository, that I would like to review as part of this process, they are aligned to the proposal here. I would like to propose that the CLAUDE.md per repo (or any file assisiting AI-based implementation) is kept within Standards2Deployments rather than within each repo. I would like that the repo contains just the code but added value work stays private. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Status:
Guidelines for Contributions and the Use of AI Tools in Coding and Code Review
Purpose
This document sets out what 5G-MAG expects from any contribution to our reference tools.
The one rule everything else follows from
A practical corollary: if you cannot explain how a piece of AI-generated code works, it is not ready to submit. When behavior turns out to be strange, "the AI wrote it" leaves reviewers to reverse-engineer the change from scratch — which costs the project far more than the generation saved.
Balance generation with review capacity
Code is now cheap to produce and expensive to review. When the person driving the AI is also the one fixing its mistakes, this roughly nets out. When reviewers are different people from the AI operator, the asymmetry becomes a resourcing problem: development runs ahead of review, a backlog of unreviewed PRs accumulates, and expert time is consumed unpicking machine-generated errors. Our expectations:
Issues first, then pull requests
Every bug fix or feature in a PR should trace back to an issue that exists before the fix:
Fixes #123, fixes #124).Pull request structure and stacking
development. The diff then shows only the new work, each PR stays reviewable in isolation, and when the predecessor merges, GitHub retargets the follow-up automatically. Say so explicitly in the description ("Stacked on XXX").What we expect from every contribution
These apply regardless of how the code was produced:
Recommendations for using AI coding assistants
Recommendations for using AI tools in code review
tldr;
All reactions