Start here. This is the direct spoken answer to practice first.
Overview
A constrained decoder can ensure that a category field is present and allowed; it cannot prove that the chosen category is supported by the input.
A schema validates structure: required fields, types, and allowed shapes. It does not prove that extracted values are factual, that a classification is justified, or that an identifier exists and belongs to the user. The application still validates domain rules and uses evaluation or human review where model judgment matters.