Repository navigation
Add "edit criteria" for AI doc updates - #85893
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The documentation-only changes are coherent, complete, and introduce no unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Clarifies that agent-documentation assessment is mandatory, while edits are required only when specific criteria are met.
Changes:
- Defines documentation edit and “no edit” criteria.
- Aligns the repository instructions and documentation skill.
- Preserves mandatory API, diagnostic, and resource updates.
Holistic assessment: The change is focused, internally consistent, and directly supports the stated goal of reducing low-value documentation edits.
| File | Description |
|---|---|
.github/skills/update-agent-docs/SKILL.md |
Adds assessment criteria and refines the checklist. |
.github/copilot-instructions.md |
Aligns repository-wide documentation guidance. |
| **Necessary guidance for a new pattern missing?** → If it meets the edit criteria, document it in `.github/memory/CONVENTIONS.md` for repo-wide guidance or the matching `.github/instructions/<area>.instructions.md` for layer-specific guidance. | ||
|
|
||
| **Surprising or undocumented behavior found?** → Ask the user how they want it documented. | ||
| **Surprising or undocumented behavior found?** → Assess whether it meets the edit criteria. Ask the user only when a necessary documentation decision cannot be made confidently. |
There was a problem hiding this comment.
Let's also add a line about documenting workarounds for known issues inline, rather than in the knowledge base. IE, if an msbuild issue is encountered and needs some task override, the issue should be documented right at that override, not in the repo knowledge base.
There was a problem hiding this comment.
sry, will handle in followup
# By Sam Harwell (331) and others # Via GitHub (414) and others * upstream/main: (1352 commits) Document known issue workarounds inline (#85896) Restore automatic HTML test results for local runs (#85892) Report actual errors when strong-name HRESULT assertions fail (#85894) Restore main insertions after the VS 18.12 snap (#85824) Add "edit criteria" for AI doc updates (#85893) Handle cref type parameters in symbol lookup (#85840) Fix build warnings (#85754) Improve our Copilot instructions for testing [main] Update dependencies from dotnet/arcade (#85885) Rewrite 'router' phrasing Address review feedback Add option to disable cref paste fix Prefer repository terminology in generated output (#85878) Use cref for workspace extension handler Remove unnecessary static diagnostic registration Unsafe evolution: use safety documentation for unnecessary unsafe (#85842) Add Razor compiler team to code owners Unsafe evolution: avoid constructor recursion (#85773) Add roslyn-ide to Razor code owners Fix unexpected System.ArrayTypeMismatchException for captured method call receivers (#85811) ... Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: fd482dbd-c828-466b-87c6-6b2103be2089 # Conflicts: # src/Compilers/CSharp/Portable/Errors/ErrorCode.cs # src/Compilers/CSharp/Portable/Errors/MessageID.cs
Our goal is to reduce low-quality doc edits. Previous instructions encouraged action; new instructions encourage analysis and provide a "no edit" escape hatch explicitly.
Microsoft Reviewers: Open in CodeFlow