Production checklist for guardrails on agents that take real actions
Harshit_Ahluwalia · reddit · 2026-11-23
A hands-on production checklist for agents that can take real actions (restart services, roll back deploys, change records), where prompt instructions alone stop being enough. Using an incident-response agent as the example:
Before a tool runs
- Validate tool arguments against a schema; reject malformed calls, don't "fix" them
- Allowlist which tools and targets each agent may touch
- Require explicit human approval before consequential actions, shown as a concrete summary
While it runs
- Timeouts on every step, not just the whole run
- Real cancellation that reaches the running agent, not just the UI
- Pre-decided partial-failure policy: continue with partial data or stop, and show which agent failed
What the agent shows users
- Agent-generated UI must come from a constrained component set rendered by the client, never arbitrary markup
- Embedded tool UIs must be sandboxed
Core principle: approval and cancellation are states in the run, not lines in a prompt — if the model can talk its way past a guardrail, it isn't one. From a workshop by CopilotKit Angular maintainers Rainer Hahnekamp and Murat Sari.
More from coding & agent
- Building Linear inside Linear: a team of agents clones your own daily software — hargup13 · 2026-11-23
- Dev builds a Unix-like OS from scratch using Claude as orchestrator — brada · 2026-11-23
- T3 Code accused of calling quota API directly, possibly on the wrong side of Google's ban — PawelHuryn · 2026-11-23
- Hangar: open-source Mac app runs Claude Code in sandboxed VMs with key isolation — ozgursoy · 2026-11-23
- 5 open-source tools to build an automated QA pipeline for AI-generated code — sven_ai · 2026-11-23
- Jiayuan launches Multica, a free open-source agent platform billed as '2027's agent platform' — jiayuan_jy · 2026-11-23