v2.14.0: the pre-connect hook decides what config left open

Tests › tests/unit/api/mcp_discovery_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/api/mcp_discovery_gate_test.cpp:249 · its file's page

What it checks (15)

  1. REQUIRE(h.ok) not attributed
  2. REQUIRE(entropic_register_hook(h.h, ENTROPIC_HOOK_PRE_MCP_SERVER_CONNECT, &VerdictHook::call, &hook, 0) == ENTROPIC_OK) observes entropic_register_hook
  3. REQUIRE(entropic_workspace_create(h.h, "repo", repo.string().c_str()) == ENTROPIC_OK) observes entropic_workspace_create
  4. CHECK(hook.calls == 1) not attributed
  5. CHECK(hook.last.find("\"probe\"") != std::string::npos) not attributed
  6. CHECK(spawned(marker)) observes spawned
  7. REQUIRE(entropic_register_hook(h.h, ENTROPIC_HOOK_PRE_MCP_SERVER_CONNECT, &VerdictHook::call, &hook, 0) == ENTROPIC_OK) observes entropic_register_hook
  8. REQUIRE(entropic_workspace_create(h.h, "repo", repo.string().c_str()) == ENTROPIC_OK) observes entropic_workspace_create
  9. CHECK(hook.calls == 1) not attributed
  10. CHECK_FALSE(spawned(marker, std::chrono::milliseconds(400))) observes spawned
  11. REQUIRE(h.ok) observes cfg_rooted via h
  12. REQUIRE(entropic_register_hook(h.h, ENTROPIC_HOOK_PRE_MCP_SERVER_CONNECT, &VerdictHook::call, &hook, 0) == ENTROPIC_OK) observes entropic_register_hook
  13. REQUIRE(entropic_workspace_create(h.h, "repo", repo.string().c_str()) == ENTROPIC_OK) observes entropic_workspace_create
  14. CHECK(hook.calls == 0) not attributed
  15. CHECK_FALSE(spawned(marker, std::chrono::milliseconds(400))) observes spawned

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

v2.14.0: the pre-connect hook decides what config left open→scratch→write_mcp_json→cfg_rooted→REQUIRE→WHEN→entropic_register_hook→entropic_workspace_create→entropic_workspace_create→spawned→call

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.

v2.14.0: the pre-connect hook decides what config left open · 15 checksentropic_workspace_createREQ-ABI-002 · inferredentropic_workspace_createREQ-API-005 · inferredWHENfailure_detailREQ-API-012 · inferredentropic_workspace_create… 3 calls …bridge_project_dirREQ-BRIDGE-001 · inferredentropic_workspace_createapply_workspace_app_contextresolve_data_dirREQ-CFG-008 · inferredentropic_workspace_create… 4 calls …DelegateToolREQ-DELEG-006 · inferredentropic_register_hookREQ-HOOK-001 · inferredentropic_workspace_createbuild_workspaceinit_builtinsREQ-MCP-001 · inferredentropic_workspace_create… 3 calls …register_toolREQ-MCP-003 · inferredentropic_workspace_createbuild_workspaceload_pluginsloadREQ-MCP-004 · inferredentropic_workspace_createbuild_workspaceload_pluginsREQ-MCP-005 · inferredentropic_workspace_createbuild_workspaceload_pluginsset_working_dirREQ-MCP-006 · inferred

and 11 more requirement paths, listed below.

Also reaches 23 requirements

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