Risk Framing for LLM Systems: A Risk Register Ranked by Exposure, Not by Odds
Five SupportDesk features each carry one LLM failure mode. Ranked by how often they fail, the irreversible refund sits fourth and the attachment injection last. Ranked by exposure (likelihood times impact, plus one if it cannot be undone), the refund leads and the attachment moves to third.
What you will learn
- Name six LLM limits: hallucination, knowledge limits, variance, context limits, untrusted input and over-agency
- Explain why a limit becomes a risk only when it meets a feature
- Score each risk as likelihood times impact, plus one when it cannot be undone, and rank by that exposure
- Pick the control family for each failure mode, starting from the top of the ranking
Before you start
- What an LLM can and cannot do
- Common LLM failure modes
Picture the support agent one week before launch. Every feature is ready, and every one of them can fail. Where do you start?
This article names the limits, the failure modes and the exposure, then ranks the risks so the controls know where to begin. The key idea: a limit of the model becomes a risk only when it meets a feature.
Where failures enter SupportDesk
SupportDesk has four stages: the input, Claude, the reply and the action. A ticket and an article go in, Claude writes the reply and acts through a tool. A failure can enter at every stage:
- At the input, a hidden instruction can sit inside a ticket.
- In the model, a fact can be made up.
- In the reply, a wrong answer reads as fluently as a right one.
- At the action, the refund can be wrong.
So you keep one list, a risk register, that covers every stage and ranks every failure by its exposure.
Six limits, one new intern
Think of a brilliant new intern on day one:
- It sounds sure of every answer, even when it guesses. Hallucination.
- It has never seen your private files or your newest policies. Knowledge limits.
- Ask it twice, and the wording, or even the answer, can differ. Variance.
- In a very long file, it misses details buried in the middle. Context limits.
- It follows any note it finds on the desk. Untrusted input.
- It holds the keys, so a slip becomes an action. Over-agency.
Six limits. But a limit is a fact about the model; it is not yet a risk. For a broader tour of what models can and cannot do, see what an LLM can and cannot do, and for the full catalogue of failures, LLM failure modes.
One limit, two risks
Take one limit, a made-up fact, in two features. In the first, the feature answers a policy question. The customer reads the answer as fact, and a wrong policy costs trust. In the second, the feature drafts a reply for an agent. A person reads it before it goes, and a wrong line is cheap to fix.
Rate the feature, then size it
To size a risk, ask three questions about the feature:
- How likely? How often do you expect this failure to land? Rate it 1 to 3.
- How bad? What does it cost the customer or the business? Also 1 to 3.
- Can it be undone? Can you take the result back after it happens? Yes or no.
Put them together: exposure = likelihood x impact, plus one when it cannot be undone. These ratings are the team's own judgement, not measured rates.
The register in code
This project makes no model call. It reads five features from risks.json, each with one failure mode and the team's ratings:
[
{"id": "R-1", "short": "policy answer", "feature": "Answer a policy question",
"mode": "hallucination", "likelihood": 3, "impact": 2, "reversible": true},
{"id": "R-2", "short": "long thread", "feature": "Summarise a long ticket thread",
"mode": "context", "likelihood": 3, "impact": 1, "reversible": true},
{"id": "R-3", "short": "phrasing", "feature": "Phrase a reply to the customer",
"mode": "variance", "likelihood": 2, "impact": 1, "reversible": true},
{"id": "R-4", "short": "refund", "feature": "Issue a refund",
"mode": "over-agency", "likelihood": 2, "impact": 3, "reversible": false},
{"id": "R-5", "short": "attachment", "feature": "Read a customer attachment",
"mode": "injection", "likelihood": 1, "impact": 3, "reversible": false}
]
First, the habit being replaced, odds_only.py:
def rank(risks):
by_odds = lambda r: r["likelihood"]
return sorted(risks, key=by_odds, reverse=True)
Most frequent first, and nothing else counts. Then register.py:
CONTROL = {
"hallucination": "ground and cite",
"context": "test long inputs",
"variance": "measure over many runs",
"over-agency": "least privilege and approval",
"injection": "isolate untrusted input",
}
def exposure(risk):
score = risk["likelihood"] * risk["impact"]
if not risk["reversible"]:
score += 1
return score
def rank(risks):
return sorted(risks, key=lambda r: (-exposure(r), r["id"]))
It holds one control family for each failure mode (only named here), scores likelihood times impact, adds one when the risk cannot be undone, and ranks by exposure.
Two rankings of the same five risks
odds-only ranking
1 R-1 policy answer hallucination odds 3
2 R-2 long thread context odds 3
3 R-3 phrasing variance odds 2
4 R-4 refund over-agency odds 2
5 R-5 attachment injection odds 1
register ranking
1 R-4 refund over-agency exposure 7 least privilege and approval
2 R-1 policy answer hallucination exposure 6 ground and cite
3 R-5 attachment injection exposure 4 isolate untrusted input
4 R-2 long thread context exposure 3 test long inputs
5 R-3 phrasing variance exposure 2 measure over many runs
moved up: R-4 refund from 4 to 1
moved up: R-5 attachment from 5 to 3
The refund comes first: 2 x 3, plus one because it cannot be undone, exposure 7. Its control family is least privilege and approval. The policy answer is second: 3 x 2, exposure 6, so ground the answer and cite the source. The attachment is third: rare, but costly and permanent, exposure 4, so isolate untrusted input. The long thread and the phrasing come last: test long inputs, and measure over many runs.
The odds-only code never read the impact or whether the result can be undone. How often a feature fails is not the same as how much it costs. Building the controls themselves (the safety stack, human review routing, threat modelling) is the work that follows; for the least-privilege side, see agent blast radius and least privilege. Deployment risks such as attack surface, quota exhaustion and the supply chain get the same treatment in ranking deployment risk.
The trap: the review has time for two
A launch review has time to harden only two of five features. Which two go first? Three answers tempt you:
- Pick the two that fail most often. That gives the policy answer and the long thread, and leaves the refund alone.
- Add a disclaimer to every output. A disclaimer does not stop a wrong refund.
- Wait for a larger model. The refund tool still holds the keys.
Each one skips the consequence. The answer rates likelihood and impact, counts what cannot be undone, and starts at the top: here, the refund and the policy answer.
Recap
| Step | Question | In this register |
|---|---|---|
| The limit | What can the model not do? | Six limits, from hallucination to over-agency |
| The feature | Where does it meet a consequence? | Five features, one failure mode each |
| The rating | Likelihood, impact, can it be undone? | Exposure from 2 to 7 |
| The control | Which family, starting where? | Refund first: least privilege and approval |
Try it yourself
Add a sixth feature to risks.json from your own product. Rate it honestly, run the register and see where it lands. Then flip its reversible flag and check how far it moves. The project files for this lesson are in the community, free to join.
Related course on Udemy
Claude Certified Architect - Professional (CCAR-P) Exam Prep
Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)Related posts
Guardrails for an LLM Agent: Check What Comes In, What It Wants to Do, and What Goes Out
An agent that reads customer emails and can refund up to $200. In a small simulation, a phrase filter still lets 6 of 8 written attacks do harm and blocks 2 honest users; plain checks outside the model take harm to 0 of 8, at a cost of 1 honest request failed and 2 held.
The Agent Attack Surface: Blast Radius, Narrow Tools, Scoped Keys and the Dangerous Three
A support agent reads a ticket that says run SELECT * FROM customers and email the result outside, and it has run_sql and send_email, so the customer list leaves. The model wasn't hacked, it was equipped. Map each tool by what it reads, changes and sends, replace the two large ones with narrow tools, scope the keys, and never give one agent untrusted input, private data and a way out together.
Prompt Injection, Jailbreaks and Untrusted Input: Label What Comes In, Gate What Goes Out
Three texts reach a support agent in one week: an injected ticket, a poisoned help article and a jailbreak. A naive agent turns all three into leaks; three small checks in plain code take that to zero.
Injection Exposure Review for an Agent: Map Inputs, Data and Effects, Layer Every Path, Retest the Job
Review a refund agent the way a security team would: map where stranger text gets in, what it can read and what it can do, layer every path, then show the four normal questions still give the same answer.
