gh#179: a workspace-bound session is seeded with its workspace’s prompts

Tests › tests/unit/core/workspace_prompt_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/core/workspace_prompt_test.cpp:38 · its file's page

What it checks (8)

  1. CHECK(seeded(engine, "in-a") == "A-DEFAULT") observes seeded
  2. CHECK(seeded(engine, "elsewhere") == "HANDLE-DEFAULT") observes seeded
  3. CHECK(seeded(engine, "in-a-eng") == "A-ENG") observes seeded
  4. REQUIRE(tri.resolve_tier != nullptr) not attributed
  5. CHECK(child.valid) not attributed
  6. CHECK(child.system_prompt == "A-ENG") not attributed
  7. CHECK(plain.system_prompt == "HANDLE-ENG") not attributed
  8. CHECK(seeded(engine, "late") == "HANDLE-DEFAULT") observes seeded

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#179: a workspace-bound session is seeded with its workspace's prompts→make_mock_interface→set_system_prompt→set_tier_info→set_handoff_rules→set_workspace_prompts→bind_session_workspace→WHEN→set_active_session→seeded→run_turn_as→tier_resolution→REQUIRE→clear_workspace_prompts

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#179: a workspace-bound session is seeded with its workspace's prompts · 8 checksWHENfailure_detailREQ-API-012 · inferredtier_resolutionREQ-IDEN-001 · inferredset_handoff_rulesREQ-IDEN-003 · inferredset_active_sessionREQ-LOOP-001 · inferredset_workspace_promptsREQ-MCP-027 · inferred
Also reaches 5 requirements

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