From 9e7a2793ad5447bda6eeedd11ff713986bffb4ed Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 16 Mar 2026 11:12:34 +0100 Subject: [PATCH] ci: Insist on structured output from claude-review workflow In some cases claude is not outputting structured JSON at the end. Let's modify the prompt a bit to hopefully mitigate the issue. --- .github/workflows/claude-review.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index ef5afe620e..0a90a89ca4 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -313,7 +313,17 @@ jobs: in the appropriate severity section, after the existing items. - Do NOT reorder, reword, or remove existing items. - Return the final JSON object with your `comments` array and `summary` string. + ## CRITICAL: Return structured JSON output + + Your FINAL action must be to return a JSON object matching the following + JSON schema — do NOT end with a text summary or narrative. The `--json-schema` + flag is set, so your last response must be the structured JSON result, not a + text message. + + ```json + ${{ env.REVIEW_SCHEMA }} + ``` + Do NOT attempt to post comments or use any MCP tools to modify the PR. post: