ai newsDi., 1. Dez.

What Happens Between an AI Agent's Decision and the Command That Runs

Most agent demos stop at five tool calls. Ask for a 100-step server upgrade and the same framework starts repeating commands, forgetting what it did ten steps ago, or claiming a step finished when it did not. The model is not the problem there. The model generates a response and proposes an action.

dev.toMontag 18:50 · 30.11.2 Min. Lesezeit
Bild: dev.to

Most agent demos stop at five tool calls. Ask for a 100-step server upgrade and the same framework starts repeating commands, forgetting what it did ten steps ago, or claiming a step finished when it did not.

The model is not the problem there. The model generates a response and proposes an action. The gap between "the model said to run this" and "this actually ran on your infrastructure" is where the failures live. Prompt injection, permission sprawl, and the quiet question "what did it actually do?" all sit in that gap.

That gap is a governance problem, not a model problem. Fine-tuning the weights does not fix an untrusted input that changes what the agent does next.

The separation that has worked for us is simple to state and harder to build:

In one line: the model generates, the agent acts, and a separate layer governs.

A hard "no" in the middle of a 100-call sequence is where naive frameworks stall. Try, fail, try, fail, loop.

SAFi's gate returns one of two verdicts: approve, or block with a reason attached. If the agent proposes rm -rf /var/log/* and policy protects that path, the block reason goes back to the model, and its next proposal is the safer command, like rm -f /var/log/*.log. That proposal is audited like any other, and one rewrite-and-re-audit pass is allowed before the system stops rather than ship something unapproved. The agent gets a path forward instead of a dead end, which is what keeps a 150-call scan and patch sequence moving.

Two other decisions matter for long-horizon work:

The agents also run in a workspace-isolated CLI, so file system state stays consistent across calls. If a command fails, the workspace is preserved for inspection. The agent reads the error, adjusts the next command, and continues.

Quelle: dev.to (dev.to). Original öffnen