Skip to content

Conversation

@marcoscaceres
Copy link
Collaborator

@marcoscaceres marcoscaceres commented Dec 2, 2025

Add instructions for copilot for what to check for when doing reviews.

This pull request adds a comprehensive set of review instructions for Copilot to use when reviewing pull requests to the Digital Credentials Specification. The new .github/copilot-instructions.md file establishes clear editorial, technical, and procedural guidelines to ensure high-quality, standards-compliant contributions. The instructions cover editorial quality, ReSpec conventions, normative references, algorithm requirements, accessibility, internationalization, security, conformance, and more.

Add instructions for co-pilot for what to check for when doing reviews.
Copilot AI review requested due to automatic review settings December 2, 2025 02:55
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 02:57
@marcoscaceres marcoscaceres changed the title chore: add co-pilot review Instructions chore: add copilot review Instructions Dec 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive review guidelines for GitHub Copilot when reviewing pull requests to the Digital Credentials W3C specification. The instructions document establishes clear standards for editorial quality, ReSpec syntax, normative references, algorithm design, and various quality attributes (security, accessibility, i18n).

Key Changes:

  • Added detailed Copilot review instructions covering editorial quality, ReSpec linking conventions, and W3C standards compliance
  • Documented normative dependencies and browser interoperability requirements
  • Established guidelines for accessibility, internationalization, security, and RFC 2119 keyword usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 2, 2025 02:58
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 03:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcoscaceres marcoscaceres changed the title chore: add copilot review Instructions chore: add copilot review instructions Dec 2, 2025
Plus additional fixes.
Copilot AI review requested due to automatic review settings December 2, 2025 03:31
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 03:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 2, 2025 03:39
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 03:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 2, 2025 03:55
@w3c-fedid w3c-fedid deleted a comment from Copilot AI Dec 2, 2025
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 03:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 305 to 307
- `BREAKING CHANGE:`

For normative changes, **do not use any prefix**.
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Contradiction in commit message conventions: BREAKING CHANGE: is listed under "Allowed prefixes (non-normative changes only)" but breaking changes are inherently normative (they affect WebIDL, algorithms, observable behavior, etc. as described in lines 320-324).

Consider either:

  1. Removing BREAKING CHANGE: from the non-normative prefixes list and treating it as a special case, OR
  2. Clarifying that BREAKING CHANGE: is an exception to the "non-normative changes only" rule

The <BreakingChange> section (lines 316-325) makes it clear that breaking changes are normative, so the categorization here is misleading.

Suggested change
- `BREAKING CHANGE:`
For normative changes, **do not use any prefix**.
For normative changes, **do not use any prefix**.
Exception: For breaking normative changes, the commit message MUST begin with `BREAKING CHANGE:` (see <BreakingChange> below).

Copilot uses AI. Check for mistakes.
Updated the document title and refined review instructions for clarity and consistency. Adjusted various sections to improve language precision and adherence to W3C standards.
Copilot AI review requested due to automatic review settings December 2, 2025 04:09
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 04:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcoscaceres marcoscaceres requested a review from a team December 2, 2025 04:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 2, 2025 04:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 04:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings December 2, 2025 04:59
marcoscaceres and others added 2 commits December 2, 2025 16:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 05:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 2, 2025 05:05
Copilot finished reviewing on behalf of marcoscaceres December 2, 2025 05:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

4. **WebIDL** is valid and matches algorithm behavior.
5. **Security, privacy, a11y, and i18n** concerns are not obviously violated.
6. **Commit messages** follow the project’s conventions.
If you can only do a few things on a PR, focus on these.
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

[nitpick] Potential inconsistency: Line 17 states "If you can only do a few things on a PR, focus on these" which suggests selective review, but the overall instructions appear to expect comprehensive review of all aspects. Consider clarifying whether this is guidance for resource-constrained scenarios or general prioritization advice.

Suggested change
If you can only do a few things on a PR, focus on these.
If you are unable to perform a comprehensive review of a PR, prioritize checking these key areas.

Copilot uses AI. Check for mistakes.

