gh#211: workspace_roots admits only directories inside it

Tests › tests/unit/api/workspace_roots_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/workspace_roots_test.cpp:55 · its file's page

What it checks (7)

  1. REQUIRE(r.rc == ENTROPIC_OK) not attributed
  2. CHECK(entropic_workspace_create(r.h, "repo", (r.dir / "allowed" / "repo").c_str()) == ENTROPIC_OK) observes entropic_workspace_create
  3. CHECK(entropic_workspace_create(r.h, "other", (r.dir / "other").c_str()) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_workspace_create
  4. CHECK(mentions(r.h, "workspace_roots")) observes mentions
  5. CHECK(entropic_workspace_create(r.h, "slash", "/") == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_workspace_create
  6. CHECK(entropic_workspace_create(r.h, "escape", (r.dir / "allowed" / "escape").c_str()) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_workspace_create
  7. CHECK(entropic_workspace_create(r.h, "climb", climb.c_str()) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_workspace_create

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#211: workspace_roots admits only directories inside it→REQUIRE→entropic_workspace_create→entropic_workspace_create→mentions

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#211: workspace_roots admits only directories inside it · 7 checksmentionsentropic_last_errorREQ-ABI-001 · inferredentropic_workspace_createREQ-ABI-002 · inferredmentionsentropic_last_errorREQ-API-003 · inferredentropic_workspace_createREQ-API-005 · inferredmentionsentropic_last_errorREQ-API-007 · 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_workspace_create… 3 calls …fire_preREQ-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 · inferred

and 13 more requirement paths, listed below.

Also reaches 25 requirements

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