gh#179: a workspace-bound session is seeded with its workspace’s prompts¶
Tests › tests/unit/core/workspace_prompt_test.cpp
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)
CHECK(seeded(engine, "in-a") == "A-DEFAULT")observesseededCHECK(seeded(engine, "elsewhere") == "HANDLE-DEFAULT")observesseededCHECK(seeded(engine, "in-a-eng") == "A-ENG")observesseededREQUIRE(tri.resolve_tier != nullptr)not attributedCHECK(child.valid)not attributedCHECK(child.system_prompt == "A-ENG")not attributedCHECK(plain.system_prompt == "HANDLE-ENG")not attributedCHECK(seeded(engine, "late") == "HANDLE-DEFAULT")observesseeded
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_promptsWhat 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.
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-IDEN-001 inferred
- REQ-IDEN-003 inferred
- REQ-LOOP-001 inferred
- REQ-MCP-027 inferred