Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 14, 2025

Instance aware flow is a 1st party-only feature that should not be suggested to 3rd party customers. This PR adds explicit guidance to prevent Copilot from recommending it incorrectly.

Changes

  • New section "Instance Aware Flow Restrictions" in .github/copilot-instructions.md:
    • Marks instanceAware config and instance_aware query parameter as 1st party-only
    • Prohibits suggesting this feature for 3rd party applications
    • Clarifies existing docs at lib/msal-browser/docs/instance-aware.md are for internal use
    • Provides alternative solutions for 3rd party multi-cloud scenarios (standard flows, proper authority config, separate app registrations)

Context

Instance aware flow enables dynamic cloud instance selection via STS parameters in the /authorize response. While available in the public API surface, it's designed exclusively for Microsoft internal applications handling users across cloud boundaries.

Original prompt

Please create a PR for me that updates the "copilot-instructions.md" file that states that the instance aware flow is only available for 1st party customers, and not to suggest or use instance aware for 3rd party customers. Please use the instructions located at .github/copilot-instructions.md for the PR.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update copilot-instructions to clarify instance aware flow Add instance aware flow restriction to copilot-instructions.md Nov 14, 2025
Copilot AI requested a review from jo-arroyo November 14, 2025 21:42
Copilot finished work on behalf of jo-arroyo November 14, 2025 21:42
@jo-arroyo jo-arroyo marked this pull request as ready for review November 14, 2025 22:25
@jo-arroyo jo-arroyo requested a review from a team as a code owner November 14, 2025 22:25
Copilot AI review requested due to automatic review settings November 14, 2025 22:25
Copilot finished reviewing on behalf of jo-arroyo November 14, 2025 22:27
Copy link
Contributor

Copilot AI left a 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 explicit guidance to prevent GitHub Copilot from recommending the instance aware flow feature to 3rd party developers, as it's exclusively designed for Microsoft internal applications. The new section clarifies that while the feature exists in the public API, it should only be used by 1st party Microsoft customers for handling users across different cloud instances.

Key Changes

  • Added "Instance Aware Flow Restrictions" section with clear prohibitions against suggesting this feature to external developers
  • Documented what instance aware flow is and when it should be used (1st party only)
  • Provided alternative solutions for 3rd party multi-cloud scenarios

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.

2 participants