AMA Answer: How can we practice testability within context engineering?
22 Mar 2026
In this moment:
Rosie Sherry
Rahul Parwal
Question by Rosie Sherry: How can we practice testability within context engineering?
Response:
Fantastic question. Not many people talk about it (unfortunately).
Good news: We at MoT are now starting a discussion on this. It's a big area of work for QEs / test specialists/quality experts.
Most AI systems are hard to test because their context is invisible, uncontrolled, and constantly changing. I know of a few teams that version control/review/monitor their prompts or context, but that's still a minority considering the larger ecosystem.
Agentic AI can only scale if we make it testable enough. This means we have to create systems that can be:
Response:
Fantastic question. Not many people talk about it (unfortunately).
Good news: We at MoT are now starting a discussion on this. It's a big area of work for QEs / test specialists/quality experts.
Most AI systems are hard to test because their context is invisible, uncontrolled, and constantly changing. I know of a few teams that version control/review/monitor their prompts or context, but that's still a minority considering the larger ecosystem.
Agentic AI can only scale if we make it testable enough. This means we have to create systems that can be:
- Examined
- Controlled
- Challenged
- Improved
- Roll-backed (if need be)
AI is all about Context (explicit + implicit).
Most AI systems fail because the implicitly supplied context is scattered in multiple places (memory, tools, history, skills, instructions, etc.). It lacks boundaries as well as ownership.
Here is how I see testability in context engineering (some ways to make it happen):
1. Make context sources known and explicit.
2. Store context in structured / defined formats (eg. markdown, yaml, json, etc.)
3. Version control context sources (wherever applicable). Treat it like code.
4. Break down the context into a hierarchy and see each level as a test dimension:
Instructions
Constraints
Examples
Domain Knowledge
Rules
Logic
5. Define strict rules for what context gets included (Eg, PDFs, JSONs, Text, Image) and what gets excluded.
6. Test the system that feeds AI.
7. Create contextual test cases.
Example:
6. Test the system that feeds AI.
7. Create contextual test cases.
Example:
GIVEN this "context." WHEN the model responds THEN it should: - Follow Constraints - Use "XYZ" Sources - Ignore irrelevant Inputs.
Rahul Parwal
Test Specialist
Rahul Parwal is a Test Specialist with expertise in testing, automation, and AI in testing. He’s an award-winning tester, and international speaker.
Want to know more, Check out testingtitbits.com
Open To
Write
Teach
Speak
Mentor
CV Reviews
Podcasting
Meet at MoTaCon 2026
Review Conference Proposals
Sign in
to comment
How are teams like yours balancing speed, quality, security, and AI in 2026? Download your copy and get real insights.
Explore MoT
What I learned about influence by becoming a stakeholder
Advanced prompting skills to turn AI into your trusted testing companion.
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community