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

Agent_acid: ACID rollbacks, stateful guardrails for AI agents

Agent_acid: ACID rollbacks, stateful guardrails for AI agents

Key takeaway

  • Agent_acid is an open-source framework that adds transaction-level safety to AI agents by automatically rolling back all steps in a failed multi-step plan and enforcing hard guardrails that track forbidden actions across an entire session.

  • In a test of a salami-slicing attack, a naive agent with only per-step guardrails allowed $1,200 in charges despite a $500 limit, while agent_acid blocked the third charge and fully refunded all three—closing a known gap in how most AI agent guardrail systems work.

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.

Ask the AI about this article →

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.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • DataAgent launches with $10M to auto-fix Kubernetes faultsSiliconANGLE AI · 44m ago
  • SK Hynix custom HBM boosts inference up to 5.15xDIGITIMES Asia · 44m ago
  • Nvidia Earnings: Boring by Design, Avoiding a Consolidated WorldStratechery (Ben Thompson) · 44m ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

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