A Copilot coding agent was assigned an issue to fix timeout handling in src/auth/oauth.ts. After several autonomous iterations, the maintainer reviews the session log before allowing the draft pull request to move forward. Which option best identifies and corrects the drift? Select one answer.
Session: copilot-agent-4821
Repository: octo-org/identity-service
Issue: #1842 Fix OAuth timeout handling
Initial plan:
- inspect src/auth/oauth.ts
- add timeout-specific retry handling
- update auth timeout tests
Later session activity:
- edited src/ui/LoginBanner.tsx
- changed welcome text copy
- added snapshot updates for login banner
- no changes detected in src/auth/oauth.ts
Validation:
npm test -- --runInBand
Result: passedChoose an answer
Tap an option to check your answer.
Correct answer: Re-anchor the task to issue #1842.
Why this is the answer
The correct option is to re-anchor the task to issue 1842 because the agent has drifted from its original objective. The initial plan focused on src/auth/oauth.ts and timeout handling, but the later session activity shows edits to src/ui/LoginBanner.tsx and changes to welcome text, with no detected changes in the originally targeted file. This indicates the agent started working on an unrelated task. Merging because tests passed is incorrect; passing tests do not validate that the correct problem was solved. Converting the draft PR to ready is premature and incorrect given the drift. Adding UI snapshots as accepted scope is also incorrect, as the agent's task was specifically about OAuth timeout handling, not UI changes.
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