Constitutional validator detects violations and revises

Tests › tests/model/test_constitutional_validation.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/model/test_constitutional_validation.cpp:21 · its file's page

What it checks (5)

  1. REQUIRE(g_ctx.initialized) not attributed
  2. REQUIRE_FALSE(constitution.empty()) observes load_constitution_prompt via constitution
  3. CHECK_FALSE(result.content.empty()) observes validate via result
  4. CHECK(result.was_revised) observes validate via result
  5. CHECK(result.revision_count >= 1) observes validate via result

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

Constitutional validator detects violations and revises→REQUIRE→start_test_log→load_constitution_prompt→validate→make_real_interface→attach→WHEN→detach→end_test_log

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.

Constitutional validator detects violations and revises · 5 checksmake_real_interface… 8 calls …entropic_versionREQ-ABI-001 · inferredmake_real_interface… 10 calls …entropic_session_bind_workspaceREQ-ABI-002 · inferredmake_real_interface… 10 calls …entropic_last_errorREQ-API-003 · inferredmake_real_interface… 10 calls …entropic_session_bind_workspaceREQ-API-005 · inferredmake_real_interface… 10 calls …entropic_last_errorREQ-API-007 · inferredmake_real_interface… 8 calls …entropic_versionREQ-API-008 · inferredWHENfailure_detailREQ-API-012 · inferredmake_real_interface… 6 calls …dispatchREQ-BRIDGE-001 · inferredattachregister_hookREQ-HOOK-001 · inferredattachREQ-HOOK-002 · inferredmake_real_interface… 6 calls …unloadREQ-INFER-002 · inferredmake_real_interfacebuild_orchestrator_interfaceiface_generate_streamgenerate_streamingREQ-INFER-005 · inferred

and 25 more requirement paths, listed below.

Also reaches 59 requirements

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