Commit df54d0e
fix(claude-review): surface real review failures instead of a silent green (#117)
## Summary
Every `claude-review` run across all consumer repos has been silently
reporting green for the last 27+ hours while the underlying Claude Agent
SDK call fails with `is_error: true` (0 cost, 1 turn, <1s). No red
check, no warning, just a permanently stuck "I'll analyze this and get
back to you" placeholder comment on every PR.
**Root cause of the invisibility:** our pinned
`anthropics/claude-code-action` version (v1.0.165→166) predates upstream
fix [#1496](anthropics/claude-code-action#1496)
for
[#1495](anthropics/claude-code-action#1495)
("Action reports success when result is is_error:true"), which first
shipped in v1.0.172. Before that fix, `steps.claude-review.outcome` was
always `success` regardless of the SDK result, so our existing "Report
review outcome" step's failure branch was dead code.
**This PR does not fix why the SDK call itself is failing** — that's
bisected to an Anthropic-account-side condition on the
`CLAUDE_CODE_OAUTH_TOKEN` credential (two independent tokens broke
simultaneously with no local change; 27+ hours of continuous failure
rules out a simple 5-hour rate-limit reset). That requires checking the
Anthropic Console, which isn't something this PR can address. This PR
makes that failure *visible* instead of silently green, which is the
actual gap that let it run unnoticed for over a day.
## Changes
- Bump `anthropics/claude-code-action` pin from v1.0.166 → **v1.0.174**
(past the #1495 fix; also picks up an unrelated `ghu_` token-redaction
hardening from the same release range — reviewed every intermediate
commit v1.0.172→v1.0.175 via `gh api compare`, nothing else in range).
- Rewrite "Report review outcome": on a real failure, read the action's
own `execution_file` output (no `show_full_output` needed) for the last
SDK result, emit a real `::error::` annotation (was `::warning::`, and
never fired), and expose `review_failed`/`review_detail` step outputs.
- New "Comment on genuine review failure" step: posts (sticky, via
`--edit-last --create-if-none`) an explicit PR comment labeling any
lingering placeholder as an incomplete infra failure — not "no findings"
— with the run URL and last SDK result.
- `continue-on-error: true` stays on the review step for now — this is a
visibility fix, not a new merge gate. Left as a deliberate follow-up
decision whether a persistent failure should eventually block.
## Verification
- `actionlint` — clean.
- `zizmor` — one pre-existing `artipacked` medium finding, confirmed
unchanged from `main` (unrelated to this change, already accepted by
design per the checkout step's own comment).
- Dry-ran the new shell logic locally against three cases (clean review
/ `is_error` with execution file / failure with missing execution file)
— all three branch and format correctly.
- Not yet verified against a live GitHub Actions run — the account-side
failure currently affecting every repo means the very next PR push
anywhere downstream will exercise the failure path for real once this
rolls out.
## Scope notes
- Did not bundle the still-unconsumed `runner` self-hosted-routing input
(from `4dbb0df`) — that's a separate, deliberately staged multi-repo
rollout per its own commit message.
- Follow-up once merged: bump the pinned SHA in each of the 6 caller
repos (`dotfiles`, `standards`, `claude-code-plugins`, `provisioning`,
`github-iac`, `medley`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01QSCqyt1o7XnDXCgyp8ejKT
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>1 parent 0a53868 commit df54d0e
1 file changed
Lines changed: 110 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
297 | 376 | | |
298 | | - | |
299 | | - | |
300 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
301 | 407 | | |
302 | 408 | | |
303 | 409 | | |
| |||
0 commit comments