Skip to content

docs: keep tool-enforced rules out of AGENTS.md - #16

Merged
kasperg merged 1 commit into
mainfrom
docs/agents-tool-enforced-rules
Oct 13, 2026
Merged

kasperg merged 1 commit into
mainfrom
docs/agents-tool-enforced-rules

Conversation

@kasperg

@kasperg kasperg commented Oct 13, 2026

Copy link
Copy Markdown
Member

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:

  • The phpat rules on layering and on the names of providers and excluders. The Makefile already says why test-mutation skips providers and excluders.
  • The Conventional Commits bullet, which commitlint checks. The Commands section still says to run lint-commits.
  • Why phpstan.neon.dist accepts the parsers' possibly impure calls to nikic/php-parser and Twig, which the comment on that ignoreErrors entry 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-links and make lint-commits pass.

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>
@kasperg
kasperg merged commit 2dffc68 into main Oct 13, 2026
15 checks passed
@kasperg
kasperg deleted the docs/agents-tool-enforced-rules branch October 28, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant