gh#181: the parent relay receives the hard-cut child’s real work

Tests › tests/unit/core/engine_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/engine_test.cpp:3862 · its file's page

What it checks (10)

  1. REQUIRE(it != ctx.metadata.end()) not attributed
  2. CHECK(it->second.find("culvert at mile 12") != std::string::npos) not attributed
  3. CHECK(it->second.find("thinking budget exhausted") != std::string::npos) not attributed
  4. CHECK(it->second.substr(0, 8) == "[partial") not attributed
  5. CHECK(ctx.metadata.at("relay_status") == "budget_exhausted_relayed") not attributed
  6. REQUIRE_FALSE(deleg_json.empty()) not attributed
  7. CHECK(j.at("success").get<bool>() == false) not attributed
  8. CHECK(j.at("target_tier").get<std::string>() == "eng") not attributed
  9. CHECK(j.at("result_kind").get<std::string>() == "delegation_failed") not attributed
  10. CHECK(j.at("summary").get<std::string>().find( "culvert at mile 12") != std::string::npos) not attributed

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#181: the parent relay receives the hard-cut child's real work→make_mock_interface→set_relay_single_delegate→set_hooks→make_capturing_hooks→set_tier_resolution→set_tool_executor→WHEN→make_messages→run_loop→REQUIRE→info→inject_delegation_once

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#181: the parent relay receives the hard-cut child's real work · 10 checksWHENfailure_detailREQ-API-012 · inferredrun_looploopexecute_iterationcheck_compactionREQ-COMPACT-001 · inferredrun_loopREQ-COMPACT-002 · inferredrun_loop… 4 calls …execute_pending_pipelineREQ-DELEG-001 · inferredrun_looploopresolve_max_iterationsREQ-DELEG-002 · inferredset_relay_single_delegateREQ-DELEG-003 · inferredrun_loop… 4 calls …execute_pending_pipelineREQ-DELEG-004 · inferredrun_loop… 5 calls …resolve_session_rootREQ-DELEG-005 · inferredrun_loop… 5 calls …resolve_resume_delegationREQ-DELEG-006 · inferredset_hooksREQ-HOOK-002 · inferredset_tier_resolutionREQ-IDEN-001 · inferredrun_loop… 4 calls …try_auto_chainREQ-IDEN-003 · inferred

and 9 more requirement paths, listed below.

Also reaches 21 requirements

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