Question 220
A general naming policy and a generated-code exception both match the same file. Which TWO path-rule changes are required? (SELECT TWO)
Explanation
Correct Answers
First inspect both rule definitions and compare their `paths` glob matches against an actual generated file. When the general convention and the generated-code rule both activate, Claude can receive competing requirements for the same name. Identifying the overlapping scopes makes the source of that conflict explicit and shows where an exception is required. Simply deleting the general naming policy would leave ordinary, hand-written modules without the baseline standard they still need.
After locating the overlap, state a narrowly defined precedence exception: generated artifacts use their generator's naming convention, while hand-maintained files continue following the general policy. Record that relationship in the relevant project rule text so two simultaneously loaded instructions are not contradictory. The exception should not be hidden in one developer's private preferences, because every teammate and CI workflow that edits the generated paths needs the same interpretation.
Incorrect Answers
The normal policy remains valid for other files. Ordinary files still need the baseline convention even if generated files use a documented exception. A general naming policy and a generated-code exception both match the same file. Instead, identify the overlapping glob scopes and specify an explicit narrow exception to the general rule. Identifying overlapping globs and documenting the exception prevents contradictory naming demands on the same generated artifact.
Other developers would still see the overlap. Teammates lacking that private override will still receive the conflicting common rules. A general naming policy and a generated-code exception both match the same file. Instead, identify the overlapping glob scopes and specify an explicit narrow exception to the general rule. Identifying overlapping globs and documenting the exception prevents contradictory naming demands on the same generated artifact.
Conflicting instructions leave generated output ambiguous. Two active incompatible rules will send contradictory instructions to the model for one artifact. Two matching rules can be simultaneously relevant, so their instructions must state how the narrower generated-code exception interacts with the general rule. A general naming policy and a generated-code exception both match the same file. Instead, identify the overlapping glob scopes and specify an explicit narrow exception to the general rule.