Skip to content

feat(strands-command): add bug verifier agent#71

Open
JackYPCOnline wants to merge 1 commit into
strands-agents:mainfrom
JackYPCOnline:feat/bug-verifier-agent
Open

feat(strands-command): add bug verifier agent#71
JackYPCOnline wants to merge 1 commit into
strands-agents:mainfrom
JackYPCOnline:feat/bug-verifier-agent

Conversation

@JackYPCOnline

Copy link
Copy Markdown
Contributor

Motivation

Bug reports vary in quality. A maintainer typically has to (1) decide whether the
described behavior is plausible from the code, (2) try to reproduce it (often
reconstructing a runnable repro from prose), and (3) judge urgency before
prioritizing. This duplicates work across every report and delays response.

This PR adds an agent that performs that triage automatically: inspects the
implicated source, attempts the reporter's reproduction in the sandbox and
falls back to producing one of its own, scores urgency, and applies triage
labels. It comments on the issue in two cases only — to share a derived
reproduction the reporter didn't supply, or to ask for more information when
reproduction failed entirely.

Public API changes

A new /strands bug-verify command (or bug verify) backed by
task-bug-verifier.sop.md, plus one new write tool:

add_issue_labels(issue_number=42, labels=["bug-validated", "P1"])

Additive (preserves existing labels), routes through the same deferred-write
path as the other write tools.

Verdict → action

Outcome Comment? Labels
Reproduced via reporter's repro No bug-validated + P0P3
Reproduced via derived repro Shares validated repro bug-validated + P0P3
Partially reproduced No bug-needs-info
Not reproduced / Insufficient info Asks for missing info bug-cannot-reproduce + autoclose in 7 days

Follow-up

A companion auto-trigger workflow (on [BUG] issue creation) and a
local-preview skill ship in sdk-python as a separate PR, since they're
repo-specific. Consumer repos need to create the new triage labels in repo
settings.

Adds a new agent that triages bug reports by inspecting the
implicated source, attempting a reproduction (the reporter's
steps first, a derived repro as fallback), scoring urgency,
and applying triage labels.

Comments on the issue only when (1) the reporter's steps could
not be validated but the agent produced its own working repro
(shares it), or (2) neither path reproduced the bug (requests
more information).

- New SOP: task-bug-verifier.sop.md
- Wire 'bug-verify' command through process-input.cjs
- New additive write tool add_issue_labels in github_tools.py
- Register the tool in agent_runner.py and write_executor.py

Companion auto-trigger workflow and local-preview skill ship in
the sdk-python repo as a separate PR.
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.

1 participant