Skip to content

Document Blazor JS/.NET internal boundary compatibility rules for agents - #68979

Merged
javiercn merged 2 commits into
mainfrom
copilot/clarify-blazor-compatibility
Sep 2, 2026
Merged

javiercn merged 2 commits into
mainfrom
copilot/clarify-blazor-compatibility

Conversation

Copilot AI commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor
  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Agent instructions for the Components area did not state that the Blazor JS and .NET code ship and evolve together, leading to unnecessary compatibility shims and version negotiation for cross-major-version scenarios that cannot occur.

Description

Adds a JavaScript and .NET compatibility boundary section to src/Components/AGENTS.md (the file .github/instructions/components.instructions.md routes agents to). Documentation-only change.

  • Boundary definition — the protocol between src/Components/Web.JS and the Blazor Server/WebAssembly .NET code (circuit and interop message formats, boot config, JS initializers, Blazor._internal) is internal, not a public contract.
  • No cross-major compatibility — changes may update JS and .NET in the same commit; no shims, version negotiation, or fallback paths for 10.0 → 11.0, 11.0 → 12.0, etc. JS and runtime always come from the same build.
  • Scope limit — public .NET APIs, documented entry points such as Blazor.start, and app-facing JS interop APIs keep their normal compatibility requirements and API review process.
  • Servicing — the boundary stays compatible within a servicing branch unless explicitly approved.

Copilot AI changed the title [WIP] Update copilot-instructions for Blazor backwards compatibility Document Blazor JS/.NET internal boundary compatibility rules for agents Sep 2, 2026
Copilot AI requested a review from javiercn September 2, 2026 10:51
@javiercn
javiercn marked this pull request as ready for review September 2, 2026 10:56
@javiercn
javiercn requested a review from a team as a code owner September 2, 2026 10:56
Copilot AI lite review requested due to automatic review settings September 2, 2026 10:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is documentation-only, is consistent with the stated issue/PR description, and introduces no code or behavioral risk.

Pull request overview

This PR updates the Components agent guidance to explicitly document that the Blazor JavaScript (src/Components/Web.JS) and the Blazor Server/WebAssembly .NET runtime ship together and are treated as an internal compatibility boundary, clarifying that cross-major-version shims/version-negotiation are not required for that internal protocol.

Changes:

  • Adds a “JavaScript and .NET compatibility boundary” section to clarify the internal (non-public) nature of the JS↔.NET protocol surface.
  • States that cross-major compatibility (e.g., 10→11, 11→12) is not required for this boundary and that JS/.NET can be updated together in the same commit.
  • Clarifies that normal compatibility expectations still apply to public .NET APIs and documented JS entry points (e.g., Blazor.start), and adds a servicing-branch compatibility note.
File summaries
File Description
src/Components/AGENTS.md Documents the internal JS/.NET compatibility boundary and explicitly scopes where compatibility is and isn’t required.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Components/AGENTS.md Resolved
@javiercn
javiercn enabled auto-merge (squash) September 2, 2026 11:24
@javiercn

javiercn commented Sep 2, 2026

Copy link
Copy Markdown
Member

/ba-g docs changes only

@javiercn
javiercn merged commit c6ff925 into main Sep 2, 2026
11 of 17 checks passed
@javiercn
javiercn deleted the copilot/clarify-blazor-compatibility branch September 2, 2026 11:26
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 3, 2026
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.

Clarify Blazor backwards compatibility requirements for JS and .NET code

5 participants