AI Code Rating Draft Spec v0.1

Rating Examples

Find the setup closest to yours. Each example walks through the three positions and the rule that decides each one. The people and projects are made up, and the spec is the final word wherever an example and the spec differ.

No AI at All

A solo developer with years of professional experience in their language writes every line by hand.

ACR B0a

AI for Planning and Review Only

The same developer asks an AI to suggest designs, explain errors and review pull requests, but writes all of the code themselves.

ACR B0a

The rating is the same as using no AI at all. The paragraph in ACR.md is where this kind of use belongs. Whether the rating itself should show it is an open question in the spec.

Autocomplete in the Editor

A developer uses an AI completion tool in their editor. Most suggestions they accept are a word or a single line, but now and then they accept a multi-line block, usually a test or some boilerplate, and read it before keeping it.

ACR B1b

If they only ever accepted single-line completions, AI Share would be 0.

A Team With Required Review

A company web app. Developers of mixed experience use AI suggestions in places, and every pull request needs approval from one of two senior engineers before it can merge.

ACR B1b

If juniors could also merge their own changes without a senior's approval, position 1 would describe the least experienced of them instead.

An Expert Directing an Agent

An expert uses an AI agent to write most of a new service. They read every diff line by line, understand it, and keep test coverage high.

ACR A4a

A high AI Share isn't a bad score. Here, the other two positions show the code was written under close expert supervision.

Strong Tests, Little Reading

A team lets an AI agent write about two thirds of the code. A thorough automated test suite runs on every change, but nobody reads the AI's changes before merge.

ACR B3d

The test suite is worth describing in the paragraph of ACR.md, because readers will want to know about it.

AI Code Review on Every Pull Request

A project runs an AI code reviewer on every pull request. People read some changes themselves, but rely on the AI reviewer and the tests for the rest.

ACR B2c

A Hobby Project

A capable hobbyist has AI write most features. They read the tricky parts closely and check the rest by running the program.

ACR C3c

Learning With AI

A developer early in their career builds a project with heavy AI help. They read every change before keeping it, but understand only parts of what they read.

ACR D3b

Built Entirely by Prompting

Someone who doesn't read code builds an app by describing what they want. They try each new version to see whether it works before keeping it.

ACR E4d

If changes were kept without even trying them, Oversight would be e.

AI Merges Changes on Its Own

A project lets an AI agent open and merge small fixes automatically when the tests pass, with no person approving them.

ACR B2d

Contributors Don't Say Whether They Used AI

An open source project accepts pull requests from many contributors and doesn't know how much of their code was AI-written. The maintainers review every pull request.

ACR A2b

The paragraph in ACR.md should say what the maintainers don't know. Asking contributors to disclose AI use in the pull request template makes the next rating easier.

AI-Written Documentation

A library's code is written by hand, but AI drafted most of its documentation site, which a maintainer reviews.

ACR B0a

rating: B0a
scopes:
  docs/: B4b