Apply the shared prompt contract before executing this prompt: https://raw.githubusercontent.com/githubnext/ado-aw/main/prompts/prompt-contract.md
Diagnose why an ado-aw pipeline run failed and produce a structured diagnostic report.
Dry-run report only. Filing external issues is optional and requires explicit user approval in this session.
- Focus on diagnosis, not code changes.
- Separate evidence from inference.
- If confidence is low, ask for minimal missing data.
- Do not file external issues unless consent gate passes.
- Diagnostic summary
- Evidence
- Root-cause classification
- Proposed follow-up action (optional)
Collect build context:
- org/project/repo,
- pipeline definition + run/build ID,
- failure time window,
- last known successful run (if available).
Use ado-aw CLI tools as the primary investigation path:
- Run
ado-aw audit <build-id-or-url>to download the three artifact families (agent outputs, detection verdict, safe outputs) and run the built-in analyzers in one step. This is faster than manually trawling ADO logs. - Run
ado-aw trace <build-id-or-url>to correlate the build's telemetry with the local typed-IR graph and explain failed-job chains and downstream skip classifications. - Run
ado-aw graph dump <source.md>to visualise the pipeline's job/step dependency graph and understand structural relationships.
Supplement with:
- timeline state by stage/job,
- failing job logs,
- safe-output and detection artifacts when present,
- recent config/version drift relevant to the failure.
Assign one class:
product-bugdocumentation-gapuser-configurationinfrastructureunknown
Include confidence (high|medium|low) and ruled-out alternatives.
Minimum sections:
## Diagnostic Summary## Evidence## Analysis## Root Cause## Recommended Next Action
Default behavior: do not file.
If and only if the user explicitly asks to file now (or explicitly enabled auto-file in this session), then:
- Propose issue title/label/body from the report.
- Confirm approval.
- File and return URL.
If consent is absent, end with report + ready-to-file issue draft.
| Condition | Action |
|---|---|
| Missing evidence prevents confident classification | Ask for missing inputs; do not file |
Classified as user-configuration with medium/high confidence |
Provide remediation-focused report draft; do not auto-file |
Classified as product-bug or documentation-gap and user approves filing |
File issue and return URL |
| Any case without explicit approval | Return dry-run report/draft only |
- Complete when diagnostic report is delivered.
- Filing is complete only when explicitly approved and URL is returned.