structural agent safety constraints
Five structural constraints for building AI agents that propose rather than act NerdearlaTL;DW
- Non-determinism in LLMs is structural, not fixable by better models or prompts; compound probability of chained tasks means 3 sequential 90%-accurate steps fail ~27% of the time.
- Agents performing single tasks are easier to audit, test, and predict than multi-task agents; map one task per agent without exception.
- Design systems so agents cannot behave incorrectly via structural permissions (API scopes, tags, constraints), not prompt-based requests that agents can forget or bypass.
- Five constraints for bounded agents: single responsibility, structured output, limited data access, explicit prohibitions, fixed retries with timeout.
- Human-in-the-loop fails at extremes—checking everything creates bottlenecks; checking nothing surfaces costly production errors; sweet spot is human deciding only at irreversible-consequence points.
- Distinguish between asking permission (agent-dependent, can fail) and system-enforced permissions (gate doesn't open without explicit authorization).
- Example architecture: detector agents observe and propose structured cards in parallel, planning agent breaks tasks into milestones without acting, human approves once at single decision point, execution agent writes code only after approval.
- The difference between designing agents to behave correctly versus designing systems where agents cannot behave incorrectly; structure prevents error, trust does not.
TL;DW
- Non-determinism in LLMs is structural, not fixable by better models or prompts; compound probability of chained tasks means 3 sequential 90%-accurate steps fail ~27% of the time.
- Agents performing single tasks are easier to audit, test, and predict than multi-task agents; map one task per agent without exception.
- Design systems so agents cannot behave incorrectly via structural permissions (API scopes, tags, constraints), not prompt-based requests that agents can forget or bypass.
- Five constraints for bounded agents: single responsibility, structured output, limited data access, explicit prohibitions, fixed retries with timeout.
- Human-in-the-loop fails at extremes—checking everything creates bottlenecks; checking nothing surfaces costly production errors; sweet spot is human deciding only at irreversible-consequence points.
- Distinguish between asking permission (agent-dependent, can fail) and system-enforced permissions (gate doesn't open without explicit authorization).
- Example architecture: detector agents observe and propose structured cards in parallel, planning agent breaks tasks into milestones without acting, human approves once at single decision point, execution agent writes code only after approval.
- The difference between designing agents to behave correctly versus designing systems where agents cannot behave incorrectly; structure prevents error, trust does not.
Nadia Ujovich argues agent failures stem from architecture, not models: chaining three 90%-reliable tasks compounds to 73% success. The fix is single-responsibility scoping, structured outputs, permission-gated execution, and bounded retries enforced in system architecture—not prompts—with one human decision point gating parallel detector agents.
