Skip to content

Add Copilot remediation suggestions to alt-text-quality - #55

Merged
kzhou314 merged 1 commit into
mainfrom
add-remediation-suggestions
Jul 24, 2026
Merged

Add Copilot remediation suggestions to alt-text-quality#55
kzhou314 merged 1 commit into
mainfrom
add-remediation-suggestions

Conversation

@kzhou314

@kzhou314 kzhou314 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes github/accessibility#10636

Builds on the quality judge so that, when it flags alt text, it also proposes an improved version and explains why.

@kzhou314
kzhou314 marked this pull request as ready for review July 23, 2026 19:42
@kzhou314
kzhou314 requested a review from a team as a code owner July 23, 2026 19:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds model-generated remediation suggestions to alt-text quality findings.

Changes:

  • Extends judge verdicts and structured output with replacement alt text.
  • Updates prompts, findings, grading output, and unit tests.
Show a summary per file
File Description
src/judges/types.ts Adds the suggestion field.
src/judges/verdict-schema.ts Requires suggestions in model output.
src/judges/prompt.ts Instructs and demonstrates remediation generation.
src/rules/alt-text-quality.ts Surfaces suggestions in findings.
scripts/grade-alt-text-quality.ts Prints generated suggestions.
tests/unit/alt-text-quality.test.ts Tests suggestion rendering and fallback.
tests/unit/judges-caching.test.ts Updates verdict fixtures.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Medium

Comment thread src/rules/alt-text-quality.ts
@kzhou314
kzhou314 force-pushed the add-remediation-suggestions branch from b0857a4 to eb4f4b6 Compare July 23, 2026 19:59
Base automatically changed from detect-seo-abuse-alt-text to main July 24, 2026 17:39
@kzhou314
kzhou314 force-pushed the add-remediation-suggestions branch from eb4f4b6 to e03d012 Compare July 24, 2026 18:48
@taarikashenafi taarikashenafi mentioned this pull request Jul 24, 2026
@kzhou314
kzhou314 merged commit 150aafc into main Jul 24, 2026
9 checks passed
@kzhou314
kzhou314 deleted the add-remediation-suggestions branch July 24, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants