Suyog Trivedi.
Notes and writing.
Recent
All- Classifying agent actions in microseconds: the 3-tier cascade that lets you check every tool callJun 3, 2026
A 3-tier cascade — keyword/regex, registry lookup, LLM fallback — that classifies agent tool calls as READ / WRITE / SEND / EXECUTE in microseconds for 93% of calls, escalating only the long tail to an LLM. Benchmarked on 10,000 calls with measured Tier 3 latency.
- I leaked customer data through a CSV agent in 3 turns. The fix was a 4-line policy.May 13, 2026
A vanilla LangChain CSV agent will happily leak customer PII over three innocent-looking turns. No jailbreak, no prompt injection. The fix isn't a model fix — it's a 4-condition pre-execution policy that runs in microseconds. Full repro included.