Control Packs · AI-002 · v1.0.0
Let the model write.
Check it before it lands.
Give model output a strict shape. Reject what does not fit. Keep where it came from.
Model Output Validation
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 doUnchecked model output
- 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
Validate model output against a strict contract, apply policy checks, preserve provenance, and reject unsafe or ambiguous output.
- Model output crosses a boundary without validationGenerated content is exported, stored, or acted upon before structural, policy, and destination checks are complete.
Matching rule
{
"all": [
{
"characteristic": "AI_CONTROLLED",
"equals": true
},
{
"characteristic": "DATA_EXPORT",
"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.
- Which model outputs require validation or human review before export?The system must not infer that a well-formed output is safe for its destination.AI-002-Q1 · confirmation
Requirements for the coding agent
- AI-002-R1Validate model output against a schema and policy, preserve provenance, reject ambiguity, and require confirmed review before material export.
Tests and evidence to keep
- MODEL_OUTPUT_VALIDATION_TESTVerify valid output, malformed output, policy rejection, prompt injection content, ambiguity, and review escalation.
- 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 addressesSchema and policy validation operationalize a bounded slice of input validation; they do not establish control compliance.
- SA-11 · Developer Testing and EvaluationNIST_SP_800_53_5_2_0 · partially addressesThe required malformed, ambiguous, and injection test cases support focused evaluation; they are not a complete developer testing program.
- AU-10 · Non-repudiationNIST_SP_800_53_5_2_0 · informsProvenance preservation informs attribution and reconstruction needs without asserting non-repudiation coverage.
These references cover related topics. They do not mean this pack satisfies a framework, certifies your project, or has government endorsement.
- OWASP Cheat Sheet Series — LLM Prompt Injection Prevention Cheat SheetGUIDANCE_AI_CONTENT_BOUNDARY
- National Institute of Standards and Technology — Privacy FrameworkGUIDANCE_DATA_MINIMIZATION
- 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.