fix: feat: gardener should enrich bug-report issues with context, reproduction plan, and verification checklist (#285) #294
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-285"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #285
Changes
AI Review — Error\n\nReview failed.\n---\n
5b1a3b2AI Review
Summary
The PR extends bug-report detection so the gardener enriches qualifying issue bodies before labeling them. Instead of just appending
add_label, it first writes anedit_bodyaction with four structured sections (What was reported, Known context, Reproduction plan, What needs verification), then theadd_label.Checklist
edit_body action support: Verified —
gardener-run.sh:254-266fully implementsedit_body: extracts body viajq, escapes withjq -Rs, PATCHes/issues/{n}. Declared in the manifest schema at line 98. No new action type is needed.Ordering:
edit_bodybeforeadd_label— correct. Body is enriched before the label is applied, so any downstream listener on the label event sees the already-enriched body.Consistency: Follows the identical pattern used for backlog-promotion enrichment (formula lines 142-170). Same manifest action, same JSONL append idiom.
Section quality: The four sections (what was reported, known context, reproduction plan, what needs verification) are well-targeted — concise summary, codebase-inferred context via
git log, concrete reproduction steps, and tailored checkboxes. Turns raw reports into actionable investigation briefs for the reproduce-agent.JSON escaping: Claude writes multi-line bodies into JSONL the same way the comment and existing edit_body enrichment do. No change to this established convention.
Structural analysis:
label:bug-reportappears as orphan (no issues use it yet) — expected; no bugs detected yet. Not introduced by this PR.Verdict
APPROVE — edit_body is supported, ordering is correct, enrichment follows existing backlog-promotion pattern
Reviewed at
5b1a3b2| AGENTS.mdAI Review: APPROVE — edit_body is supported, ordering is correct, enrichment follows existing backlog-promotion pattern