Back to observatory
Application10 min read

AI Agent Guardrails: beyond prompt engineering

There's a widespread belief in the AI agent world: if the prompt is detailed enough, the agent will behave safely. It's a dangerous belief because it contains a grain of truth — a good prompt does improve behavior — but it ignores a fundamental architectural problem.

The prompt tells the agent *what* to do. It doesn't teach it *how to evaluate* whether what it's about to do is safe.

The architectural limits of prompts

A prompt is a set of static instructions. No matter how sophisticated: it can't cover every possible combination of context, state, and consequences. The real world is combinatorial; the prompt is linear.

Consider an agent managing human resources. The prompt says: "Don't make disciplinary decisions without manager approval." Seems safe. But what happens when: - The agent receives a harassment report requiring immediate action? - The manager is on vacation and not responding? - The report is about the manager themselves?

The prompt didn't anticipate any of these combinations. The agent has to improvise — and when an AI agent improvises on high-impact decisions, the risk is uncontrollable.

Structural guardrails vs. textual guardrails

The difference between a textual guardrail (prompt) and a structural guardrail (DAMM) is the same difference between telling someone "be careful" and installing a railing. Both reduce risk. But only one works even when the person isn't paying attention.

A DAMM structural guardrail works like this:

1. Automatic delimitation: the agent has coded operational boundaries, not suggested ones. It cannot make decisions that exceed its authority, regardless of context. If the boundary says "maximum 5,000 euros of autonomous spending," no prompt injection or edge case can exceed that limit.

2. Asymmetry evaluation: before every action, the agent calculates the gain/loss ratio. If the potential loss is 10x the gain, the action is automatically classified as "high asymmetry" and requires verification.

3. Margin check: the agent verifies whether sufficient room for maneuver exists to correct the action if it goes wrong. No margin = no autonomous action.

4. Minimum Move: if the action passes the first three filters, the agent identifies the smallest, most reversible version of the action that still produces a useful result.

Use case: legal agent

An AI agent analyzing contracts for a law firm must decide whether a clause is acceptable or requires negotiation. With prompt engineering alone, the agent has a list of problematic clauses and general guidelines. It works in 95% of cases.

In the remaining 5% — ambiguous clauses, unusual jurisdictions, interactions between clauses — the agent makes decisions that a junior lawyer would never make, because it lacks the contextual judgment that no prompt can encode.

With DAMM integrated: - Delimitation: the agent can approve standard clauses, but not clauses that limit liability below a certain threshold or involve jurisdictions not previously validated - Asymmetry: if the clause could expose the client to unlimited liability (extreme asymmetry), the agent cannot approve it, regardless of how "standard" it appears - Margin: the agent verifies whether there's sufficient time in the negotiation to correct an erroneous approval - Minimum Move: instead of approving or rejecting, the agent proposes a modified clause that reduces risk without blocking the negotiation

The "layer, not replacement" pattern

The most important aspect of DAMM as a guardrail for AI agents is that it doesn't replace prompt engineering — it complements it. The prompt defines the agent's competence. DAMM defines the limits of its autonomy.

This means implementation doesn't require rewriting the agent or changing the model. DAMM inserts itself as middleware between the agent's intention and execution:

``` Agent → Formulates action → DAMM Layer → [4-pillar evaluation] ↓ Health Score ≥ 60 → Execute with audit trail Health Score < 60 → Escalation + block ```

Every decision generates a structured report documenting: what the agent wanted to do, how DAMM evaluated the action, why it was approved or blocked. This creates a native audit trail that meets EU AI Act requirements for automated decision traceability.

Three sectors where structural guardrails are urgent

Finance: agents executing trades, managing credit, or analyzing risk. Decision speed makes real-time human supervision impossible. DAMM provides the protection layer that operates at the same speed as the agent.

Healthcare: agents triaging patients, suggesting diagnoses, or managing appointments. A wrong decision isn't an inconvenience — it's a life risk. Delimitation prevents the agent from operating outside its validated clinical scope.

HR and compliance: agents managing hiring, evaluations, or reports. Decisions have legal and human implications that no prompt can fully evaluate. Asymmetry identifies decisions where the cost of error is disproportionate.

From prompt engineer to decision architect

The shift from textual to structural guardrails isn't a technical upgrade. It's a paradigm shift in how we design autonomous systems. The prompt engineer defines *what the agent can do*. The decision architect defines *what the agent can decide to do*.

DAMM is the tool that makes this transition possible — without slowing the agent, without rewriting code, without sacrificing autonomy. By adding the structure that was missing.

Want to go deeper? Read the complete book