Enforcing an output schema inside the generation machinery: the schema becomes a filter that strikes invalid tokens from the ranked list before each draw, so the model chooses freely among valid continuations and cannot emit an invalid one. The strong grade of structured output; asking nicely in the prompt is the weak one (Chapter 2).