Repository navigation
Description
What happened
On 2026-10-21, issue quay/quay#7808 ("Backport check-pr-title.sh mirror-registry prefix fix to mirror-registry-3.0") was labeled ready-to-code, triggering code agent run 39646070959 in quay/quay. The agent correctly diagnosed the task, identified that the fix must target mirror-registry-3.0, and produced the appropriate commit. The post-code.sh branch-validation gate then rejected the push with the error: "Agent requested branch 'mirror-registry-3.0' but allowed branches are: master". CODE_ALLOWED_TARGET_BRANCHES was not set in the harness environment for this repo, so the guard defaulted to master only. The run concluded as failure. No PR was opened for issue #7808, which remained unresolved. The agent had no way to bypass the gate, and the failure was logged only in the CI run — no comment was posted on the issue explaining why the agent could not complete the task.
What could go better
The failure mode is deterministic: any ready-to-code issue in quay/quay that requires a PR targeting a non-master branch (e.g., mirror-registry-*, redhat-*) will produce the same failure if CODE_ALLOWED_TARGET_BRANCHES is not configured to include that branch. This is not a one-off edge case — quay/quay maintains multiple active release branches and routinely uses ready-to-code for backport tasks. The current behavior leaves issues silently stranded: the agent fails, no PR is created, and no actionable feedback is posted to the issue. The maintainer who labeled the issue may not notice the failure or understand why the agent could not act. I am moderately confident this is a recurring pattern; I have one confirmed instance (run 39646070959) and a deterministic root cause that predicts recurrence. I did not exhaustively search fullsend-ai/fullsend for an existing issue covering this exact failure mode — it is possible an open issue already addresses it, though the existing issues I found about bot-authored PR routing (e.g., #8549, #6791) are about a different failure path.
Proposed change
Two complementary changes: (1) When the post-code.sh branch-validation gate rejects a push because the target branch is not in CODE_ALLOWED_TARGET_BRANCHES, post a comment on the originating issue explaining the failure and what configuration is required to enable the agent for non-master target branches. This makes the failure visible to maintainers who labeled the issue. (2) Document how to configure CODE_ALLOWED_TARGET_BRANCHES for repos with active release branches (e.g., mirror-registry-*, redhat-*) so that backport issues can be handled by the code agent. This documentation could live in the fullsend platform docs or in the harness config schema. A third option — defaulting the allowed branches list to all branches the repo's git remote exposes, rather than to master only — would eliminate the configuration burden but would require a policy decision about which PRs agents should be allowed to open.
Validation criteria
After the fix: (1) When the branch guard fires, the originating issue receives a comment within the same CI run explaining the failure and the required configuration. (2) A quay/quay maintainer can enable backport-branch support for the code agent without modifying files in the .fullsend repo. (3) No future code agent run on quay/quay targeting a backport branch fails silently with the 'allowed branches' error without an issue comment.
Generated by retro agent from quay/quay#7817
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity