Repository navigation
Document how we handle AI generated bug reports in new ports + AI review maintainer guide - #615
Conversation
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)
…ries etc. are APIs too
…prebuilt binaries.
…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>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 3094dd6: ✅ Validation status: passed
For more details, please refer to the build report. |
PRMerger Results
|
There was a problem hiding this comment.
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
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.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit 3a9fd87: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
PRMerger Results
|
Clarify instructions for updating version files in PRs. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit b231de9: ✅ Validation status: passed
For more details, please refer to the build report. |
PRMerger Results
|

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:
vcpkg install nameinstalls.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:
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.