Quiz 7 Question 12 of 20

A software development agent uses Claude to autonomously write, test, and commit code changes. During a session, the agent writes a new authentication module, runs tests (all passing), and commits to the main branch. A security researcher later discovers the module contains a subtle timing attack vulnerability that passed all tests. The agent's action log shows it made 23 tool calls across 45 minutes before committing. What architectural safeguard should have prevented the autonomous commit to main?

Select an answer to reveal the explanation.

Motivation