gh#169: a capped loop carries its last real content, annotated

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

What it checks (7)

  1. CHECK(gh169::last_assistant(ctx).find("long division") != std::string::npos) observes last_assistant
  2. CHECK(gh169::last_assistant(ctx).find( "iteration cap reached after 3 iterations") != std::string::npos) observes last_assistant
  3. REQUIRE(it != ctx.metadata.end()) not attributed
  4. CHECK(it->second == "budget_exhausted") not attributed
  5. CHECK(ctx.state == AgentState::COMPLETE) not attributed
  6. REQUIRE(it != ctx.metadata.end()) not attributed
  7. CHECK(it->second == "true") 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#169: a capped loop carries its last real content, annotated→make_mock_interface→WHEN→make_messages→run_loop→last_assistant→REQUIRE

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#169: a capped loop carries its last real content, annotated · 7 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 · 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 · inferred

and 9 more requirement paths, listed below.

Also reaches 21 requirements

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