delegation snapshot + per-tier metrics accumulation

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

What it checks (7)

  1. REQUIRE(snap.start != nullptr) observes delegation_callbacks_snapshot via snap
  2. REQUIRE(snap.complete != nullptr) observes delegation_callbacks_snapshot via snap
  3. REQUIRE(snap.user_data == &sentinel) observes delegation_callbacks_snapshot via snap
  4. REQUIRE(cleared.start == nullptr) observes delegation_callbacks_snapshot via cleared
  5. REQUIRE(cleared.user_data == nullptr) observes delegation_callbacks_snapshot via cleared
  6. REQUIRE(it != per_tier.end()) observes per_tier_metrics via per_tier
  7. REQUIRE(it->second.iterations >= 2) 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 snapshot + per-tier metrics accumulation→make_mock_interface→set_delegation_callbacks→delegation_callbacks_snapshot→REQUIRE→make_messages→run_loop→per_tier_metrics

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 snapshot + per-tier metrics accumulation · 7 checksrun_looploopexecute_iterationcheck_compactionREQ-COMPACT-001 · inferredrun_loopREQ-COMPACT-002 · inferredrun_loop… 4 calls …execute_pending_pipelineREQ-DELEG-001 · inferredset_delegation_callbacksREQ-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.