Let’s Get Certified
Module 02 / 07 · Responsible AI

Review an AI-assisted change

A suggestion that passes the happy path can still break a promise to users. Use a written acceptance rule, an independent test and a named reviewer to decide whether to ship.

Review the decision behind the diff

A calendar importer treats a blank end date as an invitation to guess. Copilot proposes using today. That makes the importer run, but resubmitting the same file tomorrow changes the result. Before opening the diff, ask the domain owner what blank means. Record an example with a fixed clock; check how both old and new records behave. Code generation has shifted the work from typing to deciding which behavior the product owes its users.

Check for harm where averages hide it. A name formatter that passes 95 out of 100 fixtures may discard accents from every name in the remaining five. Group failures by the feature at risk, inspect representative examples and test corrections with synthetic data. Keep a person accountable for reviewing the output, including license conditions, performance and accessibility.

Keep a review note with four entries: the affected user, the promise the code makes, a plausible failure and the independent observation that would reveal it. For the calendar importer, the observation is the same input producing the same end date across two runs. For a names field, it is a collection of valid names spanning the formats the product promises to support.

Worked case 1

A reviewer gets a generated tax-rounding change with a green build. What evidence should they request?

Check your reasoning

Ask for the authoritative rounding rule, a boundary example calculated independently, and a regression test for it. If the change and its expected values came from the same suggestion, they can agree with each other while both being wrong.

Worked case 2

A generated error message says an order was cancelled, but only the payment authorization failed.

Check your reasoning

Trace the actual state transition with the order owner. Amend the message and test the failed payment with a still-open order. Human review checks the effect on users as well as whether the code compiles.

GitHub documentation · GH-300 skills outline

Related lesson in GitHub Foundations. Separate identity, read access and merge authority.

Practice with the recording

Copilot generates a date parser and tests that all pass. What independent evidence should the reviewer request?

Check your reasoning

Derive cases from the product contract, including an invalid date, a leap day and the relevant time zone. Have a human establish the expected outputs before running the generated tests. A model can repeat the same mistaken assumption in code and assertions.

Current GH-300 course · 3:34 · Lionel Gurret · GH-300 Study Cram · 1:31

Responsible AI

For an accessibility change suggested by Copilot, test with keyboard input and representative assistive technology. Identify the affected users, the owner of the release and the evidence required before approval. Document remaining uncertainty in the review.

Knowledge check

Review an AI-assisted change quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · A good-looking timezone fix