Prompt injection attempts to control an agent through untrusted content. A retrieved page might demand that an application programming interface (API) key be sent to its author. The page can provide facts for an answer, but cannot authorize changes to application instructions.
| Check | Question answered |
|---|---|
| JSON (JavaScript Object Notation) schema | Are fields and types correct? |
| Object authorization | May this user access this particular object? |
| Operation outcome | Did the required action actually succeed? |
Example: customerId: "B42" is a valid string, but customer B42 belongs to another organization. The schema passes; authorization should reject the call. HTTP (Hypertext Transfer Protocol) 200 with {success:false,error:"quota"} means the business operation failed despite a successful HTTP exchange.
Least privilege grants only necessary permissions. A report-reading assistant does not need deletion access. A narrow read_report(id) tool restricts actions better than a general shell, but still requires authorization checks.
A real link does not automatically support a claim. Check the passage, version and applicable conditions.
| Source | Supported conclusion |
|---|---|
| “Returns within 14 days, excluding custom orders” | The deadline applies to ordinary goods; the exception remains |
| Old policy: 14 days; current version unknown | The current deadline is not yet established |
| A link only to the shop homepage | This link does not establish the return rule |
If a new document is stored but retrieval returns the old one, inspect the index, version metadata and cache. When sources conflict, state uncertainty and establish the relevant version.
| Term | Purpose |
|---|---|
| TREC — Text REtrieval Conference | A NIST (National Institute of Standards and Technology) series of information-retrieval evaluation initiatives with common tasks, collections and result comparisons |
| Eval harness | Runs the same tasks and collects metrics |
| Grader | Checks one outcome against a defined criterion |
| LLM-as-a-judge: evaluation by a Large Language Model (LLM) | A model evaluates answers; compare its judgments with human labels and investigate biases |
Grader example: if an agent must create a three-line file, inspect the file's existence and contents. “File created” does not establish success. TREC supports retrieval research; it does not guarantee the quality of every product.