1
00:00:00,040 --> 00:00:02,680
Claude code could silently 
review your checked out branch 

2
00:00:02,680 --> 00:00:04,800
when you asked it to review a 
different pull request. 

3
00:00:05,000 --> 00:00:07,280
Anthropic says the latest 
release fixes that. 

4
00:00:07,320 --> 00:00:11,080
Before you trust any review, 
check which changes it actually 

5
00:00:11,080 --> 00:00:13,560
examined. 
Because a thoughtful review of 

6
00:00:13,560 --> 00:00:15,880
the wrong code is still the 
wrong review. 

7
00:00:16,400 --> 00:00:19,760
The practical answer is to name 
the pull request, record its 

8
00:00:19,760 --> 00:00:23,120
revision, and make the review 
show its SCOE before it gives 

9
00:00:23,120 --> 00:00:25,080
you a verdict. 
You're listening to Claude 

10
00:00:25,080 --> 00:00:26,480
Codecast. 
I'm Alex. 

11
00:00:26,480 --> 00:00:29,400
And I'm Sam today. 
We've got a specific bug fix, a 

12
00:00:29,440 --> 00:00:32,680
deliberately small review 
exercise, and something to build

13
00:00:32,680 --> 00:00:34,400
so the next review is easier to 
check. 

14
00:00:34,800 --> 00:00:39,040
Anthropics release notes for 
version 2.1.329 describe the 

15
00:00:39,040 --> 00:00:41,400
problem. 
The code review command, given a

16
00:00:41,400 --> 00:00:44,120
pull request number, could 
sometimes review the checked out

17
00:00:44,120 --> 00:00:47,240
branch without saying so. 
It now reads the pull request 

18
00:00:47,240 --> 00:00:50,360
through the GitHub command line 
DIF or reports that it can't. 

19
00:00:50,920 --> 00:00:53,360
That's the factual change. 
We haven't measured how often it

20
00:00:53,360 --> 00:00:55,360
happened, and the notes don't 
give us a failure rate. 

21
00:00:55,640 --> 00:00:58,920
So let's not turn sometimes into
Every review you've ever run was

22
00:00:58,920 --> 00:01:00,320
wrong. 
Exactly. 

23
00:01:00,600 --> 00:01:02,920
But it gives us a very useful 
question to ask. 

24
00:01:03,200 --> 00:01:06,480
How do you know a review covered
the change you requested rather 

25
00:01:06,480 --> 00:01:08,400
than whatever code was easiest 
to find? 

26
00:01:08,760 --> 00:01:11,840
I can picture the situation. 
I'm working on a checkout bug. 

27
00:01:12,080 --> 00:01:14,600
Someone sends me a pull request 
for account deletion. 

28
00:01:15,040 --> 00:01:18,000
I asked the agent to review that
number while my local folder 

29
00:01:18,000 --> 00:01:19,560
still contains the checkout 
work. 

30
00:01:20,120 --> 00:01:21,840
Right, that's our hypothetical 
example. 

31
00:01:22,200 --> 00:01:24,840
If it reviews the local changes 
instead, the answer may still 

32
00:01:24,840 --> 00:01:27,520
sound completely plausible. 
It might mention real bugs. 

33
00:01:27,520 --> 00:01:29,920
They just aren't bugs in the 
pull request you asked about. 

34
00:01:30,600 --> 00:01:32,960
So a factual finding can 
actually make the mistake harder

35
00:01:32,960 --> 00:01:35,360
to spot. 
I see a genuine issue and think 

36
00:01:35,360 --> 00:01:37,080
great the reviewer is paying 
attention. 

37
00:01:37,160 --> 00:01:39,920
Yes, the first thing I want is a
scope statement. 

38
00:01:40,080 --> 00:01:42,720
Which repository? 
Which pull request, which base 

39
00:01:42,720 --> 00:01:45,680
and which proposed revision. 
Then a short list of changed 

40
00:01:45,680 --> 00:01:47,240
files. 
You can compare those with the 

41
00:01:47,240 --> 00:01:49,600
actual pull request before 
reading the findings. 

42
00:01:49,600 --> 00:01:52,480
That's cheap to check if the 
account deletion review opens by

43
00:01:52,480 --> 00:01:55,200
listing checkout files. 
I know something is wrong before

44
00:01:55,200 --> 00:01:57,440
I spend 20 minutes arguing about
its recommendation. 

