Skip to content

Update the Components.Platform porting skill with rules settled by events, enums, and URL - #70417

Merged
ilonatommy merged 1 commit into
dotnet:mainfrom
jsakamotoIGJP:components-platform-skill-update
Nov 10, 2026
Merged

ilonatommy merged 1 commit into
dotnet:mainfrom
jsakamotoIGJP:components-platform-skill-update

Conversation

@jsakamotoIGJP

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. (Not applicable. This PR changes only the skill and its eval.)
  • You've included inline docs for your change, where applicable. (Not 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.

Update the porting skill with rules settled since Cookie Store

Description

This PR updates the port-components-platform-api skill. It does not change any product code.

Several designs were settled and merged after the last skill update (#69989). The skill still told the agent to leave events out, to map a Web IDL enum to a C# enum, and to stop and ask about objects that the caller owns. This PR turns those designs into rules.

Rules that wait for open designs stay out. They are the members under Navigator (#69968) and the AbortSignal mapping (#70044).

Skill eval

I added three stimuli to eng/skill-evals/port-components-platform-api/eval.vally.yaml. They cover a Web IDL enum with no default, an event on Window, and a review of a Cache Storage proposal with an old list type, an owner type, and an extension class named after the property. I ran the smoke experiment locally (one trial per stimulus). The skilled variant passed 10 of the 11 stimuli (93.6%), and the baseline passed none (12.7%). The skilled miss was the existing verify-web-storage-lifecycle stimulus. The judge wanted the ObjectDisposedException check in the scenario after a successful acquisition, not only before first use. This PR does not change the lifecycle rules.

Contributes to #69987

@jsakamotoIGJP
jsakamotoIGJP requested review from a team and wtgodbe as code owners November 10, 2026 05:33
Copilot AI balanced review requested due to automatic review settings November 10, 2026 05:33
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 10, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 10, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @jsakamotoIGJP. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

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

No active review issues remain for the porting guidance and evaluation-scenario updates.

No open issues 🎉

What changed in this PR

Updates the Components.Platform porting skill to reflect settled browser API designs for future projections. This PR changes guidance and evaluation scenarios only, not product code.

Changes:

  • Documents shared event listeners, caller-owned disposal, constructor projections, and static FeatureContext factories.
  • Updates type mappings for string-backed Web IDL enums, immutable returned lists, async iteration, and ulong.
  • Adds three evaluation scenarios covering enums without defaults, Window events, and corrections to a Cache Storage proposal.
File Description
eng/​skill-evals/​port-components-platform-api/​eval.vally.yaml Adds three scenarios and rubrics for the updated porting rules.
.github/​skills/​port-components-platform-api/​SKILL.md Incorporates settled event, ownership, factory, naming, and lifecycle guidance.
.github/​skills/​port-components-platform-api/​references/​type-mapping.md Defines updated enum, collection, numeric, and iterable mappings with testing guidance.

Review effort: Balanced

@jsakamotoIGJP

Copy link
Copy Markdown
Contributor Author

Hi @ilonatommy, this updates the porting skill with the designs that were settled and merged since the last skill PR (events, Web IDL enums, ImmutableArray<T>, caller-owned objects, iterables, FeatureContext). One rule is new: naming an extension class after the type it returns. Could you take a look when you have time?

@ilonatommy
ilonatommy enabled auto-merge (squash) November 10, 2026 09:14
@ilonatommy
ilonatommy merged commit b520e36 into dotnet:main Nov 10, 2026
47 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 3%

No docs needed: the PR only updates an internal repo porting skill and its eval, with no product or public API changes.

Documentation surfaces considered

  • Conceptual article: Not required — Changes only internal contributor tooling (skill and eval files); no user-visible behavior.
  • Migration guidance: Not required — No upgrade action for users.
  • Breaking change: Not required — No product code or compatibility impact.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — ad63af96 Deployed Nov 10, 2026 by ilonatommy via conclusion #262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants