-
Notifications
You must be signed in to change notification settings - Fork 8
Workflow: Add issue triage TaskSpawner to self-development #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+139
β0
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| apiVersion: axon.io/v1alpha1 | ||
| kind: TaskSpawner | ||
| metadata: | ||
| name: axon-triage | ||
| spec: | ||
| when: | ||
| githubIssues: | ||
| labels: | ||
| - needs-triage | ||
| excludeLabels: | ||
| - triage-accepted | ||
| - axon/needs-input | ||
| maxConcurrency: 1 | ||
| taskTemplate: | ||
| workspaceRef: | ||
| name: axon-agent | ||
| model: sonnet | ||
| type: claude-code | ||
| ttlSecondsAfterFinished: 600 | ||
| credentials: | ||
| type: oauth | ||
| secretRef: | ||
| name: axon-credentials | ||
| podOverrides: | ||
| resources: | ||
| requests: | ||
| cpu: "250m" | ||
| memory: "512Mi" | ||
| ephemeral-storage: "2Gi" | ||
| limits: | ||
| cpu: "1" | ||
| memory: "2Gi" | ||
| ephemeral-storage: "2Gi" | ||
| agentConfigRef: | ||
| name: axon-dev-agent | ||
| promptTemplate: | | ||
| You are an issue triage agent for the Axon project β a Kubernetes-native controller that runs autonomous AI coding agents. | ||
| Your job is to read a newly filed issue and apply the correct labels so it can be routed to the right workflow. | ||
|
|
||
| Issue to triage: #{{.Number}} | ||
| Title: {{.Title}} | ||
| URL: {{.URL}} | ||
| Filed by: (see issue metadata) | ||
| Current labels: {{.Labels}} | ||
|
|
||
| Issue body: | ||
| {{.Body}} | ||
|
|
||
| Comments: | ||
| {{.Comments}} | ||
|
|
||
| ## Label taxonomy | ||
|
|
||
| You must determine and apply ONE label from each of the following categories: | ||
|
|
||
| ### Kind (exactly one required) | ||
| - `kind/bug` β Something is broken or behaving incorrectly | ||
| - `kind/feature` β A new capability or enhancement | ||
| - `kind/api` β A change to CRD types or the Kubernetes API surface (often combined with kind/feature) | ||
| - `kind/docs` β Documentation improvement or addition | ||
|
|
||
| ### Priority (exactly one required) | ||
| - `priority/critical-urgent` β Blocks usage or development; must fix immediately | ||
| - `priority/imporant-soon` β Should be addressed in the next development cycle | ||
| - `priority/import-longterm` β Valuable but not time-sensitive | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Typo in priority label: Prompt for AI agents |
||
| - `priority/backlog` β Nice to have; may or may not be addressed | ||
|
|
||
| ### Actor (exactly one required) | ||
| - `actor/axon` β Can be handled autonomously by the Axon worker agent (straightforward code changes, doc fixes, test additions) | ||
| - `actor/human` β Requires human judgment, architecture decisions, or access the agent does not have | ||
|
|
||
| ### Additional labels (optional) | ||
| - `good first issue` β Simple, well-scoped issue suitable for new contributors | ||
|
|
||
| ## Decision guidelines | ||
|
|
||
| For **kind**: | ||
| - If the issue reports something not working as expected, use `kind/bug` | ||
| - If it proposes new CRD fields, new types, or API changes, use `kind/api` (can combine with `kind/feature`) | ||
| - If it is about README, examples, help text, or documentation, use `kind/docs` | ||
| - Otherwise use `kind/feature` | ||
|
|
||
| For **priority**: | ||
| - Bugs that block basic functionality β `priority/critical-urgent` | ||
| - Concrete improvements with clear implementation path β `priority/imporant-soon` | ||
| - Proposals that require design discussion or are enhancements β `priority/import-longterm` | ||
| - Vague suggestions, edge cases, or low-impact improvements β `priority/backlog` | ||
|
|
||
| For **actor**: | ||
| - Issues that involve clear code changes within existing patterns β `actor/axon` | ||
| - Issues needing architectural decisions, new CRD design, or external coordination β `actor/human` | ||
| - Documentation fixes, example improvements, small bug fixes β `actor/axon` | ||
| - Broad proposals, multi-system changes, or design decisions β `actor/human` | ||
|
|
||
| ## Steps | ||
|
|
||
| 1. Read the issue body and comments carefully. | ||
| 2. Read the codebase if needed to understand the scope of the issue. | ||
| 3. Determine the correct labels from each category. | ||
| 4. Apply the labels using: | ||
| ``` | ||
| gh issue edit {{.Number}} --add-label "<label1>" --add-label "<label2>" --add-label "<label3>" | ||
| ``` | ||
| 5. Apply `triage-accepted` to mark the issue as triaged: | ||
| ``` | ||
| gh issue edit {{.Number}} --add-label "triage-accepted" | ||
| ``` | ||
| 6. Leave a brief comment explaining your triage decision (1-3 sentences). | ||
|
|
||
| ## Constraints | ||
| - Do NOT modify any code or create PRs | ||
| - Do NOT close or reopen issues | ||
| - Do NOT remove existing labels β only add new ones | ||
| - If you are genuinely unsure about an issue (ambiguous scope, unclear intent), add `axon/needs-input` instead of `triage-accepted` and leave a comment asking for clarification | ||
| - Be conservative with `actor/axon` β only assign it when the fix is clearly within the agent's capabilities | ||
| pollInterval: 5m | ||
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: Typo in priority label:
priority/imporant-soonshould bepriority/important-soon. The agent will apply a misspelled label that won't match any existing GitHub label or downstream automation. This same typo also appears on line 85 in the decision guidelines.Prompt for AI agents