delegation guards reject depth/cycle/repeat/pipeline-depth

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:1966 · its file's page

What it checks (6)

  1. REQUIRE(v2310::msg_contains(ctx, "[PIPELINE REJECTED]")) observes msg_contains
  2. REQUIRE(v2310::msg_contains(ctx, "Circular delegation")) observes msg_contains
  3. REQUIRE(ctx.metadata["failure_reason"] == "delegation_cycle") not attributed
  4. REQUIRE(v2310::msg_contains(ctx, "Maximum delegation")) observes msg_contains
  5. REQUIRE(v2310::msg_contains(ctx, "Stop retrying this target")) observes msg_contains
  6. REQUIRE(ctx.metadata["failure_reason"] == "delegation_repeat_blocked") 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

delegation guards reject depth/cycle/repeat/pipeline-depth→make_mock_interface→set_tool_executor→deleg_executor→make_messages→run_loop→REQUIRE→msg_contains

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.

delegation guards reject depth/cycle/repeat/pipeline-depth · 6 checksrun_looploopexecute_iterationcheck_compactionREQ-COMPACT-001 · inferredrun_loopREQ-COMPACT-002 · inferredrun_loop… 4 calls …execute_pending_pipelineREQ-DELEG-001 · inferredrun_looploopresolve_max_iterationsREQ-DELEG-002 · inferredrun_loop… 5 calls …finalize_delegation_resultREQ-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 · inferredrun_looploopREQ-HOOK-002 · inferredrun_loopREQ-IDEN-001 · inferredrun_loop… 4 calls …try_auto_chainREQ-IDEN-003 · inferredrun_loop… 4 calls …handle_terminal_finish_reasonsREQ-INFER-026 · inferred

and 8 more requirement paths, listed below.

Also reaches 20 requirements

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