Skip to content

Document how we handle AI generated bug reports in new ports + AI review maintainer guide - #615

Merged
Victor Romero (vicroms) merged 12 commits into
MicrosoftDocs:mainfrom
BillyONeal:ai-bugs
Oct 20, 2026
Merged

Victor Romero (vicroms) merged 12 commits into
MicrosoftDocs:mainfrom
BillyONeal:ai-bugs

Conversation

@BillyONeal

Copy link
Copy Markdown
Collaborator

Context: microsoft/vcpkg#54022

Before we deployed AI code review tools, we would have merged this PR. It has no patches that break our patching policy in @maintainer-guide.md , and upstream is responsive and merged the contributor's initial patch. However, our new-ish AI code review tools looked at this situation, followed back to the upstream repo's code, and found similar problems elsewhere.

This puts us between a rock and a hard place on our values:

  1. We want to not have vcpkg's registry making primarily opinion based value judgements on what qualifies to land in the registry, and we view the owners of components ultimately as the arbiters of what vcpkg install name installs.
  2. We want to not ship known vulnerable / exploitable code. Before we fed results to the AI tools, ignorance was bliss because we never even looked at the upstream code most of the time.

We can't really avoid (2) in the general case of course, given that we aren't ultimately the maintainers of components. The vcpkg maintainers can't get the level of depth necessary in all ~2800+ components we index to make confident calls here. We also don't want to put ourselves in a case where we have to blindly trust AI tools' opinions on what is a meaningful bug. To that end, we are adopting the following compromise / policy:

If a bug in new port found by the AI code review tools:

  • Bug must be reported to upstream.
  • Upstream can say "not a bug" and we consider their word final.
  • Upstream can fix the bug (of course).
  • If we don't hear from upstream in 30 days, default to trusting the AI tool that it's an exploitable problem and close the new port submission.

Drive by: Audit for "project" vs. "component", where the former refers to an organization of people that maintain a thing (e.g. the Debian project) and the latter refers to bits that are actually installed (e.g. the Debian operating system or any of the packages therein)

Since I was here also washed the whole maintainer guide through copilot looking for inconsistencies and got it to fix many, in particular "link domain" as a concept was used without any definition.

Context: microsoft/vcpkg#54022

Before we deployed AI code review tools, we would have merged this PR. It has no patches that break our patching policy in @maintainer-guide.md , and upstream is responsive and merged the contributor's initial patch. However, our new-ish AI code review tools looked at this situation, followed back to the upstream repo's code, and found similar problems elsewhere.

This puts us between a rock and a hard place on our values:

1. We want to not have vcpkg's registry making primarily opinion based value judgements on what qualifies to land in the registry, and we view the owners of components ultimately as the arbiters of what `vcpkg install name` installs.
2. We want to not ship known vulnerable / exploitable code. Before we fed results to the AI tools, ignorance was bliss because we never even looked at the upstream code most of the time.

We can't really avoid (2) in the general case of course, given that we aren't ultimately the maintainers of components. The vcpkg maintainers can't get the level of depth necessary in all ~2800+ components we index to make confident calls here. We also don't want to put ourselves in a case where we have to blindly trust AI tools' opinions on what is a meaningful bug. To that end, we are adopting the following compromise / policy:

If a bug in new port found by the AI code review tools:
   * Bug must be reported to upstream.
   * Upstream can say "not a bug" and we consider their word final.
   * Upstream can fix the bug (of course).
   * If we don't hear from upstream in 30 days, default to trusting the AI tool that it's an exploitable problem and close the new port submission.

Drive by: Audit for "project" vs. "component", where the former refers to an organization of people that maintain a thing (e.g. the Debian project) and the latter refers to bits that are actually installed (e.g. the Debian operating system or any of the packages therein)
…stinguish what is behavior changing since registries started using git-trees.
Explain case-by-case grandfathering and delisting, dependency exposure through link domains, and narrowly scoped manual-link opt-ins.

Distinguish cosmetic edits from reliability fixes, document version updates once per squash-merged PR, clarify downstream feature requirements, and require commit-pinned patch downloads.

Update the deprecated helper example and fix countdown wording and editorial issues while preserving discretionary AI-bug, maintenance, and Windows export policies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 3094dd6:

✅ Validation status: passed

File Status Preview URL Details
vcpkg/contributing/maintainer-guide.md ✅Succeeded View

For more details, please refer to the build report.

@prmerger-automator

Copy link
Copy Markdown

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.

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.

Copilot review overview

🟡 Changes recommended

The revised guidance incorrectly narrows manual-link rules to Windows libraries and breaks two existing heading anchors.

Review effort: Balanced
Findings: 2 Low severity

Open (2)
What changed in this PR

Updates the maintainer guide with AI-found bug handling policies and broader guidance clarifications.

Changes:

  • Defines upstream reporting and waiting rules for AI findings.
  • Clarifies port, dependency, versioning, and review policies.
  • Modernizes terminology and examples.
File Description
vcpkg/​contributing/​maintainer-guide.md Revises and expands maintainer policies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread vcpkg/contributing/maintainer-guide.md Resolved
Comment thread vcpkg/contributing/maintainer-guide.md Resolved
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 3a9fd87:

✅ Validation status: passed

File Status Preview URL Details
vcpkg/contributing/maintainer-guide.md ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@prmerger-automator

Copy link
Copy Markdown

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.

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.

Copilot review overview

🟡 Changes recommended

The documented review-update workflow omits the flag required to refresh an existing version entry.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
Resolved since last review (2)
Comment thread vcpkg/contributing/maintainer-guide.md Resolved
Clarify instructions for updating version files in PRs.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit b231de9:

✅ Validation status: passed

File Status Preview URL Details
vcpkg/contributing/maintainer-guide.md ✅Succeeded View

For more details, please refer to the build report.

@prmerger-automator

Copy link
Copy Markdown

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.
@vicroms
Victor Romero (vicroms) merged commit eda2ef2 into MicrosoftDocs:main Oct 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants