Skip to content

ci: surface Claude Code error in review summary when no verdict is produced - #340

Merged
blindzero merged 2 commits into
mainfrom
ci/claude-review-error-details
Oct 31, 2026
Merged

blindzero merged 2 commits into
mainfrom
ci/claude-review-error-details

Conversation

@blindzero

@blindzero blindzero commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

When the Claude review produces no verdict, the "Evaluate review verdict" step now reads the error from the action's execution_file and shows it in the step summary and as a warning annotation.

Motivation

The review gate on #339 passed (fail-open) while every review run failed after ~250 ms without calling the model. The real cause (no API credit balance) was invisible: with show_full_output: false the action only logs --json-schema was provided but Claude did not return structured_output, and debug reruns don't change that. The authentication history in the Claude Console showed every WIF token exchange as successful, so the error came from the first API call.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring / internal improvement

Changes

  • Pass steps.review.outputs.execution_file to the evaluate step via env (not interpolated into the script).
  • On the fail-open path, extract only the final result message when is_error is true (subtype, num_turns, and result or errors), flatten it to one line and cap it at 1000 characters. Tool results are never printed, so show_full_output stays off.
  • Add the text to the step summary and emit it as a ::warning. The gate stays fail-open.

Testing

  • Unit tests
  • Contract tests
  • Manual testing

Not run. The jq filter could not be executed locally (no jq/Docker on the dev machine), and the action skips itself on this PR because the workflow differs from main. It can only be verified after merge, when a review run fails.

How to test & review

  • Check the jq filter against the action's execution file format (JSON array of SDK messages, last type: "result" entry).
  • After merge: a normal review run should be unaffected (PASS/BLOCK path is unchanged).

Checklist

  • Code follows STYLEGUIDE.md
  • Tests added or updated
  • Documentation updated
  • No UI/auth logic added to IdLE.Core
  • No breaking changes without discussion

Related Issues

Follow-up to #338 (Claude Code review gate).

🤖 Generated with Claude Code

…oduced

The action hides Claude's output (show_full_output: false), so API errors
such as an empty credit balance only showed up as "did not return
structured_output". Read the final result message from the action's
execution_file and show its error text in the step summary and as a
warning annotation. Tool results are not printed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T19:47:06.872447Z cf50658 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Code Coverage Report

Overall Project 74.05% 🍏

There is no coverage information present for the Files changed

@blindzero blindzero self-assigned this Oct 31, 2026
@blindzero
blindzero merged commit aa87750 into main Oct 31, 2026
6 checks passed
@blindzero
blindzero deleted the ci/claude-review-error-details branch October 31, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant