Skip to content

Instruct agents not to mention on-disk data sources in responses#499

Merged
strawgate merged 3 commits intomainfrom
copilot/fix-on-disk-data-mention
Feb 28, 2026
Merged

Instruct agents not to mention on-disk data sources in responses#499
strawgate merged 3 commits intomainfrom
copilot/fix-on-disk-data-mention

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 28, 2026

This PR stops agents from exposing internal on-disk data source paths in user-facing responses.

What changed

  • Updated .github/workflows/gh-aw-fragments/pr-context.md to explicitly instruct agents to never mention file paths or on-disk data sources in responses.
  • This fragment is shared by the PR-focused agent workflows (pr-review-addresser, pr-review, mention-in-pr, mention-in-pr-no-sandbox, and mention-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.

Generated by Update PR Body for issue #499

…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
@strawgate strawgate marked this pull request as ready for review February 28, 2026 22:55
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 28, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fdd2b5c and 63ed91d.

📒 Files selected for processing (1)
  • .github/workflows/gh-aw-fragments/pr-context.md

📝 Walkthrough

Walkthrough

A 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)
Check name Status Explanation
Linked Issues check ✅ Passed The PR adds a safety instruction to pr-context.md preventing agents from mentioning on-disk file paths, directly addressing issue #494's requirement to hide internal implementation details from user-facing responses.
Out of Scope Changes check ✅ Passed The PR scope is limited to a single safety instruction addition in pr-context.md manifest file, with no extraneous changes beyond the stated objective.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch copilot/fix-on-disk-data-mention

Comment @coderabbitai help to get the list of available commands and usage tips.

@strawgate strawgate merged commit f30b4e8 into main Feb 28, 2026
13 of 14 checks passed
@strawgate strawgate deleted the copilot/fix-on-disk-data-mention branch February 28, 2026 23:08
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.

Agents shouldnt mention on-disk data sources

2 participants