Grammar-constrained decoding and domain validation
medium 6 minA parser can restrict the next tokens to those that keep a partial output compatible with a grammar.
Trace the example
Follow the evidence through each stage, then test a change in the case.
Generate a valid status that can still be wrong
Serving engine
Track expected status value
The output has reached the enum field. The engine knows which continuations the supported grammar accepts.