Skip to content

Enhance triage agent to complete full triage lifecycle#438

Closed
axon-agent[bot] wants to merge 1 commit intomainfrom
axon-fake-strategist-20260226-1200
Closed

Enhance triage agent to complete full triage lifecycle#438
axon-agent[bot] wants to merge 1 commit intomainfrom
axon-fake-strategist-20260226-1200

Conversation

@axon-agent
Copy link

@axon-agent axon-agent bot commented Feb 26, 2026

Summary

  • Enhance the axon-triage TaskSpawner prompt to complete the full triage lifecycle instead of stopping at classification
  • Add priority assessment (priority/imporant-soon, priority/import-longterm, priority/backlog) with clear criteria
  • Add actor recommendation (actor/axon vs needs-actor) with explicit criteria for what Axon can and cannot handle autonomously
  • Update label management to swap needs-triagetriage-accepted and clean up needs-priority/needs-actor labels
  • Preserve axon/needs-input as the human review gate — maintainer can override any recommendation before approving

Before: Triage agent classifies (kind/*) and checks validity, then stops. Maintainer must manually assess priority, assign actor, and update 3-4 labels per issue. 30 issues currently sit in this bottleneck.

After: Triage agent completes all label operations. Maintainer reviews the triage comment (now includes priority + actor justification) and removes axon/needs-input to approve — a single operation instead of 5.

Test plan

  • Verify YAML is valid (kubectl apply --dry-run=client -f self-development/axon-triage.yaml)
  • Deploy and observe triage output on a few issues to validate priority/actor recommendations
  • Confirm axon/needs-input still blocks worker pickup (safety gate preserved)

Closes #437

🤖 Generated with Claude Code


Summary by cubic

Expands the axon-triage agent to complete the full triage lifecycle (classify, validate, set priority, recommend actor, comment, and labels). Maintainers now only approve by removing axon/needs-input.

  • New Features
    • Adds priority assessment with three levels and applies the label (removes needs-priority).
    • Recommends actor; applies actor/axon or leaves needs-actor using clear criteria.
    • Posts one triage comment with kind, priority, actor, status, rationale, and recommendation.
    • Swaps needs-triage to triage-accepted and cleans up labels.
    • Keeps axon/needs-input as the review gate to block worker pickup until approval.

Written for commit 88842ea. Summary will update on new commits.

The triage agent currently classifies issues (kind/* label) and checks
validity, but stops short of priority assessment, actor recommendation,
and triage status label management. This leaves 3-4 manual label
operations per triaged issue for the maintainer.

Add two new triage tasks to the prompt:
- Priority assessment (priority/imporant-soon, import-longterm, backlog)
- Actor recommendation (actor/axon vs needs-actor)

Update label management to swap needs-triage → triage-accepted and
clean up needs-priority and needs-actor labels automatically.

The axon/needs-input label is preserved as the human review gate,
ensuring the maintainer can override any recommendation before a
worker agent picks up the issue.

Closes #437

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="self-development/axon-triage.yaml">

<violation number="1" location="self-development/axon-triage.yaml:79">
P2: Priority label names are misspelled (`imporant`/`import`), so the triage agent will apply non-standard labels instead of the intended `priority/important-*` labels.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.


### 5. Assess priority
Based on your analysis, recommend a priority level:
- `priority/imporant-soon` — Blocks adoption, user-facing bug, security issue,
Copy link

@cubic-dev-ai cubic-dev-ai bot Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Priority label names are misspelled (imporant/import), so the triage agent will apply non-standard labels instead of the intended priority/important-* labels.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At self-development/axon-triage.yaml, line 79:

<comment>Priority label names are misspelled (`imporant`/`import`), so the triage agent will apply non-standard labels instead of the intended `priority/important-*` labels.</comment>

<file context>
@@ -74,6 +74,37 @@ spec:
 
+      ### 5. Assess priority
+      Based on your analysis, recommend a priority level:
+        - `priority/imporant-soon` — Blocks adoption, user-facing bug, security issue,
+          or directly requested by the maintainer
+        - `priority/import-longterm` — Valuable improvement but not urgent, nice-to-have
</file context>
Fix with Cubic

@gjkim42
Copy link
Collaborator

gjkim42 commented Feb 26, 2026

great, but closed due to https://github.com/axon-core/axon/issues/441.
let's do this on #444

@gjkim42 gjkim42 closed this Feb 26, 2026
@gjkim42 gjkim42 deleted the axon-fake-strategist-20260226-1200 branch February 26, 2026 14:32
axon-agent bot pushed a commit that referenced this pull request Feb 26, 2026
- Update intro to describe full triage scope
- Remove priority/critical-urgent level (not in original issue spec)
- Use improved priority criteria with maintainer-request and quality-of-life
- Restructure actor criteria with explicit ALL/ANY conditions
- Combine label operations into single gh issue edit command
- Add explanatory paragraph about axon/needs-input review gate
- Use "or" instead of "/" in Actor comment format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
axon-agent bot pushed a commit that referenced this pull request Feb 26, 2026
- Update intro to describe full triage scope
- Remove priority/critical-urgent level (not in original issue spec)
- Use improved priority criteria with maintainer-request and quality-of-life
- Restructure actor criteria with explicit ALL/ANY conditions
- Combine label operations into single gh issue edit command
- Add explanatory paragraph about axon/needs-input review gate
- Use "or" instead of "/" in Actor comment format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
axon-agent bot pushed a commit that referenced this pull request Feb 26, 2026
- Update intro to describe full triage scope
- Remove priority/critical-urgent level (not in original issue spec)
- Use improved priority criteria with maintainer-request and quality-of-life
- Restructure actor criteria with explicit ALL/ANY conditions
- Combine label operations into single gh issue edit command
- Add explanatory paragraph about axon/needs-input review gate
- Use "or" instead of "/" in Actor comment format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow: Triage agent should complete the full triage lifecycle (priority, actor, label cleanup)

1 participant