AIToday
Large Language ModelsAI Safety & AlignmentOpen-Source AIHacker NewsPublished: Aug 8, 2026, 16:00 JST

Agent_acid: ACID rollbacks, stateful guardrails for AI agents

Agent_acid: ACID rollbacks, stateful guardrails for AI agents

3 Key Points

  1. What happened

    Agent_acid, an open-source project, adds ACID-style transaction guarantees to autonomous AI agents—automatic rollback of multi-step plans if any step fails, hard code-level guardrails that block bad outputs, and stateful guardrails that track forbidden actions across an entire session to catch "salami slicing" attacks (splitting one large forbidden action into multiple small, individually-legal ones).

  2. Why it matters

    Most guardrail systems validate only one action at a time with no session memory, leaving AI agents vulnerable to salami-slicing attacks where an attacker or manipulated AI spreads a forbidden action across many small steps that each pass individual checks. Agent_acid's session-wide guardrails close this gap—in a head-to-head test, a naive agent allowed three $400 charges totaling $1,200 despite a $500 per-step limit, while agent_acid blocked the third charge and fully refunded all three.

  3. What to watch

    The project is early-stage and actively developed; core engine and guardrail layer are tested, with automated test suites and live demos available (some require an OpenAI API key). The repository includes runnable examples of two real attack scenarios—prompt injection and salami slicing—that users can reproduce and test themselves.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Agent_acid addresses a real vulnerability in how autonomous AI agents are currently safeguarded. The article frames the problem clearly: guardrails that only inspect individual tool calls have no session-level awareness, making them vulnerable to attackers or manipulated AI systems that distribute a forbidden action across multiple small steps. The salami-slicing attack is not hypothetical—it is documented as an actively studied problem in AI safety research.

The project's design separates concerns logically: reversible tools handle the undo mechanism (every action has a compensating action), the transaction context tracks multi-step plans, and the guardrail layer enforces rules at two levels—per-action (hard blocks) and session-wide (cumulative tracking). The head-to-head comparison with a naive agent is concrete and reproducible: under identical conditions, the naive agent allowed $1,200 in charges while agent_acid blocked the excess and refunded all three charges, then deleted the leftover account created during the failed plan.

FAQ
What is salami slicing in the context of AI agents?
Salami slicing is an attack where a forbidden action is split across many small steps—for example, attempting to charge $1,200 as three separate $400 charges to stay under a $500 per-step limit. Each individual step passes guardrail checks, but the total violates the intended rule.
How does agent_acid differ from typical guardrail systems?
Most guardrail systems validate one tool call at a time with no memory of the session; agent_acid adds stateful guardrails that track forbidden actions across the whole session and automatic rollback of all completed steps if any step in a multi-step plan fails.
Can I test agent_acid without an OpenAI API key?
Yes. The automated test suite, basic rollback demo, and guardrail demo all run without an API key and prove the core engine works. The AI agent demos (which test real attack scenarios) require an OpenAI API key.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI models alter responses based on user identity, study finds