# Language-Based Agent Control

*Timothy Zhou, Loris D&#x27;Antoni, Nadia Polikarpova*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/156018) · [OpenReview](https://openreview.net/forum?id=16tteJWMPL) · [alphaXiv](https://www.alphaxiv.org/abs/2605.12863) · [Open on the map](../papers.html#p156018)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Agent Security](../pgroup/484.md) · Type: new method · Keywords: language-based security, AI agent control, typed APIs, policy enforcement, recursive subagents, type checking

Areas: [AI Agents](../areas/agents.md) › Agent Robustness › Agent Security Vulnerabilities; [Safety & Security](../areas/safety.md) › Language Model Security › LLM Agent Security

## Summary
Language-Based Agent Control (LBAC) introduces a type-checked API-based approach for enforcing application-level security policies in AI agents, enabling recursive subagent execution while ensuring policy compliance.

## Explained to a 5-year-old
We want robots or computer helpers to follow rules that keep us safe. Instead of just giving them simple commands, we let them write small programs that follow special rules. These programs can call other helpers, and the rules apply to all of them. A special checker looks at the programs and makes sure they are safe before they run. If the plan breaks a rule, the checker stops it from running. This way, the helpers can do many things while staying safe.

## Explained to a 5-year-old, longer
Imagine you have a friendly robot that can help you with chores. Sometimes it needs to ask other robots for help, like a team. To make sure everyone does the right thing, we write down clear rules in a language that both robots can understand. These rules are like a recipe that tells the robots exactly what they are allowed to do. The robots don't just get simple commands; they write down their own plans as programs. Those programs can even ask other robots to do parts of the plan. Before any robot runs its plan, a special checker reads it and makes sure it follows all the rules. If the plan breaks a rule, the checker stops it from running. This way, even if the robots work together, they all stay safe and follow the same rules. The rules cover everything the robots do, including how they call each other. So we get the power of teamwork without worrying about breaking the rules. This makes it possible to use robots in important places like homes, hospitals, or factories safely.

## For a technical reader
The paper proposes using language-based security concepts to enforce fine-grained policies on AI agents. Instead of issuing direct tool calls, agents generate programs that are checked against typed APIs, ensuring they obey the desired security properties. Recursive subagents can be invoked within these programs, and the type checker validates each level before execution. This approach provides uniform policy enforcement across the entire agentic system, including its control flow and scaffolding. The authors illustrate the technique with three practical case studies: filesystem capability sandboxing, data provenance tracking, and information-flow control.

## Problem
AI agents currently rely on systems-level defenses like sandboxing, which cannot express fine-grained application policies and struggle to enforce security across recursive agent interactions. There is a need for a method that can uniformly apply security policies throughout an agentic system, including its control flow and subagent invocations.

## Method
The approach uses language-based security techniques to design typed APIs that agents must generate programs against. Agents produce programs that may recursively call subagents with tool access, and a type checker validates these programs before execution, ensuring that all well-typed programs satisfy the desired security policies.

## Contributions
The paper presents a unified framework for applying language-based security to AI agents, enabling expressive application-level policies that propagate through recursive subagent calls, and validates the approach with three practical case studies.

## Research questions this paper is counted under

- [How can we enforce safety and security guarantees for autonomous agents beyond model robustness?](../q/764.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/156018)
