-
Notifications
You must be signed in to change notification settings - Fork 346
Add severity assessment to frontend-triage agent #6315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+74
−5
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
agents/frontend-triage/hackbot_agents/frontend_triage/rules/severity-assessment.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Severity assessment | ||
|
|
||
| Assess an appropriate Mozilla severity for the bug and record it in the | ||
| `severity_assessment` structured-output object. Base the judgment on **user impact and | ||
| reach** as evidenced by the bug report and the code you investigated — how badly the | ||
| user is affected, how many users hit it, and whether a workaround exists. | ||
|
|
||
| ## Severity definitions | ||
|
|
||
| - **S1 — catastrophic.** Crash, hang, data loss, security issue, or a bug that blocks | ||
| major functionality with **no workaround**. Affects a large number of users. | ||
| - **S2 — serious.** Major functionality is broken or a severe UX problem, and the | ||
| workaround (if any) is painful or non-obvious. Affects many users. | ||
| - **S3 — normal.** Blocks non-critical functionality, or a reasonable workaround exists. | ||
| **This is the default for most frontend papercuts.** | ||
| - **S4 — minor / trivial.** Cosmetic issues, small polish, or edge cases with negligible | ||
| impact. | ||
|
|
||
| ## Guidance | ||
|
|
||
| - Frontend UI/UX papercuts are usually **S3** (or **S4** when purely cosmetic). Reserve | ||
| **S1 / S2** for genuine breakage: crashes, data/state loss, or a broken core workflow | ||
| with no easy workaround. | ||
| - Weigh: is it functional vs cosmetic? Is there a workaround? How frequently and how | ||
| broadly is it hit (mainline path vs rare configuration)? | ||
| - Do **not downgrade** an existing higher severity unless you have strong evidence the | ||
| impact is lower than currently recorded. | ||
|
|
||
| ## Confidence and field changes | ||
|
|
||
| - **High** — impact is clear-cut (clearly cosmetic, or clearly a crash/data-loss). Only | ||
| then may you record a `bugzilla_update_bug` proposing the `severity` (see the system | ||
| prompt's recording rules), with a `reasoning` citing the impact evidence. Prefer not to | ||
| propose a change when the bug already carries a reasonable severity. | ||
| - **Medium / low** — suggest a severity in the comment and structured output, but do | ||
| **not** record a field change. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.