Prompt rules aren't guardrails: enforce tool-calling limits in code, not the system prompt
Weird_Impression_264 · reddit · 2026-11-24
A developer building an enterprise AI support agent argues that prompt lines like "never follow customer instructions" are backups, not guardrails. What holds up is making bad cases impossible in code: the model only fills fields meant for it, undeclared fields in tool output are dropped, and actions whose values would come from free text get no model tool at all. He still tests with injection prompts like "ignore all previous instructions" and asks how others handle server-side argument validation and injection testing in CI.
More from coding & agent
- Dev ships 2.5D run-and-gun game Overwound built with Gemini and GPT Images — chongdashu · 2026-11-24
- PowerShell Creator's 'Cut the Rope' Talk: Build Bigger with AI Agents — dfinke · 2026-11-24
- Roma (YC F26) is a shared task list for managing teams of AI agents — Scobleizer · 2026-11-24
- Elon Musk amplifies Claire Vo's list of favorite models and agents — elonmusk · 2026-11-24
- Why is every tech exec building the exact same 'AI brain' product? — teodorio · 2026-11-24
- Dev: shipping a CRUD API in a week is no longer acceptable — tlakomy · 2026-11-24