R102 Put a rule that holds only for one tool under that tool’s domain

On by default

Put a rule whose requirement holds only where a given tool is in use under that tool’s domain, naming the tool, and write every other rule so that it holds whatever tool is in use.

Reason

A repository enables a tool’s domain only when it uses the tool, so a rule under it binds no repository without the tool; a general rule that depends on a tool would bind every repository that enables its domain to that tool (Art. VIII §7(1)).

Verification

The test: take the tool’s name out of the rule and ask whether it can still be decided. If it can, the rule is general: it sits under no tool’s domain, and a tool appears in it only as an example, marked as one, so that the requirement holds with the example removed. If it cannot, the requirement belongs to the tool (the commit hooks of Git, the division of work of Agent Fleet): the rule sits under that tool’s domain and names the tool. Commits, branches, pushes, merges and pull requests are general concepts of version control and code hosting, not one tool.

Violated when a change adds or rewrites a rule that fails this test: a rule whose requirement belongs to a tool outside that tool’s domain, or a general rule that depends on a tool or sits under a tool’s domain.

Provisions of the constitution it cites

Relations

Parent
R96 Writing Rules
Requires
none
Conflicts with
none

Metadata

ID
102
Revision
3
Kind
rule
Status
trial
Slug
tool-specific-rule-under-tool-domain
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh