Description-Behavior Mismatch
Medium
- Confidence
- 95% confidence
- Finding
- The code explicitly collects assistant tool calls and tool-result content into persistent context blocks when captureToolCalls is enabled, and that setting defaults to true. Tool arguments and results often contain secrets, file contents, command output, or internal system data, so persisting them materially expands data collection beyond the stated memory purpose and can create a sensitive-data retention channel.
