Restrict PR creation to axon-workers TaskSpawner only#445
Merged
Conversation
gjkim42
requested changes
Feb 26, 2026
| git push -u origin axon-fake-strategist-{{.ID}} | ||
| gh pr create --title "<title>" --body "<description>" --label generated-by-axon --label ok-to-test | ||
| ``` | ||
| - Do NOT create PRs. Only create issues. The axon-workers TaskSpawner handles PRs |
Collaborator
There was a problem hiding this comment.
p0: you don't have to mention axon-workers
1408746 to
1f454f5
Compare
857d2bb to
26262c5
Compare
This was referenced Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AXON_TASKSPAWNERenv var into agent containers from theaxon.io/taskspawnerlabel, so agents know which TaskSpawner created themaxon-fake-userandaxon-fake-strategistprompt templates, directing them to only create issuesaxon-triagealready had the correct restriction ("Do NOT open PRs")Why
Non-worker TaskSpawners (axon-fake-user, axon-fake-strategist) could create PRs without associated issues or consistent branch naming, making it difficult for maintainers to give feedback (see #441).
Test plan
AXON_TASKSPAWNERenv var injection (present and absent label cases)make testpassesmake verifypassesmake buildpassesFixes #441
🤖 Generated with Claude Code
Summary by cubic
Restricts PR creation to the axon-workers TaskSpawner. Sets AXON_TASKSPAWNER from the axon.io/taskspawner label to keep PRs tied to issues and our workflow; fixes #441.
New Features
Bug Fixes
Written for commit 26262c5. Summary will update on new commits.