gh#182: a model-supplied max_turns bounds the delegated child¶
Tests › tests/unit/core/engine_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/core/engine_test.cpp:4139 · its file's page
What it checks (12)
CHECK(out.child_iterations == 2)observesdelegate_onceviaoutCHECK(out.carrier.find(gh182::kChildWork) != std::string::npos)observesdelegate_onceviaoutCHECK(out.carrier.find("[iteration cap reached after ") != std::string::npos)observesdelegate_onceviaoutCHECK(out.carrier.rfind("[DELEGATION FAILED: eng]", 0) == 0)observesdelegate_onceviaoutREQUIRE_FALSE(json.empty())observesdelegate_complete_jsonviajsonCHECK(j.at("success").get<bool>() == false)not attributedCHECK(j.at("target_tier").get<std::string>() == "eng")not attributedCHECK(j.at("result_kind").get<std::string>() == "delegation_failed")not attributedCHECK(out.child_iterations == 2)observesdelegate_onceviaoutCHECK(out.child_iterations == 5)observesdelegate_onceviaoutCHECK(out.child_iterations == 4)observesdelegate_onceviaoutCHECK(out.child_iterations == 3)observesdelegate_onceviaout
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#182: a model-supplied max_turns bounds the delegated child→WHEN→delegate_once→delegate_complete_jsonWhat 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.
and 9 more requirement paths, listed below.
Also reaches 21 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-COMPACT-001 inferred
- REQ-COMPACT-002 inferred
- REQ-DELEG-001 inferred
- REQ-DELEG-002 inferred
- REQ-DELEG-003 inferred
- REQ-DELEG-004 inferred
- REQ-DELEG-005 inferred
- REQ-DELEG-006 inferred
- REQ-HOOK-002 inferred
- REQ-IDEN-001 inferred
- REQ-IDEN-003 inferred
- REQ-INFER-026 inferred
- REQ-LOOP-001 inferred
- REQ-LOOP-002 inferred
- REQ-LOOP-003 inferred
- REQ-LOOP-004 inferred
- REQ-LOOP-005 inferred
- REQ-LOOP-006 inferred
- REQ-LOOP-007 inferred
- REQ-SAFE-001 inferred