Skip to content

Ground AI architecture claims in sources - #55304

Merged
baronfel merged 1 commit into
dotnet:mainfrom
mthalman:mthalman-source-link-ai-claims
Jul 16, 2026
Merged

baronfel merged 1 commit into
dotnet:mainfrom
mthalman:mthalman-source-link-ai-claims

Conversation

@mthalman

Copy link
Copy Markdown
Member

Link high-value SDK architecture, ownership, and product claims to primary sources, correct stale command-dispatch and template-engine summaries, and teach code review to flag ungrounded AI context.

Link high-value SDK architecture, ownership, and product claims to primary sources, correct stale command-dispatch and template-engine summaries, and teach code review to flag ungrounded AI context.

Co-authored-by: Copilot App <[email protected]>
@mthalman
mthalman requested a review from lbussell as a code owner July 15, 2026 20:10
Copilot AI review requested due to automatic review settings July 15, 2026 20:10
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
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.

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.

Pull request overview

This PR strengthens the repository’s AI/contributor-facing documentation by grounding high-value architecture/ownership/product claims in primary sources and by teaching the code-review skill to flag ungrounded or unsupported claims in AI context.

Changes:

  • Expand the code-review SKILL guidance to flag ungrounded or unsupported architecture/ownership/product claims (not just stale docs).
  • Add a “Grounding architecture and product claims” section to .github/copilot-instructions.md, setting expectations for sourcing and linking evidence.
  • Replace/augment several high-level architecture descriptions in .github/copilot-instructions.md with repo-relative links to the concrete code and build/layout entry points they describe.

Reviewed changes

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

File Description
.github/skills/code-review/SKILL.md Updates review guidance to flag newly added/changed important claims that lack durable primary-source citations.
.github/copilot-instructions.md Adds sourcing guidance and links key SDK architecture/dispatch/layout/template claims to concrete in-repo sources (and external ownership repos).

14. **Documentation & explanatory comments for non-obvious SDK behavior** — subtle target/property decisions, runtime mapping, or cross-repo ownership boundaries that a future maintainer cannot infer from types or names and that lack a durable comment; stale comments that contradict the code; workaround comments without a tracking link.
15. **Repository convention violations** — the change breaks a rule documented in the [repository guardrails](../../copilot-instructions.md#guardrails) or the nearest area `AGENTS.md`. Read those files (they govern the directories being changed) and flag violations the build won't already catch — for example, hand-editing generated or regenerated files, or fixing behavior in this repo that another repo owns.
16. **Stale AI context / instructions / docs** — the change makes something an AI- or contributor-facing artifact says no longer true: a documented command, file path or location, guardrail, build/test workflow, convention, or architecture description that the change has invalidated (for example, moving or renaming a file that a doc references), and that artifact wasn't updated in the same PR. Name the exact file — `.github/copilot-instructions.md`, any `AGENTS.md` in an affected subdirectory, a `.github/skills/*/SKILL.md`, a `.github/agents/*.agent.md`, or a file under `documentation/` — and the concrete drift. Don't flag internal changes that no artifact describes.
16. **Stale or ungrounded AI context / instructions / docs** — the change makes something an AI- or contributor-facing artifact says no longer true: a documented command, file path or location, guardrail, build/test workflow, convention, or architecture description that the change has invalidated (for example, moving or renaming a file that a doc references), and that artifact wasn't updated in the same PR. Also flag newly added or materially changed important claims about architecture, product behavior, or ownership when they lack a durable primary-source link (code or project files, an ADR or design document, or an issue or PR). Flag citations that do not support the claim and inferences presented as established facts. Name the exact artifact — `.github/copilot-instructions.md`, any `AGENTS.md` in an affected subdirectory, a `.github/skills/*/SKILL.md`, a `.github/agents/*.agent.md`, or a file under `documentation/` — and the concrete drift or unsupported claim. Don't flag internal changes that no artifact describes, and don't demand citations for routine instructions or obvious code-local facts.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't have ADRs, right? (at least not yet?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct, not yet. I didn't see a reason to exclude them from here.

@baronfel
baronfel merged commit 50f91b3 into dotnet:main Jul 16, 2026
19 checks passed
@mthalman
mthalman deleted the mthalman-source-link-ai-claims branch July 16, 2026 18:43
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants