Intent-Code Divergence
Medium
- Confidence
- 95% confidence
- Finding
- The code tells the model to use only approved read-only tools, but it programmatically exposes every tool in `approvedTools` without verifying that those tools are actually read-only. An LLM instruction is not a security boundary, so if any state-changing or sensitive tool is present, prompt injection or normal agent behavior could cause unauthorized actions despite the prompt wording.
