Urgent.News

the world's headlines, one feed

Editions

AI

Building a Production AI Agent in Spring Boot: The Sandbox Rule (Part 11)

Docker shipped a product this week with a feature it calls YOLO mode, and the marketing line is almost a dare: "No manual review, no permission prompts, no supervision required." Docker Sandboxes gives Claude Code, Copilot CLI, Codex, OpenCode, and Kiro each a dedicated microVM with only your project workspace mounted in, plus an outbound firewall and secret injection, so an agent can run…

Docker released a new version of its product with a feature called YOLO mode, which offers zero supervision for agents. Docker Sandboxes provides each agent with a microVM, project workspace, firewall and secret injection for safe operation. One engineer clarified that this is not a container, but a microVM with its own kernel and hypervisor.

The author argues that agents with privileges require different safety measures than coding agents. Their e-commerce assistant, built with Spring Boot and Spring AI, has three attack channels: user message, tool output, and tool side effect. The author built defenses for each channel, starting with a guard on the tool seam. They wrapped each callback with a guard that enforces a policy before executing the real tool.

The policy class contains three rules: checking for the approval token, verifying order ownership, and validating quantity bounds. The policy stops the checkout command without an approval token, ensuring the assistant cannot place orders without proper authorization.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — it may contain errors, so check the original before relying on it.

Read the original at dev.to →

More in AI

The Model Is a Variable: Compiling a Neural Network Into Your C++ Binary

Overview I strongly believe software frameworks cannot be designed in the abstract. UchenML came out of my experiments integrating machine learning into edge applications, and out of what I want to…

  • Neural network integrated directly into C++ binary without inference server.
  • Dots demo places trained model in browser tab to serve as opponent.
  • UchenML creates small, fast models for heterogeneous, distributed intelligence.