Question 140
A code-search subagent can delete repository branches although it is only asked to inspect call sites. What should the architect do?
Explanation
Correct Answer
A read task should not be able to mutate repository state.
Incorrect Answers
Prompt warnings cannot enforce permission boundaries.
Broad credentials expand the damage from a single mistaken call.
Restoration is not a replacement for least privilege. A search-only role should not have the ability to delete branches at all.