Repository navigation
Document Blazor JS/.NET internal boundary compatibility rules for agents - #68979
Merged
Merged
Conversation
Co-authored-by: javiercn <[email protected]>
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
javiercn
marked this pull request as ready for review
September 2, 2026 10:56
Contributor
There was a problem hiding this comment.
🟢 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.
oroztocil
reviewed
Sep 2, 2026
pavelsavara
approved these changes
Sep 2, 2026
javiercn
enabled auto-merge (squash)
September 2, 2026 11:24
Member
|
/ba-g docs changes only |
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 boundarysection tosrc/Components/AGENTS.md(the file.github/instructions/components.instructions.mdroutes agents to). Documentation-only change.src/Components/Web.JSand the Blazor Server/WebAssembly .NET code (circuit and interop message formats, boot config, JS initializers,Blazor._internal) is internal, not a public contract.Blazor.start, and app-facing JS interop APIs keep their normal compatibility requirements and API review process.