cd /news/ai-agents/sapien-a-stateful-policy-engine-for-… · home › topics › ai-agents › article
[ARTICLE · art-143711] src=machinebrief.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Sapien: A Stateful Policy Engine for Autonomous AI Agents

Researchers introduced Sapien, a stateful policy engine that enforces contextual security policies on autonomous AI agents' tool calls by specifying permitted tool-call sequences with regular expressions extended with stateful predicates, deferred policy generation, and scoped semantic checks. According to the arXiv paper 2610.00797v1, Sapien stays within a few percent of an unconstrained agent's utility while ruling out 93-95% of attacks on AgentDojo and 62-85% on Toolathlon even when the agent is fully hijacked, roughly twice as many as tool allowlists on long-horizon tasks.

by read1 min views2 publishedOct 2, 2026

arXiv:2610.00797v1 Announce Type: new Abstract: Contextual security defenses prevent AI agents from taking rogue actions by synthesizing a task-specific policy and enforcing it on the agent's tool calls. In multi-step tasks, however, which actions are valid often depends on what the agent has already done and learned. We present Sapien, a policy engine for enforcing stateful contextual policies. A Sapien policy specifies permitted tool-call sequences using a regular expression extended with stateful predicates, deferred policy generation, and scoped semantic checks. We show that Sapien stays within a few percent of an unconstrained agent's utility. Even if the agent is fully hijacked, Sapien's policies rule out 93-95% of attacks on AgentDojo and 62-85% on Toolathlon (twice as many as tool allowlists on long-horizon tasks).

── more in #ai-agents 4 stories · sorted by recency
── more on @sapien 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sapien-a-stateful-po…] indexed:0 read:1min 2026-10-02 · —