Skip to content

feat(triage): add needs_clarification_label to prevent duplicate clarification comments#145

Merged
keinstn merged 1 commit into
developfrom
agent/keinstn__baton-138
Jun 24, 2026
Merged

feat(triage): add needs_clarification_label to prevent duplicate clarification comments#145
keinstn merged 1 commit into
developfrom
agent/keinstn__baton-138

Conversation

@keinstn

@keinstn keinstn commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Closes #138

Summary

  • Adds optional needs_clarification_label field to TrackerTriageConfig (parsed from TRIAGE.md front matter, defaults to null)
  • After posting a clarification comment, applies the label when the field is configured
  • Skips issues already carrying the label before evaluation, preventing duplicate comments
  • Documents the new field in examples/TRIAGE.md
  • Adds tests for config parsing of the new field; fixes baseConfig in fetcher test for the new required field

Test plan

  • npm run typecheck passes
  • npm run lint passes
  • npm test passes (327 tests, including 4 new tests for needs_clarification_label parsing)
  • When needs_clarification_label is omitted, behavior is identical to before
  • When set, label is applied after the clarification comment
  • Issues with the label are filtered out before evaluation

🤖 Generated with Claude Code

…ification comments

When the evaluator returns needs_clarification, apply an optional label
after posting the comment. Subsequent runs skip issues already carrying
the label, so the same comment is never posted twice. Removing the label
re-enters the issue in the triage pool automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@keinstn

keinstn commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

[Baton Reviewer] PR reviewed: no actionable issues found; ready for human review.
Managed by Baton; do not edit the marker line manually.

@keinstn keinstn self-assigned this Jun 24, 2026
@keinstn
keinstn merged commit 22193ef into develop Jun 24, 2026
4 checks passed
@keinstn
keinstn deleted the agent/keinstn__baton-138 branch June 24, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(triage): add needs_clarification_label to prevent duplicate clarification comments

1 participant