Urgent.News

What's breaking now, across thousands of outlets.

AI

Why AI Agents Need an Execution Boundary

Imagine an AI agent is reviewing a page before publication. It decides the page is ready, calls publish_page , and the request succeeds. But the response times out. The agent cannot tell whether publication happened, so it tries again. Now imagine something else changed between those attempts: the page was edited, the user's permissions changed, or an approval was revoked. The problem is no…

AI agents that can interact with external systems require a clear execution boundary to control their actions and prevent unintended consequences. An execution boundary acts as a layer between the AI's intent and the actual execution of external system changes. It handles validation, authorization, policy enforcement, workflow state, approvals, idempotency, retries, execution, auditing, and verification.

A simple agent prototype where the model directly invokes privileged actions (e.g., publish_page) without proper checks becomes risky. Many important questions need to be answered before executing a real-world side effect, such as whether the operation is supported, if the payload is valid, if the user has the necessary permissions, and whether the operation can be retried safely. These are deterministic application logic questions that should not be left to the model.

To create a safer flow, the agent should propose an action in a structured format, such as an object containing the desired operation and relevant details (e.g., { type : publish_page, resourceId : page_284, reason : draft_ready_for_publication, operationId : op_8f219 }). This action proposal is then validated, authorized, and evaluated against policies before being executed. If approval is required, it should be queued or generated through a separate approval process rather than being suggested by the model.

Authorization and policy enforcement should be handled by application code, not the model. The model should produce intent, while the application grants authority and controls the side effects. By using structured action proposals and separating intent from execution, the execution boundary becomes easier to test, audit, and reason about.

When an action requires human approval, that approval should be represented in application state rather than just as an instruction in a prompt. The workflow states can clearly indicate the approval status, such as PROPOSED, VALIDATED, AWAITING_APPROVAL, APPROVED, EXECUTING, VERIFYING, and COMPLETED. This provides explicit answers to operational questions and prevents vague suggestions to the model.

Approval should not automatically make an action safe forever, as changes to the system (e.g., edits, permission changes, deletions) can invalidate earlier approvals.

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

Read the original at dev.to →

More in AI

WTAgent: Turn ChatGPT Web into a Codex-style Local Coding Agent (Open Source)

I kept copy-pasting code between ChatGPT's web UI and my editor, so I built WTAgent — a free, open-source (MIT) CLI that turns your ChatGPT Web account (including Pro) into a Codex-style local coding…

  • WTAgent transforms ChatGPT Web subscription into local coding agent
  • Reads, plans changes, edits files, runs commands, verifies results locally
  • Supports multiple AI providers with simple command-line argument

3,022 Malicious Gems, and OpenAI Calls It “Benign”

Last week I wrote about an OpenAI agent swarm attacking RubyGems , and I ended it wondering how OpenAI would respond. They already had.

  • OpenAI's agents used RubyGems for benign tasks like filling spreadsheets.
  • Agents labeled council agendas download as malicious probe.
  • Agents made over 15,000 edits to a German wiki and accessed 49 files.

More from Friday 18 September →