@@ -124,7 +124,7 @@ jobs:
124124 VERDICT_PATH : /tmp/codeowner-signoff-verdict.md
125125 VERIFIER_CLAUDE_ARGS : |
126126 --model 'claude-opus-5-5'
127- --allowedTools "Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
127+ --allowedTools "Agent, Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
128128 --disallowedTools "Read(//proc/**),Write(//proc/**)"
129129 # claude-code-action hides the transcript, so log only why the agent stopped and what it was denied.
130130 CLAUDE_RUN_SUMMARY_JQ : |
@@ -187,6 +187,7 @@ jobs:
187187 GITHUB_TOKEN : ${{ github.token }}
188188 BASH_DEFAULT_TIMEOUT_MS : " 1800000"
189189 BASH_MAX_TIMEOUT_MS : " 3600000"
190+ CLAUDE_CODE_DISABLE_BACKGROUND_TASKS : " 1"
190191 with :
191192 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
192193 github_token : ${{ github.token }}
@@ -203,7 +204,8 @@ jobs:
203204 Read the file /tmp/codeowner-signoff-verify-prompt.md and follow the
204205 instructions in it exactly — it is your complete task specification,
205206 already rendered with this run's PR number, head SHA, and sign-off
206- metadata.
207+ metadata. Wait for any delegated checks to finish, then write the
208+ verdict file before ending your turn.
207209
208210 - name : Summarize Claude run
209211 if : always() && steps.claude.outputs.execution_file != ''
@@ -217,69 +219,21 @@ jobs:
217219 trap 'echo "::$token::"' EXIT
218220 jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
219221
220- - name : Check for verdict
221- id : verdict
222- if : steps.claude.outcome == 'success'
223- run : |
224- if [[ -f "$VERDICT_PATH" ]]; then
225- echo "written=true" >> "$GITHUB_OUTPUT"
226- fi
227-
228- # The agent sometimes ends its turn before writing the verdict; resuming keeps its findings.
229- - name : Resume Claude to write the verdict
230- id : claude_resume
231- if : steps.claude.outcome == 'success' && steps.verdict.outputs.written != 'true' && steps.claude.outputs.session_id != ''
232- uses : anthropics/claude-code-action@9171db3e57d6a3140a37ddc2ba92788584e0ead6 # v1.0.234
233- env :
234- GH_TOKEN : ${{ github.token }}
235- GITHUB_TOKEN : ${{ github.token }}
236- BASH_DEFAULT_TIMEOUT_MS : " 1800000"
237- BASH_MAX_TIMEOUT_MS : " 3600000"
238- with :
239- anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
240- github_token : ${{ github.token }}
241- path_to_claude_code_executable : ${{ steps.claude_cli.outputs.path }}
242- track_progress : false
243- allowed_bots : ' '
244- additional_permissions : |
245- actions: read
246- settings : |
247- {"fastMode": true}
248-
249- claude_args : |
250- ${{ env.VERIFIER_CLAUDE_ARGS }}
251- --resume ${{ steps.claude.outputs.session_id }}
252- prompt : |
253- You ended your turn without writing /tmp/codeowner-signoff-verdict.md, so no
254- verdict was published. Finish any checks from
255- /tmp/codeowner-signoff-verify-prompt.md that you have not completed, then write
256- the verdict file and run signoff_validate on it as that file's "Verdict and
257- output" section requires. Do not stop until the file exists and validates.
258-
259- - name : Summarize resumed Claude run
260- if : always() && steps.claude_resume.outputs.execution_file != ''
261- continue-on-error : true
262- env :
263- EXECUTION_FILE : ${{ steps.claude_resume.outputs.execution_file }}
264- run : |
265- token="$(openssl rand -hex 16)"
266- echo "::stop-commands::$token"
267- trap 'echo "::$token::"' EXIT
268- jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
269-
270222 - name : Record verification outcome
271223 id : outcome
272224 if : always()
273225 env :
274- CLAUDE_SUCCEEDED : ${{ steps.claude.outcome == 'success' && steps.claude_resume.outcome != 'failure' }}
226+ CLAUDE_SUCCEEDED : ${{ steps.claude.outcome == 'success' }}
275227 run : |
276- succeeded=false
277228 if [[ "$CLAUDE_SUCCEEDED" == true && -f "$VERDICT_PATH" ]]; then
278- succeeded=true
279- fi
280- echo "succeeded=$succeeded" >> "$GITHUB_OUTPUT"
281- if [[ "$succeeded" != true ]]; then
282- echo "::error::Verifier did not write $VERDICT_PATH"
229+ echo "succeeded=true" >> "$GITHUB_OUTPUT"
230+ else
231+ echo "succeeded=false" >> "$GITHUB_OUTPUT"
232+ if [[ "$CLAUDE_SUCCEEDED" == true ]]; then
233+ echo "::error::Verifier did not write $VERDICT_PATH"
234+ else
235+ echo "::error::Claude verifier did not complete successfully"
236+ fi
283237 exit 1
284238 fi
285239
0 commit comments