gh#158: metrics and context reads are safe during live runs

Tests › tests/model/test_gh158_concurrent_sessions.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/model/test_gh158_concurrent_sessions.cpp:301 · its file's page

What it checks (3)

  1. REQUIRE(h != nullptr) not attributed
  2. CHECK(reads.load() > 0) not attributed
  3. CHECK(malformed.load() == 0) 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#158: metrics and context reads are safe during live runs→model_gguf→setup→setup_failure→REQUIRE→WHEN→entropic_metrics_json→entropic_free→entropic_free→entropic_context_usage→entropic_context_usage→entropic_run_session→entropic_run_session

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#158: metrics and context reads are safe during live runs · 3 checksentropic_context_usageREQ-ABI-001 · inferredsetupentropic_grammar_register_fileREQ-ABI-002 · inferredsetupentropic_createREQ-API-002 · inferredsetupentropic_createREQ-API-003 · inferredsetupentropic_configure_dirREQ-API-004 · inferredentropic_context_usageREQ-API-005 · inferredentropic_freeREQ-API-008 · inferredentropic_run_sessionREQ-API-009 · inferredsetup… 4 calls …rewire_observersREQ-API-010 · inferredWHENfailure_detailREQ-API-012 · inferredsetup… 3 calls …init_orchestratorREQ-API-013 · inferredsetup… 3 calls …start_http_listenerREQ-BRIDGE-001 · inferred

and 66 more requirement paths, listed below.

Also reaches 80 requirements

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