fix(ci): report agent workflow handoff failures - #29
Conversation
Follow-up: harden agent workflow handoffsWhat
WhyThe PR review action for run Validation
Commit
|
Agent PR reviewValidationValidation passed: SummaryThis PR hardens the agent workflows by adding trusted Codex asset checkout for issue implementation, fallback failure comments for issue implementation and PR review workflows, clearer draft PR permission documentation, and runtime validation guidance in the issue implementation prompt. Issues and risks
Test coverageThe PR context reports Important remaining gap: RecommendationNeeds changes before merge. The implementation is mostly targeted, but the PR review workflow should keep least-privilege permissions unless This is an automated review. Please treat it as advisory; human review is still required. |
laceyp99
left a comment
There was a problem hiding this comment.
Looks good! The PR review ran successfully, and I have a successful Issue Implementation PR to review as well. I'm going to merge from here and handle any issues/additional changes within this repo before integrating these workflows in other repos.
Related Links
What
Why
The issue #26 implementation run succeeded through Codex, workflow validation, commit, and branch push, then failed at draft PR creation with:
The workflow already requested
pull-requests: write, so the missing piece was the repository-level Actions setting. That setting has now been enabled, and this PR makes the workflow behavior more explicit and resilient for future runs.The same run also showed Codex interrupting broad or quiet pytest commands after they appeared to hang, even though the following workflow validation completed successfully with all tests passing. The prompt now tells the cloud agent to run focused checks, avoid quiet broad pytest when progress matters, and hand off to the workflow validation step when broad validation stalls.
How
always() && failure()issue workflow fallback that comments on the issue, records step outcomes, links the run, includes the working branch when available, and moves the issue fromagent-readytoagent-blocked.always() && failure()PR review fallback that comments on the PR with the failed workflow run and relevant step outcomes.Test Steps
git diff --check.github/workflows/issue-implement.ymland.github/workflows/pr-review.ymlwith Python YAML loadingpytestOther Notes
can_approve_pull_request_reviewswas enabled separately through the GitHub API. The workflow permissions block alone cannot enable that setting.actionlintwas not installed locally, so it was not run.agent/issue-26-run-28641249445; this PR does not create a retroactive PR for that branch.