<RFCChecks>
- Check that MUST, MUST NOT, SHOULD, SHOULD NOT, MAY appear only in normative contexts.
- Conformance requirements using RFC2119 keywords only apply to a "user agent" implementing the specification (i.e., "A user agent MUST..." or where the context is obvious). There are no other conformance classes/objects (e.g., "Developers MUST..." would be wrong).
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The phrase "Conformance requirements using RFC2119 keywords only apply to a 'user agent' implementing the specification" is unclear about the scope. The statement appears to be defining a single conformance class but the phrasing could be misinterpreted. Consider clarifying whether this means RFC2119 keywords should ONLY ever reference user agents, or if other contexts are acceptable.

Suggested change
- Conformance requirements using RFC2119 keywords only apply to a "user agent" implementing the specification (i.e., "A user agent MUST..." or where the context is obvious). There are no other conformance classes/objects (e.g., "Developers MUST..." would be wrong).
- In this specification, RFC2119 keywords (MUST, SHOULD, MAY, etc.) are only to be used in conformance requirements that apply to the "user agent" implementing the specification (e.g., "A user agent MUST..."). No other conformance classes or objects (such as "Developer") are defined, so using these keywords for other entities is incorrect.

Copilot uses AI. Check for mistakes.
Comment on lines +79 to +81
Use caret syntax:
- `[^iframe^]`
- `[^input^]`
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Inconsistent bracketing notation: Line 82 shows [^iframe/allow^] but this doesn't follow the pattern established by [^iframe^] and [^input^]. If "allow" is an attribute of the iframe element, the syntax should clarify whether a slash is the correct delimiter for element/attribute references in ReSpec.

Suggested change
Use caret syntax:
- `[^iframe^]`
- `[^input^]`
Use caret syntax for HTML elements:
- `[^iframe^]`
- `[^input^]`
To reference an attribute of an element, use `[^element/attribute^]`:

Copilot uses AI. Check for mistakes.
- `fix stuff`
- `update spec`
- `should work now`
- `edit: tweaks`
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The example "edit: tweaks" on line 327 uses "edit:" which isn't mentioned as a valid prefix in the Prefixes section. According to lines 293-299, non-normative changes should use either "chore:" or "editorial:". Consider replacing this example with one that uses the documented prefixes, or add "edit:" to the list of acceptable prefixes if it's intentionally valid.

Suggested change
- `edit: tweaks`
- `chore: tweaks`

Copilot uses AI. Check for mistakes.
Comment on lines +114 to +123
- [credential-management] — Credential Management Level 1
- [dom] — DOM Standard
- [html] — HTML Standard
- [infra] — Infra Standard
- [permissions] — Permissions API
- [permissions-policy] — Permissions Policy
- [RFC2119]
- [RFC8174]
- [vc-data-model] — Verifiable Credentials Data Model v2.0
- [WebIDL] — Web IDL Standard
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Inconsistent reference formatting in the NormativeReferences section. Lines 114-123 use lowercase bracket notation (e.g., [credential-management], [dom]) while earlier examples in the References section (lines 86-91) use uppercase notation (e.g., [[RFC2119]], [[HTML]]). The actual ReSpec syntax uses double brackets with typically uppercase shortnames. Consider updating these to match the standard [[shortname]] format for consistency.

Suggested change
- [credential-management] — Credential Management Level 1
- [dom] — DOM Standard
- [html] — HTML Standard
- [infra] — Infra Standard
- [permissions] — Permissions API
- [permissions-policy] — Permissions Policy
- [RFC2119]
- [RFC8174]
- [vc-data-model] — Verifiable Credentials Data Model v2.0
- [WebIDL] — Web IDL Standard
- [[CREDENTIAL-MANAGEMENT]] — Credential Management Level 1
- [[DOM]] — DOM Standard
- [[HTML]] — HTML Standard
- [[INFRA]] — Infra Standard
- [[PERMISSIONS]] — Permissions API
- [[PERMISSIONS-POLICY]] — Permissions Policy
- [[RFC2119]]
- [[RFC8174]]
- [[VC-DATA-MODEL]] — Verifiable Credentials Data Model v2.0
- [[WEBIDL]] — Web IDL Standard

Copilot uses AI. Check for mistakes.
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.

2 participants