Repository navigation
fix(ci): raise principal-review.yml's turn cap and stop discarding a valid verdict on crash - #298
Conversation
…valid verdict on crash Closes #297. --max-turns 40 was too tight — the agent's last action is writing principal-verdict.txt, so hitting the cap one turn later is common (PR #281's job log: num_turns 41 vs cap 40). At least 4 same-day crashes (PRs #257/#264/#281, plus one flagged earlier on #279) threw away a verdict the agent had already written, routing good work to status:needs-info instead of using it. Raised the cap to 65, and changed the crash-handling branch in 'Advance PR based on review verdict' to check principal-verdict.txt even when the agent step reports failure — only routes to status:needs-info when there's truly no usable verdict on disk. Sensitive path (.github/workflows/**) — opening as a direct human-authored PR for that reason.
|
This PR was opened outside the automated pipeline (author isn't |
QA verdict: PR #298 vs issue #297Scope: Acceptance criteria (issue #297)
What I ran
One thing I chased down and ruled outThe new Heads up, not a QA blocker on this PR itselfPR #299 ( QA verdict: PASS |
|
This PR's branch is stale relative to |
📱 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. |
Closes #297.
--max-turns 40was too tight forprincipal-review.yml's "Run principal review agent" step — the agent's last action before ending is writingprincipal-verdict.txt, so hitting the cap one turn later than a clean finish is common, not rare. At least 4 same-day crashes (PRs #257, #264, #281, plus one flagged earlier on #279 without the cap being raised) discarded a verdict the agent had already written, routing good review work tostatus:needs-infoinstead of using it (PR #281's job log:"num_turns": 41vs the 40 cap).--max-turnsto65.principal-verdict.txteven whensteps.agent.outcome == 'failure'. A crash with a valid verdict already on disk now proceeds on that verdict (with a PR comment flagging the crash for visibility) instead of being discarded tostatus:needs-info. A crash with no usable verdict file still routes tostatus:needs-info, unchanged.Scoped to
principal-review.ymlonly —qa-agent.ymlhas the same--max-turns 40/ discard-on-crash shape but hasn't shown this exact failure mode yet, noted in the issue as a possible follow-up.Sensitive path (
.github/workflows/**) — opening as a direct human-authored PR for that reason.