Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the path-scoped Components guidance updates.
No open issues 🎉
What changed in this PR
Adds focused, path-scoped Components review guidance without changing runtime behavior, public APIs, or test-suite policy.
Changes:
- Adds checks for case-insensitive parameter-name collisions, including inherited parameters.
- Clarifies faithful permanent-test boundaries in line with #70411 and rejects tests that do not exercise the intended behavior.
- Adds Server/Endpoints checks for initialization deadlocks and error notifications suppressed by synchronous circuit termination.
| File | Description |
|---|---|
.github/instructions/components.server.instructions.md |
Adds root-component ordering and client-error notification checks; preserves logging guidance. |
.github/instructions/components.instructions.md |
Adds parameter-collision and test-boundary checks; preserves existing links and path scope. |
Review effort: Balanced
kubaflo
left a comment
There was a problem hiding this comment.
Review summary
Reviewed b2a342ae9e70a23a961edc78d9e2f0e2843a2e5d, target main, frozen base tip and verified merge base f2484a6bf688bd1acb1af13802255c2c23a071dd. Read both modified instruction files in full and traced the specific parameter-binding, permanent-test, circuit-quiescence, and disconnect/notification contracts. Reconciled CCR agreement 5948313533; no earlier substantive defect finding was present.
No actionable defect established. ComponentProperties enumerates inherited bindable properties through MemberAssignment, builds an OrdinalIgnoreCase writer dictionary, and throws for distinct colliding parameter members. MemberAssignment excludes the same inherited virtual property by base-definition identity, so the wording's “distinct parameter members” qualification matters. Existing case-variant and inherited-clash tests support the compatibility warning; it is not a blanket claim that ordinary overrides collide.
The test-boundary checks preserve managed RenderTree/service and faithful deterministic-module coverage below the browser while reserving browser-owned observables for the owning browser suite. The explicit distinction between browser-observed rendering and managed RenderTree output avoids treating any render assertion as E2E-only. The existing Platform suite path is present, and generated-template ownership remains separate.
Circuit ordering trace: current CircuitHost sets shouldWaitForQuiescence for the first update and awaits its initial render tasks. The frozen #68633 proposal at 39b01416d015e6dda10381a4cb4a1487ac9bee80 chains subsequent updates behind previousUpdate until the complete dispatched update finishes. If initialization requires disposal, queuing the removal behind that initialization creates the stated dependency cycle. The instruction is conditional on introducing serialization, not a false assertion that current main has that queue.
For error notification, the registered CircuitRegistry event subscriber calls TerminateAsync; its synchronous prefix removes the registered circuit and calls Client.SetDisconnected() before returning the disposal ValueTask. TryNotifyClientErrorAsync returns early when Client.Connected is false. That supports the warning to trace event subscribers before moving JS.Error notification later; an async-void subscriber does not defer the synchronous disconnect prefix.
Validation: git diff --check f2484a6bf688bd1acb1af13802255c2c23a071dd b2a342ae9e70a23a961edc78d9e2f0e2843a2e5d passed. Exact-byte comparison verified all prior text/frontmatter/links remain unchanged before the appended sections. The two files are ASCII and respectively 2,659 and 2,162 bytes, below the stated 4 KB bound. I did not rerun markdownlint or execute runtime/browser tests for this instruction-only change.
Canary calibration: the description appropriately calls the five old/new pairs exploratory and mixed, explicitly including one intended-silent control regression and another non-silent control in both arms. Counts are not correctness scores, and one pair per case cannot isolate instruction effects from nondeterminism. I did not independently inspect those fork review transcripts, instruction-load logs, historical-diff parity, or model identities; no multi-model consensus or overall CCR improvement is established by this review. These limitations are not erased by the source-grounded checks above.
Required Build Analysis and license/cla currently pass. Assessment: no source-level findings; safety confidence: low for cross-cutting agent guidance without an independently audited canary, rather than a shipping-code change. GPT-6.1 Sol source/text/CLI review; no relevant supplied visual media, browser/device or model campaign, product edits, approval, request-changes event, merge, or thread resolution.
|
Closing this for now. A held-out check showed that the test-boundary rule added comments on PRs where the reviewer should stay silent. Real-bug detection did not improve. The other rules do not have enough held-out cases yet to show a gain. We will look at the |
Add scoped Components code-review checks
Put compact Components review facts directly in path-scoped instructions.
Description
Keep the existing links and path scopes, and add four focused review checks to the two Components instruction files:
[Parameter]name collisions across declared and inherited parameters, including the compatibility risk when adding a base-class parameter.Web.JS.test.ts; browser-owned behavior uses the owning browser suite. Preserve the generated-template Playwright and existing Platform suite boundaries, and reject tests that never exercise or observe the intended contract. "Browser-observed rendering or rehydration" does not mean managed RenderTree output alone.UnhandledExceptionsubscriber can disconnect the client before a laterJS.Errornotification.The circuit checks are scoped to Server and Endpoints. Existing logging guidance is unchanged. This PR does not change
AGENTS.md, skills, product code, public APIs, or test-suite policy.Source verification used
mainatf2484a6bf688bd1acb1af13802255c2c23a071dd:ComponentProperties/MemberAssignment, the existing parameter-collision tests,CircuitHost,CircuitRegistry, the merged permanent-regression policy, and the existing Platform test suite. The ordering hazards are illustrated by the frozen #68633 proposal at39b01416d015e6dda10381a4cb4a1487ac9bee80; the instructions do not claim that currentmainalready serializes batches that way.Validation:
git diff --check- passed.npx --offline --yes --registry=https://packagefeedproxy.microsoft.io/npm/ --package markdownlint-cli@0.45.0 markdownlint --disable MD041 -- .github\instructions\components.instructions.md .github\instructions\components.server.instructions.md- passed. MD041 is excluded because these existing instruction fragments do not start with an H1; their original frontmatter and opening text are unchanged.applyTovalues are preserved; both files are ASCII and under 4 KB.Paired CCR canary
Ran one old/new pair for each frozen historical change on
PureWeen/aspnetcore(10 completed reviews). Both arms receive the same current instructions, skills, and normative Components policy over the historical product source; only these two instruction files differ between arms. Every fixture preserves its historical product diff exactly. Actions logs confirm the expected path-matched instructions were loaded in all 10 runs. Treatment wording matches this PR after line-ending normalization.JS.Error.These are mixed, exploratory, single-run output observations, including ties and a control regression. Comment counts are not correctness scores. Other comments were not independently adjudicated, and nondeterminism prevents attributing every difference to the instructions. No overall CCR improvement, accuracy, or recall claim is made.
Fixes: N/A (guidance-only change; no linked issue).