Skip to content
News

What should an AI assisted pull request prove before you submit it?

A practical check before you submit a pull request with AI assistance, from reading the project's policy to showing a maintainer exactly what failed and how you verified the fix.

Small machined facets overlap above a dark surface.

A command line tool's help page tells readers to run report preview --format compact. A contributor copies the example into a terminal and gets an error: the tool expects --style compact. Their coding assistant offers an explanation and a patch. By the time the contributor looks at the diff, the assistant has also rewritten two examples that nobody reported as broken.

The contributor has a good reason to open a pull request and a few things to resolve first. Which version did they run? Is the documentation wrong, or did they try it against an older release? Does the project allow AI assistance here? A maintainer can answer the substantive part much faster when the person opening the request supplies enough evidence to reproduce the mismatch. The job starts well before anyone clicks Review.

Read the project's rules while the patch is still easy to change

Start with the repository's contribution guide and follow any links to its AI policy, submission checklist or instructions for the area you are changing. Some projects make a distinction between using a tool to investigate a problem and including its output in a contribution. It is worth checking those rules before sharing repository material with a hosted assistant, too. Your employer or a private repository's owner may have separate rules about what can leave its environment.

A 2026 preprint by Hora, Robbes and Zacchiroli analyzed 281 open source AI contribution policies and found meaningful differences in what contributors may use and what they have to disclose. Those are findings about the policies they collected, so the local rules still matter. For example, the GCC policy generally declines legally significant contributions containing or derived from model output, with a specific exception maintainers may make for test cases. It also requires an Assisted-by: tag for contributions of generated content. A contributor needs the policy for the repository in front of them, including its instructions for where and how to disclose the assistance.

A rock boring head stands still on supports beneath a rough granite tunnel.

Put the error next to the proposed fix

In this fictional example, the guide is served for version 2.4. The contributor installs that version in a clean environment and runs the published command using the guide's sample input. The failure matches the report. They look up the command's help for the same version, run the corrected example and check that it produces the preview shown in the guide. If the sample input were missing or depended on private data, the contributor would need a safe public fixture before a maintainer could reproduce the result.

That small investigation also settles the scope. The two additional edits fall out of the diff because neither affects the example in question. When versioned documentation matters, say which guide you changed and whether you checked any other supported versions. A passing build is useful evidence about what the build exercises; the actual command is what verifies the instructions a reader will follow.

If the evidence is less conclusive, give the maintainer that information up front. A bug you can reproduce on one operating system is worth reporting, provided the description doesn't imply you tested the others. For a larger change, the same discipline applies to the acceptance criteria: name the observable behavior and show where the reviewer can see it.

What the pull request can say

The version 2.4 guide uses --format compact in its preview example. I reproduced the unknown option error with the guide's sample file on a clean 2.4 installation. With --style compact, the command exits successfully and prints the compact preview shown below the example.

This edits the 2.4 guide only. I checked the command and the rendered page; I did not test other releases.

For a repository that permits this use of AI and asks for a description, a truthful disclosure might say that an assistant suggested the replacement flag and that the contributor verified the documentation and command against 2.4. If the repository requires a particular field, include the disclosure there. Use real output and links for your own submission; the example above describes an invented project.

Large angular ventilation modules sit in a yard with strong diagonal shadows.

Stay available for the part that happens after submission

Suppose a maintainer replies that the example was copied from the upcoming 2.5 guide. Could the correction be made in the versioned page alone? The contributor who knows which branch and version they tested can answer, update the patch and rerun the check. Send one focused request and follow its discussion. A batch of similar patches or a second request started by another agent can make the reviewer reconstruct work that was already in progress.

An internal team using several coding tools can keep the issue, tested versions, evidence and ownership together in a Swarm Space. Keep the pull request itself in the repository so reviewers get the complete account where they expect it. For recurring local instructions, see what belongs in AGENTS.md; for questions about a submitted change, see how to use AI for code review. Check the project's permissions before passing any private diffs or logs through a shared tool.

Thin ice ledges hang over a clear stream in a steep stone gully.

Read the description once as a maintainer who has never seen your chat. Can they tell what a user experienced, what you ran and where they can ask about the result? A modest contribution with those answers can save someone a surprising amount of time.

Swarm | AI Assisted Pull Request Checklist Before You Submit