Skip to content

[browser] Add scoped WebAssembly review guidance - #138148

Merged
maraf merged 2 commits into
mainfrom
maraf/wasm-review-instruction-improvements
Nov 25, 2026
Merged

maraf merged 2 commits into
mainfrom
maraf/wasm-review-instruction-improvements

Conversation

@maraf

@maraf maraf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

Add focused WebAssembly review guidance based on recurring PR feedback, without expanding global repository instructions.

  • Put the general guide in the runtime-neutral docs/workflow/wasm-review.md, covering SDK/workload/in-tree ownership, configuration consumers, native build bridges, incremental outputs and Static Web Assets.
  • Extend the Wasm.Build.Tests README with scenario/output-helper reuse, category selection, scoped binlog observations and coverage guidance.
  • Add a Wasm-scoped instruction router and link the guide from the existing Wasm documentation index.

Documentation only; no product code, test implementation or public API changes.

Independent historical-review validation

Four fresh sessions reviewed two merged PRs: one baseline and one new-guidance reviewer per PR. Each reviewed the exact source head attached to the original feedback, not the final merged code. Original comments, expected findings and counterpart results were withheld from reviewers; their first-pass responses were saved and hashed before comparison.

PR Frozen pre-feedback head Baseline agreement New-guidance agreement
#136971 1e6c03358c1575baaf29538bf630ab0647a16beb 1.5/4 4/4
#136772 d9f1d954190aa89869e920bbf7b98f9324862240 0/3 2/3
Total 1.5/7 6/7

Scoring criteria were fixed before launch: 1 for a specific actionable equivalent to the original feedback, 0.5 for an incomplete equivalent, and 0 for absent or generic advice. These measure feedback agreement, not production-defect counts. Original feedback was published by the reviewer's account; some comments explicitly disclose Copilot assistance.

Feedback criterion Baseline New guidance
Direct MSBuild Publish default and coverage 0 1
Proper shared testasset/scenario 0.5 1
Standard test-output helper 0 1
CoreCLR runtime category 1 1
Synchronize the equivalent SDK workload-manifest condition 0 0
Share the literal CMake feature baseline 0 1
Respect the separate Mono CMake bridge and runtime-specific policy 0 1

The baseline asset recommendation moved the program into a replacement fixture; the guided recommendation used a shared application scenario, matching the original follow-up more closely. Both arms missed the SDK manifest synchronization. The relevant equivalent SDK gate was subsequently verified in version-pinned source, not by executing the historical SDK.

Both native reviews also found the supported DLL-named R2R output being excluded by an extension filter and incomplete all-image stamp assertions; these common findings are not credited as guidance uplift. Guided output was not a strict superset: baseline-only advice included preserving the first build's binlog and adding independent alignment-rewriter regression tests.

Limitations

This is a small retrospective comparison on two cases used to derive the guidance, not a held-out, randomized or causal demonstration of general improvement. The coordinator knew the treatment arms; inherited instructions, temporally newer contributor docs, skill availability and probe use were not fully controlled. Reviewers explicitly consumed the new Markdown content, so automatic instruction-router activation was not tested. No full historical SDK/browser/toolchain scenario was reproduced, and no zero-false-positive rate is claimed.

Validation

  • git diff --check — passed.
  • npm exec --yes --package markdownlint-cli -- markdownlint .github/instructions/wasm.instructions.md docs/workflow/wasm-review.md src/mono/wasm/Wasm.Build.Tests/README.md docs/workflow/wasm-documentation.md — passed with repository configuration.
  • Session-local documentation validator — passed 18 relative link/anchor checks, 14 existing positive and 8 negative routing examples, frontmatter, final newlines and trailing whitespace. This checks the explicit globs, not live Copilot routing.
  • Runtime builds/browser tests were not run for these Markdown-only changes. One baseline historical reviewer ran isolated MSBuild selection and synthetic alignment probes using a newer host SDK; those are not full historical-toolchain validation.

Note

This PR description was generated with the assistance of GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
14 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@maraf
maraf merged commit 407dd59 into main Nov 25, 2026
22 checks passed
@maraf
maraf deleted the maraf/wasm-review-instruction-improvements branch November 25, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants