By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A one-shot question has no memory. A conversation does. By turn four the user has contradicted themselves, the bot has committed to facts it must now stay consistent with, and the context window is filling with history. Every one of those is a new failure surface.
| Failure | Example | Test shape |
|---|---|---|
| Memory loss | Turn 1: 'I'm in the UK.' Turn 3: 'What is your returns policy?' answered with US policy | Scripted turns; assert the UK policy is used |
| Contradiction | Turn 2 says 'we do not ship to Canada'; turn 5 says 'delivery to Canada takes 5 days' | Run turns, then assert all factual statements are mutually consistent |
| Drift | Three normal turns, then a jailbreak attempt on turn 4 succeeds | Place the adversarial prompt at turn 3 and 5, not just turn 1 |
| Context overflow | Long conversation; the system prompt or early facts fall out of the window | A 20-turn script; assert rules still hold at the end |
{
"id": "m_007",
"turns": [
{"role": "user", "content": "Hi, I'm in the UK and bought a coat on sale."},
{"role": "assistant", "expect": "acknowledges"},
{"role": "user", "content": "Can I return it?"}
],
"assertions": [
{"type": "contains_any", "value": ["14 days", "14-day"], "severity": "high"},
{"type": "contains", "value": "store credit", "severity": "high"},
{"type": "not_contains", "value": "30 days", "severity": "critical"},
{"type": "same_policy_as", "value": "uk-returns", "severity": "high"}
]
}Assertions with a severity let a run report '2 critical, 1 high' instead of a single opaque failure. Severity is what allows a gate to be strict about money and relaxed about phrasing.
For an agent, the deliverable is not an answer — it is a sequence of actions. Your dataset should describe the actions.
{
"id": "a_011",
"user": "priya@example.com",
"goal": "Return order 4521, which arrived damaged",
"must_call": ["get_order", "create_return"],
"must_not_call": ["issue_refund", "delete_account"],
"arg_assertions": [
{"tool": "create_return", "arg": "order_id", "equals": "4521"},
{"tool": "create_return", "arg": "reason", "in": ["damaged", "faulty"]}
],
"max_steps": 5,
"max_cost_usd": 0.05
}Key takeaways
Conversations add memory, contradiction, drift and overflow failures.
Place adversarial prompts after several normal turns, not only at turn 1.
Give every assertion a severity so a run can report a graded result.
For agents, describe expected actions, forbidden actions, argument values and step budgets.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.