Curriculum

Curriculum

Reject and Rescope an Overly Broad Diff

Scenario

You asked for a 1-line boundary fix in booking.js, and the agent returns edits across 6 files.

Selected choicePick a choice below
Result—

Try it yourself

Compare three reviewer responses to an overly broad diff.

Reveal the explanation
  1. Accept all 6 files because the tests passed

    Risky! Unreviewed changes in unrelated files can introduce subtle regressions later.

  2. "This looks messy, try again."

    Too vague—does not tell the agent which files to revert and which lines to keep.

  3. "Revert formatting and unrelated files; keep ONLY booking.js line 4 and booking.test.js."

    Precise rescope! Produces a clean, explainable 2-file diff.

You are the reviewer and owner of every committed line. Never commit unrelated agent edits you did not ask for.

Review first

Your turn

Write a 2-sentence rescope reply when an agent edited quiz.py, quiz_test.py, styles.css, and README.md for a 1-line score >= 60 fix.

Common mistake Keeping styles.css and README.md changes just because they look harmless.

Check your work

Revert styles.css and README.md; keep only the score >= 60 fix in quiz.py and its test in quiz_test.py.

Quick check

What should you do when an agent modifies 4 unrelated files while fixing a 1-line bug?
Show the answer and reasoning

Correct answer Ask the agent to revert the unrelated files and keep only the targeted fix and its test

Reverting unrelated edits restores a clean, auditable change.