Skip to content

Consolidate generated-file guardrails in agent instructions#55218

Open
mthalman wants to merge 1 commit into
dotnet:mainfrom
mthalman:mthalman-strengthen-agent-guardrails
Open

Consolidate generated-file guardrails in agent instructions#55218
mthalman wants to merge 1 commit into
dotnet:mainfrom
mthalman:mthalman-strengthen-agent-guardrails

Conversation

@mthalman

@mthalman mthalman commented Jul 9, 2026

Copy link
Copy Markdown
Member

Add an Agent Guardrails section to .github/copilot-instructions.md that lists the generated files agents must not hand-edit (.xlf, generated manpages, and workflow lock files) as a single source of truth, and remove the duplicated restrictions from the Localization and Documentation sections.

Add an Agent Guardrails section to .github/copilot-instructions.md that
lists the generated files agents must not hand-edit (.xlf, generated
manpages, and workflow lock files) as a single source of truth, and
remove the duplicated restrictions from the Localization and
Documentation sections.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 9, 2026 17:15
@mthalman mthalman requested a review from lbussell as a code owner July 9, 2026 17:15
@mthalman mthalman mentioned this pull request Jul 9, 2026
42 tasks

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 consolidates “do not hand-edit generated files” guidance in .github/copilot-instructions.md by introducing a single Guardrails section and removing duplicated generated-file restrictions from other sections, making the agent instructions easier to keep consistent over time.

Changes:

  • Added a Guardrails section that centrally lists generated file types agents must not edit by hand (.xlf, documentation/manpages/sdk, workflow *.lock.yml, and linguist-generated=true files).
  • Removed the duplicated .xlf restriction from Localization and removed the now-redundant Documentation guidance about generated man pages.

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.

3 participants