JustujuAI, layer by layer.Open in the interactive map

Guardrails & evals

Checks around model calls (input and output filters, permission gates, prompt-injection defences) plus automated tests that measure whether the system still behaves.

Layer 7 · Orchestration & Tooling · Run time · Draft, awaiting expert review, reviewed 2026-10-02

Read first: Tool use & protocols (MCP).

D1 · StoryFor young children and total beginners

Spot where a hidden instruction could sneak past the checks.

Guardrails are checks before and after the AI speaks, like a teacher reading a note before it goes home.

Evals are practice tests the builders run again and again, so they notice when a change makes the AI worse.

Like: A teacher checking notes, plus regular practice tests.

D2 · PictureFor curious beginners

Input checks screen what goes in: user messages and, just as important, text from documents, web pages and tool results. Output checks screen what comes out: format, leaked secrets, unsafe content.

Prompt injection is text that tries to give the model new orders. Defences are layered: keep untrusted text separate and labelled, give tools the least privilege, and ask a human before risky actions.

Evals are test sets run automatically on every change to prompts, models or tools, scored by code, by people, or by another model acting as judge.

Checks around one call, with evals in the loop

  1. Input check: user and tool text
  2. Model call: with context
  3. Output check: format, secrets, safety
  4. Action gate: permissions, human OK
  5. Evals: score, compare, fix

Like: A teacher checking notes, plus regular practice tests.
Where it breaks: A teacher understands what a note means. Filters are themselves pattern matchers or models, so cleverly worded attacks can slip past them; no single check stops prompt injection.

D5 · FrontierFor experts

Prompt injection has no complete fix yet, because models read instructions and data in the same stream of tokens. Defences reduce risk rather than remove it.

Evals are hard too: model judges have their own biases, test sets leak into training data, and a passing score on a benchmark may not match real use.

Sources

  1. Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (2023)
  2. OWASP Top 10 for LLM Applications: LLM01:2025 Prompt Injection (2025)
  3. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (2023)