Skip to content

Autowebcompat diagnosis agent - #6551

Open
ksy36 wants to merge 1 commit into
mozilla:masterfrom
ksy36:autowebcompat-diagnosis
Open

Autowebcompat diagnosis agent#6551
ksy36 wants to merge 1 commit into
mozilla:masterfrom
ksy36:autowebcompat-diagnosis

Conversation

@ksy36

@ksy36 ksy36 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This agent has the same browser / MCP setup as the autowebcompat-repro agent.
I'm going to move the browser installation and MCP servers into a shared directory in a separate PR.

The agent has 3 tasks:

  1. DiagnosisPlan
    Creates a plan for diagnosis, picks the browser channel to install, locates the Puppeteer script if available, records url and STR.

  2. ReproScript (If Puppeteer script exists and passes in Chrome/ fails in Firefox this step is skipped)
    If the script doesn't exist or doesn't work as expected, it tries to reproduce the bug again and create the script.

  3. Diagnosis
    Does root-cause diagnosis, creates minimal testcase.

I've added reproduction and puppeteer script creation mainly so we could use it for opt-in diagnosis on bugzilla bugs that don't have prior runs of the repro agent. But we can certainly make it diagnosis only and run the repro agent first when diagnosis is requested.
Also when sites change and previously created puppeteer script does not work, this agent would create it's own revised version of the script and have one more attempt to reproduce the bug, so it might be good to keep ReproScript anyway.

@ksy36
ksy36 force-pushed the autowebcompat-diagnosis branch from 7dd4313 to 815c3a4 Compare August 8, 2026 04:13
typically named `Reproduction script generated by autowebcompat bot`),
download it to exactly:
{self.script_path}.

@ksy36 ksy36 Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking the bugzilla attachment link to the script (i.e. https://bug1952830.bmoattachments.org/attachment.cgi?id=9623008) could also be passed by the caller as an additional parameter instead of asking the agent to locate it.

@ksy36
ksy36 force-pushed the autowebcompat-diagnosis branch from 815c3a4 to 18f7008 Compare August 10, 2026 03:26
@ksy36
ksy36 marked this pull request as ready for review August 10, 2026 03:26
@ksy36
ksy36 requested a review from a team as a code owner August 10, 2026 03:26
@ksy36
ksy36 requested review from jgraham and jrmuizel August 10, 2026 03:27
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