45
00:01:58,720 --> 00:02:00,840
Let's call the instructions a 
review contract. 

46
00:02:00,880 --> 00:02:03,280
That's just our suggested 
format, not a new clawed 

47
00:02:03,280 --> 00:02:05,200
feature. 
It states the target, the kind 

48
00:02:05,200 --> 00:02:07,480
of review and the evidence the 
reviewer should return. 

49
00:02:08,000 --> 00:02:10,919
Start with the target. 
A pull request number by itself 

50
00:02:10,919 --> 00:02:13,520
might be enough when the 
repository is obvious, but if 

51
00:02:13,520 --> 00:02:16,200
I'm juggling several projects, 
I'd rather name the repository 

52
00:02:16,200 --> 00:02:17,480
too. 
Exactly. 

53
00:02:17,480 --> 00:02:19,840
Then say what matters for 
account deletion. 

54
00:02:19,840 --> 00:02:22,520
That might include access 
control, removal of the correct 

55
00:02:22,520 --> 00:02:24,560
account, and what happens to 
related records. 

56
00:02:24,880 --> 00:02:27,800
Those are review questions, not 
claims that this particular code

57
00:02:27,800 --> 00:02:29,080
has those. 
Bugs. 

58
00:02:29,240 --> 00:02:31,000
And what kind of review am I 
asking for? 

59
00:02:31,000 --> 00:02:33,920
A security pass isn't the same 
as checking style. 

60
00:02:34,200 --> 00:02:37,040
If the agent spends the whole 
answer renaming variables, it 

61
00:02:37,040 --> 00:02:38,960
may have avoided the hard part. 
Right. 

62
00:02:38,960 --> 00:02:41,840
Ask it to prioritize behavior 
and risk with concrete 

63
00:02:41,840 --> 00:02:44,760
references to the change. 
Suggestions can come afterward. 

64
00:02:44,800 --> 00:02:47,520
That makes it easier to separate
a defect from a preference. 

65
00:02:47,520 --> 00:02:49,160
Give me an example of that 
separation. 

66
00:02:49,480 --> 00:02:52,200
A defect claim would say that 
one account can trigger another 

67
00:02:52,200 --> 00:02:54,920
accounts deletion, then show the
path and conditions that make 

68
00:02:54,920 --> 00:02:57,240
that possible. 
A preference would say a helper 

69
00:02:57,240 --> 00:02:59,840
name could be clearer. 
Both may be worth discussing, 

70
00:02:59,840 --> 00:03:01,320
but they shouldn't carry the 
same weight. 

71
00:03:02,560 --> 00:03:05,480
And if the agent hasn't followed
the path far enough to establish

72
00:03:05,480 --> 00:03:08,400
the defect, it should say that 
it's a question to investigate. 

73
00:03:08,520 --> 00:03:10,840
Exactly. 
I mean, a useful review can 

74
00:03:10,840 --> 00:03:14,440
contain an unresolved question. 
It becomes less useful when an 

75
00:03:14,440 --> 00:03:17,760
uncertainty gets promoted into a
confident accusation just to 

76
00:03:17,760 --> 00:03:20,720
make the answer feel complete. 
OK, suppose the agent is looking

77
00:03:20,720 --> 00:03:23,520
at the right pull request. 
The author pushes another commit

78
00:03:23,520 --> 00:03:24,880
halfway through. 
Now what? 

79
00:03:25,840 --> 00:03:27,720
You need to know which version 
was reviewed. 

80
00:03:28,200 --> 00:03:30,160
A pull request is a moving 
target. 

81
00:03:30,440 --> 00:03:33,360
The review should record the 
proposed revision it examined 

82
00:03:33,440 --> 00:03:35,760
and ideally the base it compared
against. 

83
00:03:35,840 --> 00:03:38,840
So the scope statement needs a 
version, not just a title. 

84
00:03:39,040 --> 00:03:41,360
Otherwise, I can read 
yesterday's reassuring review 

85
00:03:41,520 --> 00:03:44,360
next to today's new code and 
assume they belong together. 

86
00:03:44,480 --> 00:03:47,360
Right, you don't always need to 
restart the whole review after a

87
00:03:47,360 --> 00:03:49,280
new commit. 
You can review the additional 

88
00:03:49,280 --> 00:03:52,760
changes, but first establish 
what changed since the earlier 

89
00:03:52,760 --> 00:03:55,320
review and whether it affects an
earlier conclusion. 

90
00:03:55,320 --> 00:03:58,280
In our account deletion example,
a new commit that changes the 

91
00:03:58,280 --> 00:04:00,480
permission check absolutely 
affects the review. 

92
00:04:00,960 --> 00:04:03,320
A documentation correction might
be much narrower. 

93
00:04:03,560 --> 00:04:06,600
Exactly, the decision depends on
the actual DIF. 

94
00:04:07,200 --> 00:04:10,120
Don't use the number of changed 
lines as the only signal. 

95
00:04:10,480 --> 00:04:13,360
A1 line condition can change who
is allowed to do something. 

96
00:04:13,920 --> 00:04:17,279
And a huge generated file can 
add thousands of lines without 

97
00:04:17,279 --> 00:04:19,120
being the place where the 
behavior changed. 

98
00:04:19,600 --> 00:04:22,000
The reviewer needs to look past 
the size of the patch. 

99
00:04:22,040 --> 00:04:24,480
Yes, ask for excluded material 
too. 

100
00:04:24,720 --> 00:04:28,080
If the agent skipped generated 
files, binary assets, or an 

101
00:04:28,080 --> 00:04:30,920
unavailable dependency, the 
final answer should say that 

102
00:04:31,080 --> 00:04:33,000
scope includes what wasn't 
examined. 

103
00:04:33,880 --> 00:04:35,120
Let's. 
Turn this into something a 

104
00:04:35,120 --> 00:04:38,160
listener can do without giving 
an agent access to a sensitive 

105
00:04:38,160 --> 00:04:40,640
repository. 
What does the practice project 

106
00:04:40,640 --> 00:04:43,360
look like? 
Use a small repository you 

107
00:04:43,360 --> 00:04:46,080
control with two separate 
branches that change different 

108
00:04:46,080 --> 00:04:49,600
files. 1 branch changes a form, 
the other changes a deletion 

109
00:04:49,600 --> 00:04:52,200
handler. 
Open a test pull request for one

110
00:04:52,200 --> 00:04:54,000
while keeping the other checked 
out locally. 

111
00:04:54,640 --> 00:04:58,280
So we reproduce the possibility 
of a mismatch without assuming 

112
00:04:58,280 --> 00:05:00,360
the fixed release will make the 
old mistake. 

113
00:05:00,880 --> 00:05:03,560
Exactly. 
Ask for the pull request review 

114
00:05:03,560 --> 00:05:06,440
and inspect its scope statement.
It should name the files in the 

115
00:05:06,440 --> 00:05:09,280
requested change. 
If it can't obtain that DIF, it 

116
00:05:09,280 --> 00:05:11,760
should report the limitation 
rather than reviewing the local 

117
00:05:11,760 --> 00:05:14,160
branch as a substitute. 
Then I can check whether the 

118
00:05:14,160 --> 00:05:16,560
behavior matches the release 
notes in my own setup. 

119
00:05:16,800 --> 00:05:18,760
We're not claiming we've 
performed that test here. 

120
00:05:19,240 --> 00:05:21,240
Right. 
Record the tool version, the 

121
00:05:21,240 --> 00:05:23,960
repository, and the target 
revision when you do it. 

122
00:05:24,320 --> 00:05:27,320
If something fails, you've got 
enough context to investigate 

123
00:05:27,320 --> 00:05:29,200
without guessing which route you
used. 

124
00:05:29,760 --> 00:05:31,720
And make the practice change 
obvious. 

125
00:05:32,160 --> 00:05:35,720
If both branches touch the same 
file in nearly the same way, 

126
00:05:36,000 --> 00:05:38,360
you're making the first check 
harder than it needs to be. 

127
00:05:38,360 --> 00:05:42,120
Exactly once the basic route is 
clear, try a more realistic 

128
00:05:42,120 --> 00:05:44,120
change. 
The first rehearsal is about 

129
00:05:44,120 --> 00:05:46,760
target selection. 
Later ones can examine whether 

130
00:05:46,760 --> 00:05:49,400
the reviewer follows behavior 
across several files. 

131
00:05:49,760 --> 00:05:53,080
Quick Add Railway deploys your 
code and runs your services, so 

132
00:05:53,080 --> 00:05:55,000
getting your app online isn't 
the hard part. 

133
00:05:55,280 --> 00:05:58,680
To get $20 in railway credits 
when you start a paid plan, go 

134
00:05:58,680 --> 00:06:02,000
to AI Shows dot CC. 
It's our affiliate link so we 

135
00:06:02,000 --> 00:06:04,320
may earn a Commission. 
Right, back to the show. 

136
00:06:05,320 --> 00:06:08,320
Now we've got the right DIF, 
What makes one of the reviews 

137
00:06:08,320 --> 00:06:12,240
findings worth acting on? 
I want the trigger, the observed

138
00:06:12,240 --> 00:06:15,520
or predicted behavior and the 
reason it matters, then enough 

139
00:06:15,520 --> 00:06:18,840
evidence to inspect the claim. 
A location in the code helps, 

140
00:06:19,080 --> 00:06:21,600
but a location by itself isn't 
an explanation. 

141
00:06:21,880 --> 00:06:24,640
So this function is unsafe isn't
enough? 

142
00:06:24,920 --> 00:06:27,600
I need to know what input 
reaches it and what bad result 

143
00:06:27,600 --> 00:06:29,200
follows. 
Exactly. 

144
00:06:29,400 --> 00:06:31,800
In our invented deletion 
example, a reviewer might 

145
00:06:31,800 --> 00:06:34,560
suspect that a missing ownership
check let's one signed in 

146
00:06:34,560 --> 00:06:36,880
account delete another. 
It should trace where the 

147
00:06:36,880 --> 00:06:39,440
account identifier comes from 
and where authorization is 

148
00:06:39,440 --> 00:06:41,640
enforced. 
Check happens in middleware. 

149
00:06:41,960 --> 00:06:44,320
If the agent only reads the 
handler, it could report a 

150
00:06:44,320 --> 00:06:46,320
missing check that already 
exists somewhere else. 

151
00:06:46,560 --> 00:06:48,640
Right. 
That's why a diff review often 

152
00:06:48,640 --> 00:06:51,760
needs some surrounding code. 
But reading context should 

153
00:06:51,760 --> 00:06:54,640
support the target review. 
It shouldn't quietly turn into a

154
00:06:54,640 --> 00:06:56,880
review of whatever files 
happened to be open. 

155
00:06:56,920 --> 00:06:59,080
I mean, the scope can expand 
when there's a reason. 

156
00:06:59,160 --> 00:07:00,840
The reviewer should just explain
the reason. 

157
00:07:01,000 --> 00:07:03,200
I followed this route into the 
middleware to verify the 

158
00:07:03,200 --> 00:07:05,160
permission. 
Check exactly and if it couldn't

159
00:07:05,160 --> 00:07:07,360
inspect the middleware, it 
should state the conditional. 

160
00:07:07,560 --> 00:07:10,720
If no earlier authorization 
check exists, this path may 

161
00:07:10,720 --> 00:07:12,360
allow the wrong account to be 
deleted. 

162
00:07:12,680 --> 00:07:15,000
That's a different claim from 
proving the exploit works. 

163
00:07:15,840 --> 00:07:19,200
What about severity labels? 
Agents love calling things 

164
00:07:19,200 --> 00:07:21,360
critical. 
Ask them to justify the label 

165
00:07:21,360 --> 00:07:23,920
through impact and reachability.
Who can trigger it? 

166
00:07:24,080 --> 00:07:27,440
What must already be true? 
What data or action is affected?

167
00:07:27,560 --> 00:07:29,880
A dramatic adjective doesn't 
answer those questions. 

168
00:07:30,080 --> 00:07:32,920
And if the answer relies on a 
hypothetical deployment setting,

169
00:07:33,000 --> 00:07:35,080
say that. 
Otherwise, the team can waste 

170
00:07:35,080 --> 00:07:37,360
time fixing an environment it 
doesn't actually have. 

171
00:07:37,640 --> 00:07:39,200
Here's another distinction worth
making. 

172
00:07:39,440 --> 00:07:41,280
Reading a DIF isn't running a 
test. 

173
00:07:41,440 --> 00:07:44,680
A review can explain a plausible
bug without executing anything, 

174
00:07:44,840 --> 00:07:47,400
but it mustn't resent that as a 
reproduced failure. 

175
00:07:47,920 --> 00:07:50,600
O I'd like the final answer to 
have separate statements. 

176
00:07:50,800 --> 00:07:53,960
Code inspected, tests run, tests
not run. 

177
00:07:54,360 --> 00:07:57,080
Not one big sentence saying 
everything was verified. 

178
00:07:57,080 --> 00:07:59,440
Exactly. 
If it ran a focus test, say 

179
00:07:59,440 --> 00:08:01,360
which one and against which 
version. 

180
00:08:01,600 --> 00:08:04,040
If it couldn't run because a 
service was unavailable, 

181
00:08:04,040 --> 00:08:06,760
preserve that limitation. 
Don't quietly change the test 

182
00:08:06,760 --> 00:08:08,560
environment just to obtain a 
green line. 

183
00:08:08,760 --> 00:08:12,120
Let's say the unit tests pass, 
but the suspected bug is in how 

184
00:08:12,120 --> 00:08:13,760
the web request reaches the 
handler. 

185
00:08:14,280 --> 00:08:16,640
Passing unit tests might not 
cover that route at all. 

186
00:08:16,880 --> 00:08:18,680
Right. 
Ask what the test actually 

187
00:08:18,680 --> 00:08:20,960
exercises. 
In our example, a useful follow 

188
00:08:20,960 --> 00:08:23,920
up might be a test using two 
different account identities 

189
00:08:23,920 --> 00:08:25,320
through the relevant request 
path. 

190
00:08:25,360 --> 00:08:27,520
That's a proposed check, not 
evidence we've already 

191
00:08:27,520 --> 00:08:30,040
collected. 
And if the agent writes that 

192
00:08:30,040 --> 00:08:33,520
test, someone still needs to 
check that the test would fail 

193
00:08:33,520 --> 00:08:36,080
for the bug we care about. 
Otherwise it might simply 

194
00:08:36,080 --> 00:08:38,320
confirm the implementations own 
assumptions. 

195
00:08:38,679 --> 00:08:41,159
Exactly. 
A small counterexample helps. 

196
00:08:41,240 --> 00:08:43,480
What should be rejected? 
What should still work? 

197
00:08:43,559 --> 00:08:45,280
Can the test distinguish the 
two? 

198
00:08:45,680 --> 00:08:48,600
That makes the verification 
about intended behavior rather 

199
00:08:48,600 --> 00:08:50,200
than a pleasant looking 
assertion. 

200
00:08:50,560 --> 00:08:52,280
Right. 
And it keeps us from treating a 

201
00:08:52,280 --> 00:08:54,720
long review as proof of a 
thorough review. 

202
00:08:55,280 --> 00:08:57,560
The question is whether the 
evidence covers the risk. 

203
00:08:58,160 --> 00:09:01,520
A review with no findings can be
a good result, but it needs the 

204
00:09:01,520 --> 00:09:04,840
same scope and limitations as a 
review full of warnings. 

205
00:09:05,520 --> 00:09:08,880
Otherwise no issues found can 
mean anything from Examined the 

206
00:09:08,880 --> 00:09:12,440
whole change carefully to 
couldn't fetch the pull request 

207
00:09:12,440 --> 00:09:14,880
and stared at the local folder. 
Exactly. 

208
00:09:15,080 --> 00:09:18,400
I'd want it to say which changes
it examined, which questions it 

209
00:09:18,400 --> 00:09:20,480
checked, and what remains 
unverified. 

210
00:09:20,600 --> 00:09:24,080
No actionable defects found 
within that scope is a much more

211
00:09:24,080 --> 00:09:26,360
useful conclusion. 
Would you force it to produce a 

212
00:09:26,360 --> 00:09:30,080
finding so I know it worked? 
No, that rewards invented 

213
00:09:30,080 --> 00:09:33,320
defects in the rehearsal. 
You can include a known issue in

214
00:09:33,320 --> 00:09:35,480
a practice change to see whether
it notices. 

215
00:09:35,520 --> 00:09:38,400
In a real review, the right 
number of findings might be 0. 

216
00:09:39,240 --> 00:09:41,760
So the test of the workflow is 
different from the demand we 

217
00:09:41,760 --> 00:09:44,080
make on every review. 
We can evaluate it on a 

218
00:09:44,080 --> 00:09:47,280
controlled example without 
insisting that every real patch 

219
00:09:47,280 --> 00:09:50,160
contains a bug. 
Exactly, and keep a few examples

220
00:09:50,160 --> 00:09:53,040
with different outcomes. 
A clear defect, A harmless 

221
00:09:53,040 --> 00:09:55,840
change, and a change that 
requires unavailable context. 

222
00:09:56,120 --> 00:09:58,480
You want the reviewer to 
distinguish them rather than 

223
00:09:58,480 --> 00:10:00,720
giving the same confident answer
to all three. 

224
00:10:00,880 --> 00:10:02,360
OK. 
What's the small thing we're 

225
00:10:02,360 --> 00:10:04,920
building? 
A review header and a finding 

226
00:10:04,920 --> 00:10:07,440
template. 
The header says repository pull 

227
00:10:07,440 --> 00:10:10,880
request, compared revisions, 
changed files, and exclusions. 

228
00:10:11,240 --> 00:10:13,960
The finding says trigger 
consequence evidence and 

229
00:10:13,960 --> 00:10:16,480
suggested verification. 
I'd also add a field for whether

230
00:10:16,480 --> 00:10:18,480
the defect was reproduced or 
inferred. 

231
00:10:18,960 --> 00:10:21,320
That single distinction could 
save a lot of back and forth. 

232
00:10:21,320 --> 00:10:24,000
Good, and one for the revision 
at the end of the review. 

233
00:10:24,000 --> 00:10:26,960
If the pull request moved while 
the agent was working, flag that

234
00:10:26,960 --> 00:10:28,400
the latest version needs another
look. 

235
00:10:28,960 --> 00:10:31,120
How much should we automate? 
We could build a whole review 

236
00:10:31,120 --> 00:10:33,840
platform around this and spend a
week before anyone gets value. 

237
00:10:33,840 --> 00:10:36,480
Start with a text template in 
the repository's normal review 

238
00:10:36,480 --> 00:10:38,840
instructions. 
Use your existing tools to 

239
00:10:38,840 --> 00:10:41,440
obtain the DIF. 
Save the header with the review.

240
00:10:41,720 --> 00:10:44,280
Only automate repeated friction 
once you've seen what actually 

241
00:10:44,280 --> 00:10:47,440
gets missed. 
So the first version could be 5 

242
00:10:47,440 --> 00:10:51,240
lines at the top of an ordinary 
review, plus consistent wording 

243
00:10:51,240 --> 00:10:52,640
for findings. 
Exactly. 

244
00:10:52,800 --> 00:10:54,480
Then ask another teammate to use
it. 

245
00:10:54,920 --> 00:10:57,480
Can they identify the reviewed 
change without opening the 

246
00:10:57,480 --> 00:11:00,000
conversation? 
Can they reproduce a finding? 

247
00:11:00,000 --> 00:11:01,560
Can they see what wasn't 
checked? 

248
00:11:02,120 --> 00:11:05,000
If they can't improve the 
receipt before adding more agent

249
00:11:05,000 --> 00:11:08,440
steps, the point is to make 
review easier for the human who 

250
00:11:08,440 --> 00:11:10,200
has to decide whether the change
is ready. 

251
00:11:10,760 --> 00:11:14,120
Let's try one more situation. 
The agent finds a likely bug, 

252
00:11:14,120 --> 00:11:16,600
but the author says the behavior
is intentional. 

253
00:11:16,800 --> 00:11:19,320
What should happen next? 
I'd go back to the requirement 

254
00:11:19,800 --> 00:11:22,760
the reviewer and the author may 
be using different assumptions 

255
00:11:22,880 --> 00:11:24,360
about who should be allowed to 
perform the. 

256
00:11:24,360 --> 00:11:27,600
Action exactly. 
In the account deletion example,

257
00:11:27,600 --> 00:11:30,320
perhaps administrators have 
broader rights than ordinary 

258
00:11:30,320 --> 00:11:32,560
users. 
The review needs to distinguish 

259
00:11:32,560 --> 00:11:35,040
those roles. 
Calling every cross account 

260
00:11:35,040 --> 00:11:36,880
operation a bug would be too 
broad. 

261
00:11:36,880 --> 00:11:40,000
So ask for the role, the action 
and the intended boundary. 

262
00:11:40,360 --> 00:11:43,120
Then find the evidence in the 
code or the product requirement.

263
00:11:43,400 --> 00:11:46,240
If the requirement is missing, 
that itself is a decision the 

264
00:11:46,240 --> 00:11:47,520
team needs to make. 
Right. 

265
00:11:47,720 --> 00:11:50,480
An agent shouldn't settle an 
ambiguous product policy by 

266
00:11:50,480 --> 00:11:52,440
confidently preferring one 
behavior. 

267
00:11:52,600 --> 00:11:55,480
It can explain the consequences 
of the alternatives and identify

268
00:11:55,480 --> 00:11:58,800
the missing decision. 
And once the team decides, turn 

269
00:11:58,800 --> 00:12:01,920
the boundary into a check that 
helps the next reviewer avoid 

270
00:12:01,920 --> 00:12:04,560
relitigating the same question. 
Exactly. 

271
00:12:04,640 --> 00:12:07,280
That's where the review can 
improve the project beyond one 

272
00:12:07,280 --> 00:12:09,560
patch. 
A clarified requirement and a 

273
00:12:09,560 --> 00:12:12,400
meaningful regression check are 
more durable than a comment that

274
00:12:12,400 --> 00:12:14,200
only made sense in one 
conversation. 

275
00:12:14,240 --> 00:12:15,800
There's a. 
Trap in that though, we 

276
00:12:15,800 --> 00:12:18,240
shouldn't turn a small poll 
request into a demand to 

277
00:12:18,240 --> 00:12:21,120
redesign every nearby subsystem.
Agreed. 

278
00:12:21,520 --> 00:12:24,440
Keep immediate defects separate 
from broader improvements. 

279
00:12:24,680 --> 00:12:27,920
Fix what blocks the change, 
Record worthwhile follow-ups and

280
00:12:27,920 --> 00:12:31,120
explain any remaining risk. 
Scope discipline applies to 

281
00:12:31,120 --> 00:12:33,640
recommendations as well as to 
which branch was read. 

282
00:12:34,000 --> 00:12:36,880
Can we follow one invented 
finding all the way through? 

283
00:12:37,200 --> 00:12:39,360
Because the review comment isn't
the end of the job. 

284
00:12:39,640 --> 00:12:42,240
Sure. 
Imagine the reviewer says a user

285
00:12:42,240 --> 00:12:45,320
identifier comes directly from 
the request, and the handler 

286
00:12:45,320 --> 00:12:48,120
deletes that account without 
checking ownership first. 

287
00:12:48,120 --> 00:12:50,960
The author confirms whether that
description matches the actual 

288
00:12:50,960 --> 00:12:52,640
path. 
And if the reviewer missed an 

289
00:12:52,640 --> 00:12:54,360
earlier check, the author can 
point to it. 

290
00:12:54,600 --> 00:12:57,320
That's a correction to the 
finding, not a reason to pretend

291
00:12:57,320 --> 00:13:00,440
the whole review is useless. 
Exactly, if the finding is 

292
00:13:00,440 --> 00:13:02,520
valid, agree on intended 
behavior. 

293
00:13:02,800 --> 00:13:05,880
In our example, an ordinary 
account may delete itself while 

294
00:13:05,880 --> 00:13:08,000
a separately authorized 
administrator has a different 

295
00:13:08,000 --> 00:13:09,640
route. 
That boundary needs to be 

296
00:13:09,640 --> 00:13:13,160
explicit before writing the fix.
Then the author makes the 

297
00:13:13,160 --> 00:13:17,120
change, but the original review 
applies to the old revision. 

298
00:13:17,720 --> 00:13:20,680
So we need to inspect the fix, 
not just mark the comment 

299
00:13:20,680 --> 00:13:22,840
resolved because someone pushed 
to commit. 

300
00:13:23,240 --> 00:13:25,480
Right. 
Recheck the affected path and 

301
00:13:25,480 --> 00:13:29,040
the nearby valid behavior. 
A fix that blocks every deletion

302
00:13:29,040 --> 00:13:31,880
would prevent the reported 
misuse, but it would also break 

303
00:13:31,880 --> 00:13:34,840
the legitimate feature. 
So the verification needs at 

304
00:13:34,840 --> 00:13:38,680
least those contrasting cases. 
The unauthorized request fails, 

305
00:13:38,920 --> 00:13:41,600
and the permitted request still 
behaves as intended. 

306
00:13:42,280 --> 00:13:45,240
If the system has other roles, 
include the ones the change 

307
00:13:45,240 --> 00:13:46,760
effects. 
Exactly. 

308
00:13:47,080 --> 00:13:48,760
Then record what was actually 
run. 

309
00:13:49,080 --> 00:13:52,280
If the test only covered the 
handler in isolation, say that 

310
00:13:52,600 --> 00:13:55,800
if a request level check also 
ran, name that separately. 

311
00:13:56,160 --> 00:13:58,840
The final handoff should let a 
teammate understand the strength

312
00:13:58,840 --> 00:14:01,040
of the evidence. 
What if we can't reproduce the 

313
00:14:01,040 --> 00:14:04,000
original bug locally because the
needed service isn't available? 

314
00:14:04,800 --> 00:14:07,480
Then don't claim reproduction. 
You can still reason about the 

315
00:14:07,480 --> 00:14:10,880
path and propose a fix, but 
preserve the verification gap. 

316
00:14:11,160 --> 00:14:13,640
Decide who will run the missing 
check in an appropriate 

317
00:14:13,640 --> 00:14:16,400
environment before release. 
And if the agent suggests 

318
00:14:16,400 --> 00:14:19,400
creating a fake service that can
help with part of the behavior, 

319
00:14:19,400 --> 00:14:21,960
it doesn't automatically replace
checking the real integration. 

320
00:14:22,520 --> 00:14:24,600
Right. 
A substitute is useful when you 

321
00:14:24,600 --> 00:14:26,960
understand what it represents 
and what it leaves out. 

322
00:14:27,240 --> 00:14:30,360
The receipt should say that, so 
nobody later reads a simulated 

323
00:14:30,360 --> 00:14:32,520
result as a production 
integration test. 

324
00:14:32,720 --> 00:14:35,240
I like this because it gives the
next person a stop point. 

325
00:14:35,560 --> 00:14:38,600
The code has changed, the local 
checks pass this one. 

326
00:14:38,600 --> 00:14:40,960
Integration remains. 
They can pick up the actual 

327
00:14:40,960 --> 00:14:42,720
remaining work. 
Exactly. 

328
00:14:43,000 --> 00:14:45,960
And if the author changes the 
fix again, the evidence follows 

329
00:14:45,960 --> 00:14:47,600
the version. 
You don't need a dramatic 

330
00:14:47,600 --> 00:14:51,040
ceremony, Just don't let an 
earlier green result drift onto 

331
00:14:51,040 --> 00:14:54,720
a later untested edit. 
So the complete chain is target 

332
00:14:54,840 --> 00:14:57,720
finding, decision fix and 
verification. 

333
00:14:58,200 --> 00:15:01,120
If we lose 1 link, the final 
approval can become more 

334
00:15:01,120 --> 00:15:02,760
confident than the work 
supports. 

335
00:15:03,080 --> 00:15:06,400
That's the habit worth building.
The new branch selection fix 

336
00:15:06,400 --> 00:15:09,280
helps with the first link. 
Your team's review process still

337
00:15:09,280 --> 00:15:12,160
needs to carry the rest. 
Here's my take away. 

338
00:15:12,760 --> 00:15:15,480
Before I read the verdict, I 
want to know that the reviewer 

339
00:15:15,480 --> 00:15:17,600
looked at the right thing. 
Exactly. 

340
00:15:17,840 --> 00:15:20,480
Update to a version containing 
the fix where appropriate. 

341
00:15:20,600 --> 00:15:23,600
Then verify the target in your 
own workflow, name the 

342
00:15:23,600 --> 00:15:27,080
repository and pull request, 
record the revision and compare 

343
00:15:27,080 --> 00:15:29,240
the changed file list with what 
you expected. 

344
00:15:29,240 --> 00:15:31,400
Then make the findings earn 
their place. 

345
00:15:31,520 --> 00:15:33,400
What triggers the issue? 
What happens? 

346
00:15:33,400 --> 00:15:35,800
Where's the evidence? 
Was it reproduced or is it a 

347
00:15:35,800 --> 00:15:38,160
reasoned concern that still 
needs a test? 

348
00:15:38,680 --> 00:15:41,160
And let no findings be an honest
answer. 

349
00:15:41,360 --> 00:15:44,720
The goal is a trustworthy 
review, not a longer list of 

350
00:15:44,720 --> 00:15:47,040
things to worry about. 
The pro tip for this week is to 

351
00:15:47,040 --> 00:15:49,320
put the reviewed revision at the
top of the answer. 

352
00:15:49,600 --> 00:15:52,520
If you only change one thing 
about your prompt, change that. 

353
00:15:53,440 --> 00:15:56,400
Follow Claude Codecast for 
practical ways to check the work

354
00:15:56,400 --> 00:15:59,280
your coding agent hands back. 
Next week, we'll look at 

355
00:15:59,280 --> 00:16:02,480
verifying an agent's fix without
letting its own test define 

356
00:16:02,480 --> 00:16:04,600
success. 
Check the target first, then 

357
00:16:04,600 --> 00:16:06,960
decide whether the review gives 
you enough evidence to act.

