Trial ADR-backed component review rules#8173
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 68a3cde5-7a50-4d4e-97d9-194c8b112e88
This reverts commit c03b86a.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 68a3cde5-7a50-4d4e-97d9-194c8b112e88
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 68a3cde5-7a50-4d4e-97d9-194c8b112e88
There was a problem hiding this comment.
Pull request overview
Adds a new path-scoped GitHub Copilot Code Review instruction file that pilots four review rules derived from accepted public ADRs, with explicit scoping to newly introduced/expanded contracts to reduce false positives.
Changes:
- Introduces an ADR-backed “component review trial” instruction scoped to
packages/react/src/**/*. - Documents four rule IDs covering: children-as-API, component file structure, internal modules, and stable
data-componentidentifiers (advisory). - Includes explicit guidance to avoid reporting pre-existing migration debt and to cite the relevant rule ID when reporting impact.
Show a summary per file
| File | Description |
|---|---|
| .github/instructions/component-review.instructions.md | New path-scoped Copilot review guidance implementing the four-rule ADR-backed trial. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
Closes #
Adds a deliberately small Copilot Code Review experiment containing four rules sourced directly from accepted public ADRs. This lets us evaluate review quality and false-positive rates before committing to broader policy coverage or generation infrastructure.
Stacked follow-up: #8174 adds policy generation, the broader catalog, a reviewer skill and agent, validation, and CI integration.
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
Review whether the four rules are understandable, actionable, and appropriately scoped to newly introduced or expanded contracts. This trial intentionally excludes the broader rule catalog, private outcome imports, reviewer skill and agent, policy manifests, generation scripts, and CI automation; those are proposed separately in the stacked follow-up.
Existing repository audit
FilteredActionListandSelectPanel2use data props for constrained/filterable content and children for a distinct composition surface. The closest duplicate APIs are already deprecated.src/internal. Hooks and utilities outside it include both intentional public APIs and legacy private candidates, so location alone cannot establish a violation. Package exports are now explicit rather than the historical wildcard described by the ADR.data-componentvalues. Nineteen are lexically inconsistent and three more use legacy scope names; these are already listed as migration work in the ADR. Representative components still lack root identifiers because implementation remains pending.Merge risk
Runtime and package risk is none: this PR changes review instructions only. Review-noise risk is low to moderate if CCR ignores scope and treats existing migration debt as a required retrofit. The instruction therefore limits findings to introduced or expanded contracts, excludes pre-existing migration debt, makes stable identifiers advisory, requires only applicable colocated files, and limits stable-identifier checks to newly added roots and parts.