Skip to content

rules: undeclared-check-name guard covers problem-path runs #2343

Description

@nc9

Today a declared rule is only checked for undeclared names on the two clean fixtures and in a handful of rule tests, so a problem check that emits an undeclared name passes CI. Every rule test should assert declared names on whatever the rule emits.

Split from #2218.

Acceptance Criteria

  • Every RuleResult produced by a declared rule during the packages/rules test suite is checked against meta.checks (for example through a shared test preload or a wrapped loader), not only clean runs
  • A test proves the guard fails when a declared rule emits an undeclared problem name on a problem fixture
  • Declared rules that currently emit undeclared names on problem fixtures are fixed in this PR, or, if there are too many, listed in a shrink-only baseline with the same exact-and-sorted test as the other baselines
  • Undeclared rules are skipped by the guard until their tranche declares them
  • The guard's rule test files pass with explicit file paths

Activity

  1. added
    enhancement
    size: M
    rules
    on Nov 25, 2026
  2. added theissue type on Nov 25, 2026
  3. added
    in-progress
    on Nov 25, 2026
  4. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementin-progressrulessize: M

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions