The Gemma 4 REQUIRED root is rewritten to the f072b10371 shape¶
Tests › tests/unit/inference/gemma4_required_grammar_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/gemma4_required_grammar_test.cpp:32 · its file's page
What it checks (3)
CHECK(entropic::gbnf_root_line(out) == "root ::= start (thought | ) tool-call")observesgbnf_root_lineCHECK(out == pinned_gbnf("root ::= start (thought | ) tool-call"))observespinned_gbnfCHECK(entropic::patch_gemma4_required_root(in) == "root ::= start (thought | ) tool-call\nx ::= \"a\"\n")observespatch_gemma4_required_root
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
The Gemma 4 REQUIRED root is rewritten to the f072b10371 shape→pinned_gbnf→WHEN→patch_gemma4_required_root→gbnf_root_lineWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-008 inferred