Skip to content

docs: add quality rules to AGENTS.md critical rules#15440

Merged
jamesfredley merged 1 commit into7.0.xfrom
docs/agents-md-conventions
Feb 24, 2026
Merged

docs: add quality rules to AGENTS.md critical rules#15440
jamesfredley merged 1 commit into7.0.xfrom
docs/agents-md-conventions

Conversation

@jamesfredley
Copy link
Contributor

Summary

Adds four rules to the Critical Rules section of AGENTS.md to enforce documentation hygiene, API surface discipline, and test coverage requirements for AI agents working in this repo.

  • Rule 7 - New user-facing features must include or update documentation in grails-doc
  • Rule 8 - User-facing docs must only reference public APIs; no internal or package-private classes
  • Rule 9 - Tests must exercise behavior through the public API surface as an end user would, never bypassing internals
  • Rule 10 - Always review existing tests before making changes and add/enhance tests to cover the affected behavior

Add four agent-facing rules covering documentation, API hygiene,
and test discipline:

- New features require documentation updates in grails-doc
- No internal or package-private APIs in user-facing docs
- Tests must use only the public API surface as an end user would
- Always review existing tests and add/enhance coverage for changes

Assisted-by: Claude Code <Claude@Claude.ai>
@jamesfredley jamesfredley marked this pull request as ready for review February 24, 2026 00:22
Copilot AI review requested due to automatic review settings February 24, 2026 00:22
@jamesfredley jamesfredley self-assigned this Feb 24, 2026
@jamesfredley jamesfredley added this to the grails:7.0.8 milestone Feb 24, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the AGENTS.md guide by adding four new critical rules to the Critical Rules section, focused on documentation quality, API surface discipline, and testing requirements for AI agents working in the grails-core repository.

Changes:

  • Added Rule 7: Requires documentation in grails-doc for all user-facing features
  • Added Rule 8: Prohibits referencing internal APIs in user-facing documentation
  • Added Rule 9: Mandates testing through public APIs only, avoiding internal implementations
  • Added Rule 10: Requires reviewing existing tests and adding new tests for all code changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamesfredley jamesfredley merged commit 6a79a64 into 7.0.x Feb 24, 2026
64 of 67 checks passed
@jamesfredley jamesfredley deleted the docs/agents-md-conventions branch February 24, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants