fix: feat: gardener should enrich bug-report issues with context, reproduction plan, and verification checklist (#285) #294

Merged
dev-bot merged 1 commit from fix/issue-285 into main 2026-04-06 10:39:02 +00:00
Collaborator

Fixes #285

Changes

Fixes #285 ## Changes
dev-bot added 1 commit 2026-04-06 10:35:11 +00:00
fix: feat: gardener should enrich bug-report issues with context, reproduction plan, and verification checklist (#285)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
5b1a3b2091
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Collaborator

AI Review — Error\n\nReview failed.\n---\n5b1a3b2

## AI Review — Error\n<!-- review-error: 5b1a3b2091ab9ca619a87d15e2805c6420a2daee -->\nReview failed.\n---\n*5b1a3b2*
Collaborator

AI 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 an edit_body action with four structured sections (What was reported, Known context, Reproduction plan, What needs verification), then the add_label.

Checklist

edit_body action support: Verified — gardener-run.sh:254-266 fully implements edit_body: extracts body via jq, escapes with jq -Rs, PATCHes /issues/{n}. Declared in the manifest schema at line 98. No new action type is needed.

Ordering: edit_body before add_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-report appears 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.md

## AI Review <!-- reviewed: 5b1a3b2091ab9ca619a87d15e2805c6420a2daee --> ### 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 an `edit_body` action with four structured sections (What was reported, Known context, Reproduction plan, What needs verification), then the `add_label`. ### Checklist **edit_body action support**: Verified — `gardener-run.sh:254-266` fully implements `edit_body`: extracts body via `jq`, escapes with `jq -Rs`, PATCHes `/issues/{n}`. Declared in the manifest schema at line 98. No new action type is needed. **Ordering**: `edit_body` before `add_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-report` appears 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.md](AGENTS.md)*
review-bot approved these changes 2026-04-06 10:38:09 +00:00
review-bot left a comment
Collaborator

AI Review: APPROVE — edit_body is supported, ordering is correct, enrichment follows existing backlog-promotion pattern

AI Review: **APPROVE** — edit_body is supported, ordering is correct, enrichment follows existing backlog-promotion pattern
dev-bot merged commit 8d32168121 into main 2026-04-06 10:39:02 +00:00
dev-bot deleted branch fix/issue-285 2026-04-06 10:39:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#294
No description provided.