Instruct agents not to mention on-disk data sources in responses#499
Merged
Instruct agents not to mention on-disk data sources in responses#499
Conversation
…sk file paths in responses Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix agents to avoid mentioning on-disk data sources
Instruct agents not to mention on-disk data sources in responses
Feb 28, 2026
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA safety note has been added to the PR Context manifest file to instruct against mentioning on-disk or internal file paths in responses. The change updates user-facing guidance without modifying data retrieval or processing logic. This aligns with the objective to prevent agents from referencing internal data sources during interactions. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR stops agents from exposing internal on-disk data source paths in user-facing responses.
What changed
.github/workflows/gh-aw-fragments/pr-context.mdto explicitly instruct agents to never mention file paths or on-disk data sources in responses.pr-review-addresser,pr-review,mention-in-pr,mention-in-pr-no-sandbox, andmention-in-pr-by-id), so the guidance applies consistently across them.Why
Agents were replying with implementation details such as references to
/tmp/pr-context/...files, which should remain internal.