Intent-Code Divergence
Medium
- Confidence
- 93% confidence
- Finding
- This script is described and named as a read/query tool, but the --list path can also perform a write via kb.append_query_log(username, args.log_question). That hidden side effect breaks least astonishment and can cause unintended persistence of user-provided data, which is especially risky in agent workflows that may treat read-only tools as safe to call more freely.
