From f3ba6da435f24d6b82606b4cf8e420bc34ed966d Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:24:32 -0400 Subject: [PATCH 1/5] debug: temporary OAuth probe workflow (deleted after diagnosis) --- .github/workflows/debug-oauth-probe.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/debug-oauth-probe.yml diff --git a/.github/workflows/debug-oauth-probe.yml b/.github/workflows/debug-oauth-probe.yml new file mode 100644 index 000000000..6c249a55e --- /dev/null +++ b/.github/workflows/debug-oauth-probe.yml @@ -0,0 +1,17 @@ +name: debug-oauth-probe +on: workflow_dispatch +permissions: {} +jobs: + probe: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - name: Probe Claude CLI auth from hosted runner + env: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + run: | + npm install -g @anthropic-ai/claude-code@2.1.210 >/dev/null 2>&1 + claude -p "reply with exactly: PROBE_OK" --model claude-sonnet-4-6 --output-format json > out.json 2> err.txt || true + echo "--- stderr (first 20 lines) ---"; head -20 err.txt || true + echo "--- structured result ---" + jq '{subtype, is_error, api_error_status, num_turns, duration_ms, total_cost_usd, result: ((.result // "")|tostring|.[0:400])}' out.json || head -5 out.json From af21742945de4831fd2ef5743d89811e383ebf76 Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:26:04 -0400 Subject: [PATCH 2/5] debug: probe via push trigger --- .github/workflows/debug-oauth-probe.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/debug-oauth-probe.yml b/.github/workflows/debug-oauth-probe.yml index 6c249a55e..7a49d16e1 100644 --- a/.github/workflows/debug-oauth-probe.yml +++ b/.github/workflows/debug-oauth-probe.yml @@ -1,5 +1,7 @@ name: debug-oauth-probe -on: workflow_dispatch +on: + push: + branches: [debug/oauth-probe] permissions: {} jobs: probe: From c221dd4232d58404f09b964b0c55148ff78fbb4e Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:28:53 -0400 Subject: [PATCH 3/5] debug: probe the pinned action itself, dump execution-file result --- .github/workflows/debug-oauth-probe.yml | 29 ++++++++++++++++++------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/debug-oauth-probe.yml b/.github/workflows/debug-oauth-probe.yml index 7a49d16e1..e26b0f952 100644 --- a/.github/workflows/debug-oauth-probe.yml +++ b/.github/workflows/debug-oauth-probe.yml @@ -2,18 +2,31 @@ name: debug-oauth-probe on: push: branches: [debug/oauth-probe] -permissions: {} +permissions: + contents: read + id-token: write jobs: probe: runs-on: ubuntu-24.04 timeout-minutes: 10 steps: - - name: Probe Claude CLI auth from hosted runner + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - name: Run pinned claude-code-action with trivial prompt + id: cca + continue-on-error: true + uses: anthropics/claude-code-action@12531344451323133b0493233c759991ac61da12 # v1.0.174 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + prompt: "Reply with exactly: ACTION_PROBE_OK" + claude_args: --model claude-sonnet-4-6 --max-turns 2 + - name: Dump SDK result detail + if: always() env: - CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + EXECUTION_FILE: ${{ steps.cca.outputs.execution_file }} run: | - npm install -g @anthropic-ai/claude-code@2.1.210 >/dev/null 2>&1 - claude -p "reply with exactly: PROBE_OK" --model claude-sonnet-4-6 --output-format json > out.json 2> err.txt || true - echo "--- stderr (first 20 lines) ---"; head -20 err.txt || true - echo "--- structured result ---" - jq '{subtype, is_error, api_error_status, num_turns, duration_ms, total_cost_usd, result: ((.result // "")|tostring|.[0:400])}' out.json || head -5 out.json + echo "outcome=${{ steps.cca.outcome }}" + if [ -n "${EXECUTION_FILE:-}" ] && [ -f "$EXECUTION_FILE" ]; then + jq '.[-1] | {subtype, is_error, api_error_status, num_turns, duration_ms, total_cost_usd, result: ((.result // "")|tostring|.[0:600])}' "$EXECUTION_FILE" || tail -3 "$EXECUTION_FILE" + else + echo "(no execution file)" + fi From e731cea971c3b363144127cba321e9d7d59a7ad5 Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:34:00 -0400 Subject: [PATCH 4/5] debug: probe on pull_request event --- .github/workflows/debug-oauth-probe.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debug-oauth-probe.yml b/.github/workflows/debug-oauth-probe.yml index e26b0f952..973dd662c 100644 --- a/.github/workflows/debug-oauth-probe.yml +++ b/.github/workflows/debug-oauth-probe.yml @@ -1,7 +1,7 @@ name: debug-oauth-probe on: - push: - branches: [debug/oauth-probe] + pull_request: + paths: ['.github/workflows/debug-oauth-probe.yml'] permissions: contents: read id-token: write From fd5442a73e6658b5582e7de3d773657fc3af07ce Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:42:25 -0400 Subject: [PATCH 5/5] =?UTF-8?q?debug:=20bisect=20=E2=80=94=20add=20track?= =?UTF-8?q?=5Fprogress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/debug-oauth-probe.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/debug-oauth-probe.yml b/.github/workflows/debug-oauth-probe.yml index 973dd662c..244188d00 100644 --- a/.github/workflows/debug-oauth-probe.yml +++ b/.github/workflows/debug-oauth-probe.yml @@ -18,6 +18,7 @@ jobs: with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} prompt: "Reply with exactly: ACTION_PROBE_OK" + track_progress: true claude_args: --model claude-sonnet-4-6 --max-turns 2 - name: Dump SDK result detail if: always()