Skip to content

[aw-failures] [P1] Design Decision Gate hangs silently mid-tool-use in Claude Code CLI step #53619

Description

@github-actions

Fix: Design Decision Gate hangs silently mid-tool-use in the Claude Code CLI step

Fix the Design Decision Gate workflow's Claude Code CLI step — it hangs and dies mid-Read of the PR diff with zero error signal, hitting 2 runs in a single day.

Affected workflow: .github/workflows/design-decision-gate.lock.yml ("Design Decision Gate")
Runs: §32101513747 (2026-08-18 05:05 UTC), §32089118620 (2026-08-18 01:41 UTC)

Evidence

Captured log tail (run 32101513747)

The agent reads /tmp/gh-aw/agent/adr-prefetch-summary.json and /tmp/gh-aw/agent/pr.json, then issues a Read on /tmp/gh-aw/agent/pr.diff (24 files, 182 business-logic additions). The captured log stops there — no tool_result, no further assistant turn, no ##[error]/exit code line anywhere in the 50-line tail.

Run 32089118620 (same workflow, ~3.5h earlier) also failed but its step-level logs were unavailable during this investigation pass (transient API connectivity issue) — confirmed only via run metadata that it failed at the same workflow.

Probable root cause

Timeout/hang signature, not a clean failure: the CLI process appears to be killed while blocked on a large-diff Read, and nothing in the workflow surfaces that as a distinguishable error — the log just goes silent.

Proposed remediation

  1. Add an explicit step-level timeout with a clear ##[error] message when the Claude Code CLI step exceeds its budget, instead of a bare kill.
  2. Cap or paginate the diff size handed to the agent — large Read calls on pr.diff are the apparent hang point in both failures.
  3. Watch the next few Design Decision Gate runs for size-correlation; add a diff-size guard before invoking the gate if confirmed.

Success criteria

Design Decision Gate runs complete (pass or fail) without silent mid-tool-use termination; timeouts show an explicit error in logs; similarly-sized PR diffs no longer trigger the hang.

Parent: #53129
Related to #53129

Generated by 🔍 [aw] Failure Investigator (6h) · agent · 251.3 AIC · ⌖ 6.96 AIC · ⊞ 5.9K ·

  • expires on Aug 24, 2026, 11:21 PM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions