Question 120
A developer working in a governed organization reports, the following condition is confirmed: A developer sees a response referencing an unexpected source file. What should the team do first?
Explanation
Correct Answer
Given that A developer sees a response referencing an unexpected source file, choose "Inspect the chat references and correct the provided context". Source visibility helps detect misdirected codebase reasoning. This targets the identified problem rather than a neighboring issue.
Incorrect Answers
The action "Add that module as a file reference and describe the relationship" is useful when A chat response ignores an important interface defined in another module. Critical interfaces may be outside the assistant's automatically selected context. Under the stated condition A developer sees a response referencing an unexpected source file, instead choose "Inspect the chat references and correct the provided context". Source visibility helps detect misdirected codebase reasoning.
The alternative "Explicitly reference the intended file in the chat request" fits another situation: Copilot answers about the wrong class because a similarly named file is active. File-scoped context disambiguates competing symbols. Here the condition is A developer sees a response referencing an unexpected source file; use "Inspect the chat references and correct the provided context" instead. Source visibility helps detect misdirected codebase reasoning.
The alternative "Highlight the relevant range before asking for analysis" addresses A developer needs an explanation limited to five selected lines. A selection narrows the evidence and reduces irrelevant repository context. It does not resolve A developer sees a response referencing an unexpected source file; the correct choice is "Inspect the chat references and correct the provided context". Source visibility helps detect misdirected codebase reasoning.