Trinity S³AI

Vibecoding 18: read the diff before you accept it

Two diffs, one request: see which touched lines fall outside what you asked for, and accept one diff and send the other back. Lesson 18 of the vibecoding course.

You asked: change lines 10 to 20

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Look at the touched lines again, next to the request.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Right: line 40 is a change nobody asked for. Ask why, or send it back.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Right: every touched line is something you asked for.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Right: every touched line is something you asked for.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Look at the touched lines again, next to the request.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Right: every touched line is something you asked for.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Right: line 40 is a change nobody asked for. Ask why, or send it back.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Look at the touched lines again, next to the request.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Look at the touched lines again, next to the request.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Look at the touched lines again, next to the request.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Look at the touched lines again, next to the request.

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Right: line 40 is a change nobody asked for. Ask why, or send it back.

Diff A

Touched lines

  • 10inside the request
  • 12inside the request
  • 15inside the request
  • 20inside the request

Diff B

Touched lines

  • 12inside the request
  • 13inside the request
  • 14inside the request
  • 40outside the request

Inside the request is not the same as correct: the tests still decide that.