Evaluation results show that the agent now follows current repository conventions, but regressions appear when instruction files are edited without running validation. Review the configuration. Evaluate the following statements. 1. The instruction file can provide repository-wide guidance to Copilot. 2. The workflow runs when only .github/copilot-instructions.md changes. 3. Outdated instructions can reintroduce stale agent behavior.
# .github/copilot-instructions.md
- Use docs/adr/current-storage.md for storage decisions.
- Run npm ci and npm test before proposing readiness.
- Do not use retry helpers listed in docs/archive/deprecated-retry.md.
name: validate-agent-changes
on:
pull_request:
paths:
- "src/**"
permissions:
contents: read
pull-requests: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm testChoose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
Statement 1 is correct. The .github/copilot-instructions.md file is specifically designed to provide repository-wide guidance for Copilot, influencing its behavior and suggestions. Statement 2 is incorrect. The provided workflow configuration for validate-agent-changes is triggered only when files within the src/ directory change, not when .github/copilot-instructions.md itself is modified. Therefore, changes to the instruction file alone will not automatically run this validation. Statement 3 is correct. If the agent's instructions become outdated because the instruction file is edited without corresponding validation or updates to the agent's logic, the agent may revert to or exhibit undesirable, stale behaviors that were previously corrected.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed