Repository navigation
fix(ci): raise dev-agent's --max-turns from 40 to 70 - #259
Conversation
Confirmed via job logs that #8, #89, #137, and #178 have each failed triage-and-implement twice in a row with an identical signature: num_turns: 41, subtype: error_max_turns. These are genuine multi-file implementation tasks (an iOS Swift bugfix, a new Android Compose feature) doing real productive work right up until the cut-off — not crashes, not the stale-branch OIDC issue (#254), not transient infra flakiness. Retrying without raising the budget is guaranteed to fail identically every time, since nothing about a retry changes how much work the issue needs. No branch/commit survives a max-turns death (the agent runs in an ephemeral Actions checkout and never reaches git push before being cut off), so every retry has been wasting a full ~40-turn API budget for zero net progress. qa-agent.yml and principal-review.yml are left at 40 — their crash history so far is the OIDC issue, not evidence of legitimate max-turns exhaustion, and their work (verify vs. implement) is narrower by design. Revisit those independently if the same error_max_turns signature shows up for them. See issue #258 for the full investigation. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
This PR was opened outside the automated pipeline (author isn't |
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
QA verification — PR #259 vs issue #258Diff scope check — confirmed via Acceptance criteria — issue #258 is a bug report (no explicit checklist), so the bar is "repro no longer reproduces + evidence." This is a CI-workflow config bump, not application logic: the actual repro (issues #8/#89/#137/#178 hitting
Tests — ran the real suite in full, in the foreground: No failures. Per Regressions — none plausible; the change has no code-path impact outside the dev-agent GitHub Actions job itself, and the full JVM suite passing confirms nothing else in the tree was touched or broken. AGENTS.md conventions:
Sensitive path — No QA verdict: PASS |
Principal review — PR #259Verdict: human-merge (routing purely on Verified independently (not just read off the PR description)
FindingsNone at CONFIRMED (or even PLAUSIBLE) severity. This is about as low-risk a change as a sensitive-path edit can be: a single numeric CI budget bump, scope-limited to the one workflow with actual evidence of the failure mode, with an honest note that 70 vs. some other number is only verifiable by re-running the affected issues post-merge (which the PR defers to a documented follow-up rather than overclaiming). Why human-merge anyway
|
What
Raises dev-agent's
--max-turnsfrom 40 to 70 in.github/workflows/dev-agent.yml'striage-and-implementstep.Why
Closes the root cause investigated in #258:
#8,#89,#137, and#178have each failed twice in a row with the identicalnum_turns: 41, subtype: error_max_turnssignature — genuine multi-file implementation work cut off mid-turn, not a crash. Every retry burns the same ~40 turns for zero progress since nothing about a bare retry changes how much work the issue needs. Full evidence and log excerpts in #258.Scope
Deliberately narrow: only
dev-agent.yml's implementation step, which is where all 4 observed failures happened.qa-agent.yml/principal-review.ymlstay at 40 — no evidence yet that their (narrower, verify-only) work is hitting the same wall; worth a separate look iferror_max_turnsever shows up for them.Sensitive path
This touches
.github/workflows/**, which.github/agent-policy.ymlmarksrisk:high/ human-merge-only regardless of author. Opening this as a normal human-authored PR for exactly that reason — please review and merge directly rather than routing through the agent pipeline.Follow-up
Once merged, #8/#89/#137/#178 should be re-triggered (toggle
status:ready-for-devoff/on) to get a real attempt at the new budget — the health-check routine will likely pick these up on its own next cycle since they're the same issue numbers it's been retrying.Closes #258 (or leave open if you want to also revisit qa-agent/principal-review's budgets — your call).