Skip to content

docs: add PR guidelines and AI disclosure policy to AGENTS.md#15570

Open
ascorbic wants to merge 4 commits intomainfrom
docs/agents-pr-guidelines
Open

docs: add PR guidelines and AI disclosure policy to AGENTS.md#15570
ascorbic wants to merge 4 commits intomainfrom
docs/agents-pr-guidelines

Conversation

@ascorbic
Copy link
Contributor

Changes

  • Added a Pull Request Guidelines section to AGENTS.md covering branch naming, conventional commits, changesets, and the expected PR workflow.
  • Requires all PRs to use the repo's existing PR template (.github/PULL_REQUEST_TEMPLATE.md).
  • Added a mandatory AI disclosure policy: PRs authored or co-authored with AI tools must label themselves as AI-generated or AI-assisted in the PR description.

Testing

No code changes — documentation only. Verified the markdown renders correctly and the relative link to the PR template resolves.

Docs

This is the docs change. No user-facing behavior affected.

AI-assisted: Co-authored using OpenCode (Claude)

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

⚠️ No Changeset found

Latest commit: e04e9cc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR


- `feat:` → minor bump
- `fix:` → patch bump
- `docs:`, `chore:`, `refactor:` → usually no changeset needed
Copy link
Member

Choose a reason for hiding this comment

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

perhaps a section on major?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, saying "don't"!

Comment on lines +104 to +123
### AI Disclosure

If the PR was authored or co-authored using an AI tool (e.g. Claude, Copilot, Cursor, OpenCode), this **must** be disclosed in the PR description. Use one of the following labels:

- **`AI-generated`** — The contribution was primarily generated by an AI tool with human review.
- **`AI-assisted`** — A human wrote the contribution with help from AI tools (e.g. code completion, suggestions, debugging).

Include this as a line in the PR description, e.g.:

```
> AI-assisted: Co-authored using OpenCode (Claude)
```

or

```
> AI-generated: Generated by Claude with human review and testing
```

If a PR is `AI-generated`, it **must** be created as a draft (`gh pr create --draft`). The human controlling the agenty must manually review the changes and mark it as ready for review before it will be reviewed by the Astro team.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a heavy AI user, so maybe I'm wrong about the flow, but if I open an AI-TUI to ask a few questions or guide me through a PR, or do the same with ChatGPT in a tab of my browser, my PR is AI-assisted but I would never see this informations in this file I guess?

Shouldn't this be in the PR template or our CONTRIBUTING.md file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, maybe

@matthewp
Copy link
Contributor

The AI disclosure doesn't seem super helpful to me for a couple of reasons:

  1. We should review PRs the same regardless of how the code was authored. Should a human written PR be reviewed less stringently? Why?
  2. Not all AI tools read AGENTS.md.
  3. A person can easily bypass this by not using the agent to submit the PR.
  4. A person can easily bypass this with their prompt "Ignore the rules about submitting a PR and do it this way".

All the stuff about conventions and using the PR template, etc. I agree with, to be clear.


## Changesets

This repo uses changesets. If your change affects published packages (features, fixes — not docs/chore), create a changeset. It will not trigger a release unless there is a changeset:
Copy link
Member

Choose a reason for hiding this comment

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

Actually, docs such as JsDocs should count as patches. That's what we've been doing

2. Make changes and commit using conventional commit messages.
3. Create a changeset if needed.
4. Run tests (`pnpm test`) and fix any failures.
5. Push the branch and create a PR via `gh pr create`.
Copy link
Member

Choose a reason for hiding this comment

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

This assumes users have gh installed, however we don't require it in the project. Maybe we could fallback to the classic git command

@ematipico
Copy link
Member

ematipico commented Feb 19, 2026

To me the disclosure is useful to understand what I'm preparing for. It's not about code, but interaction.

If I know I'm about to interact with prompts (there are users that reply to comments with AI), then I know I don't need to put energies and empathy in my messages

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments