Commit 06d716a
fix(nc-review): three severity levels, verdict derived not trusted
Run 5 produced a good review and then mislabelled it. Five real findings, all
marked advisory, verdict "clean" — so a PR with five things to fix got
agent:clean, which is the label a maintainer skims. Copilot read the same PR as
needing amends and was right.
Two causes, both in the rubric I wrote.
1. Confidence and severity were conflated. The old text put "anything you are
less than confident about" in the advisory bucket. Those are orthogonal: a
finding can be high-impact and uncertain. Severity is now rated by impact
alone, with uncertainty expressed in the detail text instead — and an
explicit instruction not to file anything it cannot assert at all.
2. Binary severity forced the bad verdict. Findings that individually do not
block a merge collapsed into "clean". There is now a middle level,
`important`: a human reviewer would ask for a change before approving. The
test-that-passes-without-exercising-anything case is given as the worked
example, since a green suite makes that more dangerous rather than less.
The verdict is now derived from the findings in the workflow rather than taken
from the model: any blocking -> needs-work, any findings -> comments, none ->
clean. A mismatch is logged as a notice. Three labels, mutually exclusive, with
the other two removed unconditionally so a re-review cannot leave a stale pair.
The heading now carries the tally ("comments — 2 important, 3 nits") so it
cannot disagree with the table beneath it.
Replaying run 5's findings through the new logic yields
"comments — 2 important, 3 nits" and agent:comments.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZY52ePXLjwG9TaQgq2cHT1 parent 85f1309 commit 06d716a
2 files changed
Lines changed: 122 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | | - | |
| 123 | + | |
122 | 124 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
129 | 126 | | |
130 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
131 | 185 | | |
132 | 186 | | |
133 | 187 | | |
| |||
136 | 190 | | |
137 | 191 | | |
138 | 192 | | |
139 | | - | |
| 193 | + | |
140 | 194 | | |
141 | 195 | | |
142 | 196 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
147 | 201 | | |
148 | 202 | | |
149 | 203 | | |
150 | 204 | | |
151 | 205 | | |
152 | 206 | | |
153 | 207 | | |
154 | | - | |
155 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
156 | 211 | | |
157 | 212 | | |
158 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
364 | 391 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
| |||
378 | 405 | | |
379 | 406 | | |
380 | 407 | | |
381 | | - | |
| 408 | + | |
382 | 409 | | |
383 | 410 | | |
384 | 411 | | |
385 | 412 | | |
386 | 413 | | |
387 | 414 | | |
388 | 415 | | |
389 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
390 | 419 | | |
391 | 420 | | |
392 | 421 | | |
393 | 422 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
0 commit comments