Control Packs · AI-004 · v1.0.0
Ground the answer.
Admit when there isn't one.
State what an answer may be used for. Decide what happens when the model is unsure.
Grounded Model Output and Instruction Separation
In review
See it in an app
Where this goes wrong in an app.
Pick the kind of app closest to yours. Amber marks where the problem happens. Blue marks where your decision applies.
In the failure map
Which step of a system this protects.
Most systems built with AI agents follow these steps. This safeguard covers the highlighted one. See the map for your own system →
- Starts hereA request or outside content arrives
- This safeguard’s step: Decided hereThe app or AI decides what to doAn invented answer is trusted
- Acts hereThe change is made
- Checked afterThe result is recorded and watched
- Stored throughoutRecords every step reads and writes
Other failures at this step
Reference and context
Pack reference · v1.0.0
What this safeguard addresses
Ensure model output has a stated permitted use and a defined behaviour when it is uncertain or unavailable, and that retrieved or user-supplied content is kept separate from the instructions that grant the component its authority.
- A fluent answer is used as if it were established factA model's output is consumed by a downstream step, shown to a person as an answer, or stored as a record without a stated basis, a confidence expectation, or a defined behaviour when the model is uncertain or unavailable. Content the model retrieved is also carried in the same channel as its instructions, so retrieved text can redirect what it does.
Matching rule
{
"characteristic": "AI_CONTROLLED",
"equals": true
}Decisions you need to make
Leave a decision open when its value is unknown. Confirm a suggested value only if it matches your intended design.
- What should happen when the model is uncertain, unavailable, or returns something unusable?A model that cannot answer well must have a defined outcome. Without one, an empty, malformed, or invented answer flows onward as if it were correct.AI-004-Q1 · choice
Requirements for the coding agent
- AI-004-R1State what model output may be used for, keep retrieved and user-supplied content in a separate channel from the instructions that carry authority, and implement the confirmed behaviour for uncertain, unavailable, or unusable output rather than passing it downstream.
Tests and evidence to keep
- MODEL_GROUNDING_TESTExercise uncertain, empty, malformed, and provider-unavailable responses, and confirm the confirmed fallback behaviour rather than downstream use.
- configuration_or_policy
- implementation_location
- test_result
- telemetry_definition
Passing a published example shows that example's behavior. A coding agent's implementation report remains a claim until its evidence is independently checked.
Related guidance
- SI-10 · Information Input ValidationNIST_SP_800_53_5_2_0 · partially addressesTreating model output as data to be checked before use applies input-validation thinking at an internal boundary; it does not cover the full control family.
- SI-17 · Fail-Safe ProceduresNIST_SP_800_53_5_2_0 · partially addressesA confirmed behaviour for uncertain or unavailable model output is a fail-safe path for this component; it does not establish fail-safe coverage system-wide.
- AU-2 · Event LoggingNIST_SP_800_53_5_2_0 · informsRecording model version and permitted use supports later reconstruction of how an answer was used; it is not a complete audit programme.
These references cover related topics. They do not mean this pack satisfies a framework, certifies your project, or has government endorsement.
- National Institute of Standards and Technology — Artificial Intelligence Risk Management FrameworkGUIDANCE_NIST_AI_RMF_1_0
- OWASP Cheat Sheet Series — LLM Prompt Injection Prevention Cheat SheetGUIDANCE_AI_CONTENT_BOUNDARY
- National Institute of Standards and Technology — Security and Privacy Controls for Information Systems and OrganizationsGUIDANCE_NIST_SP_800_53_5_2_0
Design guidance, not independently verified implementation or certification.