-
Notifications
You must be signed in to change notification settings - Fork 136
Add AI resources for GitHub issue handling and debugging support, Fixes AB#3377270 #2411
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
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: fadidurah <[email protected]>
…de injection Co-authored-by: fadidurah <[email protected]>
|
@copilot This is good so far. Let's make sure that we are looking at existing github issues in this repository (both closed and open) to assist in compiling the common issues |
Co-authored-by: fadidurah <[email protected]>
Co-authored-by: fadidurah <[email protected]>
I've analyzed existing GitHub issues (both open and closed) and enhanced the common issues guide with patterns from the following issues: R8/ProGuard Issues: #1677, #2076, #2289, #2355 The guide now includes specific solutions for these commonly reported problems and the workflow detects patterns like AADB2C90080, R8 minification failures, display-mask resolution, and Android 15 compatibility issues. Added a "Referenced GitHub Issues" section at the end of the guide for future maintenance. Commit: c5abcc4 |
|
@copilot How many issues were checked? Let's shoot for at least 200. Use the resolution notes from the engineers as guidance for how to resolve such issues, if you are not already doing so. Let's consolidate a bit, so we don't end up with a massive common-issues-guide.md, take guidance from multiple issues are group them to have single entreis that cover many issues. For example, if there are 5 or 6 issues that specifically deal with proguard, unless the issues are completely different, we should only have one or two entries in the guidance file. Also, the latest msal version is actually 8.+ now. Go ahead and update the references in the guidance files throughout the repo (AI files, README, this work, etc.) to match this. |
… version to 8.+ Co-authored-by: fadidurah <[email protected]>
…e XML snippet Co-authored-by: fadidurah <[email protected]>
I analyzed 251 GitHub issues (both open and closed) and consolidated them into grouped entries. The guide now covers 70+ specific issues across categories including R8/ProGuard, Silent Token/Refresh, Broker, Configuration, Network, WebView/Browser, B2C, Android 15, and Runtime issues. Similar issues are grouped together with single consolidated entries (e.g., 6 ProGuard issues → 1 comprehensive section). I've also updated all MSAL version references from 7.+ to 8.+ across README.md, Ai.md, .github/copilot-instructions.md, and the common-issues-guide.md. Commit: bb1eea8 |
|
@copilot The information in |
Co-authored-by: fadidurah <[email protected]>
I've expanded the guidelines to cover all interaction channels (GitHub issues, web chat, agent sessions). Key additions:
Commit: 73e718b |
|
@copilot Is the information you've collected to answer github issues also accessible when a user prompts you for debugging help directly? What if you are given a stack trace of an error, or a code snippet from customer's app that has some bad calling pattern? |
Yes, the information is accessible for all interaction channels. The
When you receive a stack trace or code snippet, you should:
The copilot-instructions.md is the single source of truth that GitHub Copilot uses for all MSAL Android interactions. |
|
@copilot Please update the PR description and title to explicitly mention that these changes enable both github issue responses and mitigation as well as providing general debugging support to user prompts. |
Updated the PR description to explicitly highlight both capabilities:
Added a "How It Works" section explaining how the resources are used for each channel. Note: I'm unable to update the PR title directly, but you can change it to something like "Add AI resources for GitHub issue handling and debugging support". |
|
@copilot Please add eplicit instructions, as clear as possible for AI Agents, in the AI.md, README.md in the root directory, and the copilot-instructions file, to always reference the |
…md as primary source of truth Co-authored-by: fadidurah <[email protected]>
Added explicit "AI AGENTS: PRIMARY SOURCE OF TRUTH" callouts to all three files:
Each callout includes the raw URL for direct access and explicitly instructs AI agents to prioritize this guidance over all other sources. Commit: 36c4ee1 |
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive AI agent resources to support automated GitHub issue triage and provide debugging assistance across all customer interaction channels. The changes establish a knowledge base for common MSAL Android issues, communication guidelines for customer-facing interactions, and an automated workflow for initial issue classification and response.
- Adds three new reference documents: common issues guide (compiled from 250+ issues), customer communication guidelines, and automated issue response workflow
- Updates existing AI instruction files (README.md, Ai.md, copilot-instructions.md) with prominent callouts directing AI agents to use copilot-instructions.md as the primary source of truth
- Updates MSAL version references throughout the repository from 6.+/7.+ to 8.+
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Added AI agent callout directing to copilot-instructions.md; updated MSAL version from 6.+ to 8.+ |
| Ai.md | Added AI agent callout as primary instructions; updated MSAL version from 7.+ to 8.+ |
| .github/copilot-instructions.md | Added AI agent callout at top; added Section 6 for customer interaction guidelines; updated MSAL version from 7.+ to 8.+ |
| .github/workflows/copilot-issue-response.yml | New automated workflow for issue triage, labeling, and pattern detection |
| .github/issue-responses/common-issues-guide.md | New comprehensive troubleshooting reference covering 11 major issue categories |
| .github/issue-responses/customer-communication-guidelines.md | New communication guidelines and response templates for all interaction channels |
| .github/issue-responses/README.md | New directory README explaining the issue response resources |
| For MSAL 6.0.0+ or 7.0.0+, you may also need: | ||
| ```gradle | ||
| // Add Tink and SpotBugs annotations if R8 errors persist | ||
| implementation("com.google.crypto.tink:tink:1.17.0") { | ||
| exclude group: 'com.google.protobuf' | ||
| } | ||
| implementation 'com.github.spotbugs:spotbugs-annotations:4.9.3' | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot
Add an explicit recommendation to upgrade to the latest MSAL in this scenario, unless customer absolutely needs to stay on an older version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot please make this change, Add an explicit recommendation to upgrade to the latest MSAL in this scenario, unless customer absolutely needs to stay on an older version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an explicit recommendation to upgrade to the latest MSAL version (8.+) in the R8/ProGuard section, noting that users should only stay on older versions if they have specific compatibility requirements.
Commit: d85143d
Co-authored-by: Copilot <[email protected]>
|
✅ Work item link check complete. Description contains link AB#3377270 to an Azure Boards work item. |
…ection Co-authored-by: fadidurah <[email protected]>
Adds AI-agent resources for triaging GitHub issues and providing general debugging support to users across all interaction channels: a common issues reference guide, customer communication guidelines, and an automated workflow for initial issue triage.
Capabilities
This PR enables AI agents to:
New Resources
.github/issue-responses/common-issues-guide.md— Comprehensive troubleshooting reference compiled from 250+ existing GitHub issues (open and closed), covering:.github/issue-responses/customer-communication-guidelines.md— Response templates, triage criteria, escalation procedures, and communication best practices for all interaction channels (GitHub issues, web chat, agent sessions)..github/workflows/copilot-issue-response.yml— Automated workflow that classifies issues, applies labels, generates initial responses, and detects common error patterns.Updated
.github/copilot-instructions.md— Added prominent "AI AGENTS: THIS IS YOUR PRIMARY SOURCE OF TRUTH" calloutAi.md— Added prominent callout directing AI agents to.github/copilot-instructions.mdREADME.md— Added "AI AGENTS: PRIMARY INSTRUCTIONS" callout✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.