Tool call cycle: generate, parse, execute, regenerate

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

What it checks (5)

  1. REQUIRE(g_ctx.initialized) not attributed
  2. CHECK(state.tool_exec_count >= 1) not attributed
  3. REQUIRE(result.size() >= 3) observes run via result
  4. CHECK(result.back().role == "assistant") observes run via result
  5. CHECK(state.tool_exec_count >= m.iterations - 1) observes last_loop_metrics via m

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

Tool call cycle: generate, parse, execute, regenerate→REQUIRE→start_test_log→make_real_interface→wire_callbacks→set_callbacks→set_tool_executor→WHEN→make_messages→run→last_loop_metrics→end_test_log→mock_tool_exec

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.

Tool call cycle: generate, parse, execute, regenerate · 5 checksmake_real_interface… 8 calls …entropic_versionREQ-ABI-001 · inferredmake_real_interface… 10 calls …entropic_session_bind_workspaceREQ-ABI-002 · inferredmake_real_interface… 10 calls …entropic_last_errorREQ-API-003 · inferredmake_real_interface… 10 calls …entropic_session_bind_workspaceREQ-API-005 · inferredmake_real_interface… 10 calls …entropic_last_errorREQ-API-007 · inferredmake_real_interface… 8 calls …entropic_versionREQ-API-008 · inferredWHENfailure_detailREQ-API-012 · inferredmake_real_interface… 6 calls …dispatchREQ-BRIDGE-001 · inferredrunloopexecute_iterationcheck_compactionREQ-COMPACT-001 · inferredrunREQ-COMPACT-002 · inferredrun… 4 calls …execute_pending_pipelineREQ-DELEG-001 · inferredruninit_session_conversationREQ-DELEG-002 · inferred

and 38 more requirement paths, listed below.

Also reaches 70 requirements

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