Bug Fix Flow
From bug ticket to merged PR -- triage, reproduce with browser automation, fix, and ship. Works with ADO and Jira.
End-to-End Bug Fix
A single command chains all three phases together.
/dx-bug-all <ID or JIRA-KEY> Chains Triage, Verify, and Fix automatically. Or run each phase individually for more control.
/dx-bug-triage /dx-bug-verify /dx-bug-fix Bug Fix Phases
Each phase produces structured output that feeds into the next.
1. Triage
/dx-bug-triageFetches the bug from ADO or Jira, identifies the affected component and source files, checks for cross-repo dependencies.
2. Verify
/dx-bug-verifyPlaywright MCP navigates to the affected page, follows repro steps, takes screenshots.
Three modes: before (confirm bug exists), after (verify fix locally),
qa (verify fix on QA post-merge).
3. Fix
/dx-bug-fixGenerates implementation plan, executes fix steps, runs the same test/review/commit loop as features, creates PR.
Bug Fix Flow Diagram
The full decision tree from bug ID to learning.
/dx-bug-all <ID or JIRA-KEY> The full decision tree from bug ID to learning.
/dx-bug-triage /dx-bug-verify /dx-bug-fix Browser Automation
Playwright MCP provides real browser interaction for bug reproduction.
Page Navigation
Navigates to the affected page, handles QA Basic Auth, waits for page load, and interacts with elements.
- Navigate to URL
- Click elements, fill forms
- Take screenshots at each step
- Evaluate JavaScript in page context
AEM Component Dialog
For AEM bugs, the aem-bug-executor agent interacts directly with the component
dialog in the AEM author environment.
- Open component dialog
- Inspect field values
- Compare with expected state
- Screenshot dialog panels
Cross-Repo Detection
Bugs don't always live in the repo where they're reported.
KAI-HUB Routing
In automation, the KAI-HUB router resolves which repos the bug touches via /dx-discover-repos
(reading the triage ## Cross-Repo Scope table among other tiers) and queues the BugFix worker
once per resolved repo. Each worker clones its target repo dynamically and runs the fix there.
Same Repo
Bug and fix are in the same repo. The worker fires directly via its own webhook and proceeds to verify and fix.
Other Repo
Bug reported in frontend but fix needed in backend. /dx-discover-repos resolves the
backend repo and the hub fans the BugFix worker out to clone and fix it.
Bug Pattern Detection
Bug history is tracked per component to identify hotspots.
Hotspot Alerts
When 3 or more bugs are filed against the same component, a hotspot alert is triggered. This flags the component for deeper review — recurring bugs in the same area often indicate a systemic issue rather than isolated defects.
Individual Commands
Run each phase separately for more control.
| Command | Phase | Output |
|---|---|---|
/dx-bug-triage <ID> | Triage | raw-bug.md, triage.md |
/dx-bug-verify [before|after|qa] | Verify | verification.md / verification-local.md / verification-qa.md, screenshots |
/dx-bug-fix | Fix | implement.md, commits, PR |
/dx-bug-all <ID> | All three | Everything above, end-to-end |