gh#154 a tier grammar that is not registered refuses the run

Tests › tests/unit/inference/tier_grammar_gate_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/inference/tier_grammar_gate_test.cpp:99 · its file's page

What it checks (16)

  1. REQUIRE_FALSE(orch.initialize( make_tier_grammar_config(fake.path, "forcehello"))) observes initialize
  2. REQUIRE(orch.grammar_registry().get("forcehello").empty()) observes get
  3. CHECK(result.error_code == ENTROPIC_ERROR_GRAMMAR_NOT_FOUND) observes generate via result
  4. CHECK(result.finish_reason == "error") observes generate via result
  5. CHECK(result.content.empty()) observes generate via result
  6. CHECK(result.token_count == 0) observes generate via result
  7. CHECK(err.find("lead") != std::string::npos) not attributed
  8. CHECK(err.find("forcehello") != std::string::npos) not attributed
  9. CHECK(err.find("entropic_grammar_register") != std::string::npos) not attributed
  10. CHECK(result.error_code == ENTROPIC_ERROR_GRAMMAR_NOT_FOUND) observes generate via result
  11. CHECK(result.content.empty()) observes generate via result
  12. CHECK(result.error_code == ENTROPIC_ERROR_GRAMMAR_NOT_FOUND) observes generate_streaming via result
  13. CHECK(token_callbacks == 0) not attributed
  14. REQUIRE(results.size() == 2) observes generate_batch via results
  15. CHECK(r.error_code == ENTROPIC_ERROR_GRAMMAR_NOT_FOUND) not attributed
  16. CHECK(r.content.empty()) not attributed

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

gh#154 a tier grammar that is not registered refuses the run→initialize→make_tier_grammar_config→REQUIRE→grammar_registry→get→one_turn→WHEN→generate→generate→generate_streaming→generate_batch

What 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.

gh#154 a tier grammar that is not registered refuses the run · 16 checksgenerate_streaming… 7 calls …entropic_versionREQ-ABI-001 · inferredgenerate_streaming… 9 calls …entropic_session_bind_workspaceREQ-ABI-002 · inferredgenerate_streaming… 9 calls …entropic_last_errorREQ-API-003 · inferredgenerate_streaming… 9 calls …entropic_session_bind_workspaceREQ-API-005 · inferredgenerate_streaming… 9 calls …entropic_last_errorREQ-API-007 · inferredgenerate_streaming… 7 calls …entropic_versionREQ-API-008 · inferredgenerate_streaming… 10 calls …claim_exclusiveREQ-API-009 · inferredWHENfailure_detailREQ-API-012 · inferredgenerate_streaming… 5 calls …dispatchREQ-BRIDGE-001 · inferredinitializeactivate_routerensure_loadedload_and_activateREQ-INFER-002 · inferredgenerate_streamingREQ-INFER-005 · inferredgenerate_streaming… 5 calls …to_common_samplingREQ-INFER-006 · inferred

and 22 more requirement paths, listed below.

Also reaches 55 requirements

Its run touches their code; that is reach, not proof.