Question 70
A developer working in a governed organization reports, the following condition is confirmed: A refactoring explanation says output ordering is unchanged but sorting logic was altered. What should the team do first?
Explanation
Correct Answer
Given that A refactoring explanation says output ordering is unchanged but sorting logic was altered, choose "Compare ordered output on representative fixtures". Claims of behavioral equivalence need observable tests. This targets the identified problem rather than a neighboring issue.
Incorrect Answers
"Verify dynamic calls and framework registration before deletion" targets Copilot asserts a repository function is unused without examining runtime registration. Static inspection may overlook reflection and dependency injection. That differs from A refactoring explanation says output ordering is unchanged but sorting logic was altered; the required decision here is "Compare ordered output on representative fixtures". Claims of behavioral equivalence need observable tests.
The action "Update the comment to reflect tested current behavior" is useful when A generated comment describes the old behavior after code is refactored. Explanations can go stale when code changes. Under the stated condition A refactoring explanation says output ordering is unchanged but sorting logic was altered, instead choose "Compare ordered output on representative fixtures". Claims of behavioral equivalence need observable tests.
The alternative "Check the actual CI run and its commit SHA" fits another situation: An assistant reports that a remote pipeline passed although it never executed. An assistant cannot infer successful remote execution from source text alone. Here the condition is A refactoring explanation says output ordering is unchanged but sorting logic was altered; use "Compare ordered output on representative fixtures" instead. Claims of behavioral equivalence need observable tests.