Keep required review audits in the foreground - #132
Merged
Merged
Conversation
Disable background tasks for the one-shot SDK review so the parent receives audit results before ending its turn. Preserve tools, permissions and fail-closed publication. Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
gontzess
marked this pull request as ready for review
September 25, 2026 00:18
jerenkrantz
approved these changes
Sep 25, 2026
gontzess
marked this pull request as draft
September 25, 2026 12:16
Use the release commit for Claude Code 2.1.282 and Agent SDK 0.3.282 while retaining foreground-only review audits. Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A one-shot review can post its provisional summary, start background audit agents, then finish its main turn saying it is waiting for them. The SDK reports a successful turn, but the action has no later conversation turn to synthesize those results. The publication guard correctly rejects the still-provisional output.
An isolated diagnostic reproduced that sequence: two agents launched asynchronously with the background argument omitted, neither completed before the parent returned, and no final summary was written. Tool denials occurred but the agents recovered and continued reading; permission widening is not the demonstrated correction.
Change
Set
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1for the Claude review step. Required subagent work returns in the foreground before the parent can finish. Subagents remain available; model, effort, prompts, tool allow-list, permissions and review limits are unchanged.The provisional, freshness, head-binding and publication guards remain intact. No blind retry, prior-finding cap, raw public logging or approval fallback is added.
Reference: Claude Code background-task environment control.
Verification
de1f60868b429bc43fbffff737afe55110433428, including the official release pin below. The 134-test count is local execution evidence.The diagnostic proves the reproduced mechanism. Historical runs without retained raw SDK traces do not expose their exact internal tool calls.
Deployment note
The reusable workflow checks out
job.workflow_sha. After merging, trigger a fresh review event so it uses the updated workflow revision; rerunning an older execution may retain the older revision. This PR does not modify consumer branches or rerun production reviews.Official release pin
The action is now pinned to
v1.0.234at immutable commit9171db3e57d6a3140a37ddc2ba92788584e0ead6, rather than the earlier untagged main commit. The annotated release tag resolves to that commit, which includes the previous pin and is three commits ahead.This moves Claude Code / Agent SDK from 2.1.280 / 0.3.280 to 2.1.282 / 0.3.282. Background tasks remain disabled; the configured model, effort, prompts, permissions and review limits are unchanged. The upstream commits are the integration-test model fix and two CLI/SDK patch-version bumps.
The local 134-test suite passed again. Both live validation jobs installed Claude Code 2.1.282 and Agent SDK 0.3.282:
The release validation is complete; the earlier 2.1.280 proof is retained as historical evidence, not substituted for the new-runtime check.