Question 140
A web-research subagent collecting citations can also invoke a local delete_file tool. A malformed document excerpt once led it to delete a temporary report file. Which role design change most directly prevents recurrence?
Explanation
Correct Answer
A citation specialist should retrieve sources and inspect their content; filesystem deletion is outside that responsibility. Configuring a read-only allowedTools set makes the destructive action unavailable to that subagent rather than depending on the model to ignore a malicious excerpt. Backend filesystem permissions should reinforce this boundary. The coordinator can reserve cleanup work for a separate, explicitly authorized workflow with appropriate approvals and auditability. This maps the capability surface to the task's actual needs.
Incorrect Answers
Additional tool opportunities do not limit the risk of deleting files. The root cause is a mutation capability unrelated to a citation retrieval role. The agent should have an intentionally smaller tool set and follow backend permission checks. More requests could create additional opportunities for misuse.
A final explanation arrives after an unsafe action and cannot restore deleted data. Prose logging may help audit but does not enforce a boundary. Removing unnecessary mutation access is the more direct preventive measure. Side-effecting operations need enforceable permission and approval gates.
Parser speed does not affect whether the subagent can execute an unwanted delete operation. Even correctly parsed data can contain untrusted instructions that attempt to redirect behavior. The tool boundary and authorization policy need to change. Authorization failure is independent of parser performance.