Repository navigation
docs: keep tool-enforced rules out of AGENTS.md - #16
Merged
Merged
Conversation
AGENTS.md restated what the project's tools already enforce: the phpat rules on layering and on the names of providers and excluders, the Conventional Commits format commitlint checks, and why phpstan.neon.dist accepts the parsers' impure calls, which the config explains itself. The tools report a breach where it happens, and the copy can drift from the rules it restates. Say that the file holds what no tool checks, and drop the restatements. The Makefile already says why test-mutation skips providers and excluders, and the Commands section still says to run lint-commits. Assisted-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AGENTS.md restated rules that the project's tools already enforce. The tools report a breach where it happens, and a copy in AGENTS.md can drift from the rule it restates.
AGENTS.md now says it holds what no tool checks: a rule a tool enforces lives in that tool's configuration. It names no tools, so the sentence stays true as tools are added or removed.
Dropped as restatements:
test-mutationskips providers and excluders.lint-commits.phpstan.neon.distaccepts the parsers' possibly impure calls to nikic/php-parser and Twig, which the comment on thatignoreErrorsentry already explains.The rest of the file was checked against the configured tools: the remaining conventions, the architecture notes and the provider steps are not enforced by any of them.
This was part of #13, which was merged into #12's branch after #12 had been merged, so it never reached
main.Verified locally:
make lint-markdown,make lint-linksandmake lint-commitspass.