Skip to content

Commit e49b63e

Browse files
authored
CI Issue agent: be reluctant to label bugs, push for missing info (#31901)
1 parent 362620b commit e49b63e

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/claude-issue-agent-run.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,12 @@ jobs:
9595
- If you reached a high-certainty conclusion, post the result: a short
9696
summary of the problem, the most likely root cause or affected files
9797
(with paths), and whether it looks fixable.
98-
- If information needed to diagnose is missing from the report (e.g. no
99-
log, no reproduction, no version), instead ask the user for the
100-
specific missing details, and do not assert a root cause.
98+
- PUSH FOR MISSING INFORMATION. If anything needed to diagnose is
99+
missing or incomplete — no log, no reproduction steps, no config, no
100+
version, or a screenshot in place of data — do NOT assert a root
101+
cause. Ask the user for the specific missing details instead. When in
102+
doubt whether you have enough to conclude, always err toward asking
103+
rather than guessing.
101104
Format the comment as valid GitHub-flavored Markdown. Use GitHub's
102105
autolink forms: `#<number>` for issues/PRs in this repo,
103106
`owner/repo#<number>` across repos, a bare 7–40 char SHA for commits in
@@ -114,11 +117,19 @@ jobs:
114117
bug, enhancement, documentation, question, device, tariff, vehicle, heating.
115118
Only ever apply a label from this existing set — never create a new label.
116119
Skip this step if the issue already has one of these labels.
117-
- Only classify as a bug when the evidence shows a genuine software
118-
defect. If the report is missing information, or you cannot tell
119-
whether it is a software bug versus a configuration/user error, do NOT
120-
apply `bug` — pick a better fit (e.g. question) or leave it unlabeled,
121-
and explain why in your comment.
120+
- Be reluctant to classify as a bug. Apply `bug` (or type Bug) ONLY
121+
when the report gives clear, reproducible evidence of a genuine
122+
software defect that you could confirm against the code. Missing
123+
information, an unreproducible report, a screenshot in place of
124+
logs/data, or any doubt between a software defect and a
125+
configuration/user error all mean: do NOT apply `bug` — pick a better
126+
fit (e.g. `question`) or leave it unlabeled, and explain why in your
127+
comment. Default away from `bug`.
128+
- If in step 2 you asked for missing information needed to diagnose,
129+
add the `waiting for feedback` label
130+
(`gh issue edit ${{ inputs.issue_number }} --add-label "waiting for feedback"`)
131+
and do not apply `bug`. `waiting for feedback` is an allowed existing
132+
label, additional to the set above.
122133
- When you do classify it as a bug, prefer setting the issue type to Bug
123134
(`gh issue edit ${{ inputs.issue_number }} --type Bug`) over the plain
124135
`bug` label.

0 commit comments

Comments
 (0)