{"id":"agent-pm-bug-triage-priority-rules","audience":"product-managers","category":"agents","track":"agents","technique":"examples","title":"Brief an agent to triage bugs with your priority rules","free":false,"task":"You want an AI agent to triage new bug reports. Write its brief using your rules: P1 means data loss or payments broken, P2 means a feature broken with no workaround, P3 is everything else; link duplicates to the original and never close anything; assign only P1 bugs, to Mei (on call). Output a plain-text numbered action log of at most 10 lines, ending with DONE.","materialLabel":"Bug reports and actions (attached to your prompt automatically)","material":"New bug reports - Tallyhub (Friday)\n\nB1 - \"After merging two customer records, all invoices from the second customer are gone. Not archived, gone.\" (3 reports)\nB2 - \"Typo on the settings page: 'Recieve notifications'.\"\nB3 - \"CSV export button does nothing on the Reports page. No other way to get the data out, we need it for month end.\"\nB4 - \"Export to CSV is broken on Reports, clicking it does nothing.\" (from a different customer, same day as B3)\nB5 - \"Customer was charged twice for the same invoice when they clicked Pay and refreshed.\"\nB6 - \"Tooltip on the dashboard chart takes about a second to appear. Kind of annoying.\"\n\nTeam: Mei (on call this week), Arjun (billing), Sofia (reports)\n\nAvailable actions:\nlabel(bug, priority)\nlink_duplicate(bug, original)\nassign(bug, person)\nclose(bug)\nASK_HUMAN(question)\nDONE(summary)","rules":[{"type":"maxBullets","max":10},{"type":"plainText"}],"promptHints":[{"label":"Defines the priorities","patterns":["p1","data loss","workaround"]},{"label":"Handles duplicates","patterns":["duplicate","link"]},{"label":"Forbids closing","patterns":["close"]},{"label":"Sets who gets assigned","patterns":["mei","assign","on[- ]call"]},{"label":"Shows the action-log format","patterns":["action:","action log","numbered","\\b1\\.","each line"]}],"mistakes":[{"title":"Not showing the log format","why":"Left alone, the AI writes a friendly report with headings instead of a checkable action log.","fix":"Show it literally: \"Format every line like 1. ACTION: tool(args), then ASK_HUMAN: and DONE: lines. Plain text.\"","checks":["maxBullets","plainText"]},{"title":"Not giving your definitions","why":"The AI uses its own sense of severity and calls the annoying tooltip a P2.","fix":"Add: \"P1 = data loss or payments broken, P2 = broken with no workaround, P3 = the rest.\"","checks":["r0"]},{"title":"Letting it close duplicates","why":"The AI tidies up by closing duplicates, losing the second customer's report.","fix":"Add: \"Link duplicates to the original. Never close.\"","checks":["r1"]},{"title":"No assignment rule","why":"The AI assigns every bug to whoever seems related.","fix":"Add: \"Assign only P1 bugs, to Mei.\"","checks":["r2"]}],"hint":"Priority means what your team says it means. Give the definitions, the duplicate rule, and who gets assigned what.","rubricLabels":["Labels B1 and B5 as P1, B3 as P2, and B2 and B6 as P3","B4 is linked to B3 as a duplicate, and there is no close line","B1 and B5 are assigned to Mei, no other bug is assigned to anyone, and the last line starts with DONE"]}