REQ-DDB-MCP-002: Tier-0 lifecycle/utility tools available before any db exists

← Requirements

What it requires

  1. Set/point target, build-or-refresh, status, and list-targets tools are registered and callable at launch, before a clew.db has been built.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Answer: query engine + MCP server9

See it on the map

How it is met

implemented byresults (46 tests)_build_lock_build_once_failure_result_listing_rowbuild_or_refreshindexlist_targetsregistry_wide_target_errorstatus46 passed46 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (46)

Linked directly

46 tests: 46 passed

46 passed
testresultlinked byimplementers exercisedcalls away
test_index_refresh_tool_forwards_sub_index_through_the_dispatcherpassedmeasured4 of 9: _build_lock, _build_once, build_or_refresh, index—
test_the_registry_wide_actions_refuse_a_target_and_still_answer_without_onepassedmeasured4 of 9: index, list_targets, registry_wide_target_error, status—
test_a_routed_build_registers_the_target_without_adopting_itpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_a_sessions_own_build_invalidates_its_stale_active_defaultpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_a_stated_option_forces_a_build_on_a_current_indexpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_a_vendored_sub_indexs_own_stated_exclude_replayspassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_an_explicit_refresh_still_builds_any_named_directorypassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_build_or_refresh_proceeds_when_the_process_matches_its_sourcepassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_build_or_refresh_reports_a_measured_durationpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_build_or_refresh_skips_current_db_and_activatespassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_concurrent_refreshes_of_different_targets_are_not_serialisedpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_concurrent_refreshes_of_one_target_build_it_oncepassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_index_stamps_the_action_that_produced_the_replypassedmeasured3 of 9: index, list_targets, status—
test_mcp_refresh_of_a_vendored_sub_index_excludes_its_own_childrenpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_no_index_action_answers_about_a_repository_it_was_not_asked_aboutpassedmeasured3 of 9: build_or_refresh, index, registry_wide_target_error—
test_refresh_with_sub_index_builds_only_that_sub_indexpassedmeasured3 of 9: _build_lock, _build_once, build_or_refresh—
test_a_deliberate_refusal_is_tagged_refusedpassedmeasured2 of 9: index, registry_wide_target_error—
test_a_derived_name_is_listed_once_even_when_builtpassedmeasured2 of 9: _listing_row, list_targets—
test_a_repository_with_no_recorded_split_invents_nothingpassedmeasured2 of 9: _listing_row, list_targets—
test_an_unbuilt_row_carries_no_staleness_blockpassedmeasured2 of 9: _listing_row, list_targets—
test_targets_is_a_listing_not_a_wall_of_full_statuspassedmeasured2 of 9: _listing_row, list_targets—
test_the_listing_names_the_sub_indexes_that_are_not_built_yetpassedmeasured2 of 9: _listing_row, list_targets—
test_the_listing_names_top_level_derived_trees_onlypassedmeasured2 of 9: _listing_row, list_targets—
test_the_whole_listing_is_boundedpassedmeasured2 of 9: _listing_row, list_targets—
test_a_client_advertising_no_roots_is_never_askedpassedmeasured1 of 9: status—
test_a_failing_build_reports_the_exception_not_an_exit_codepassedmeasured1 of 9: _failure_result—
test_a_query_refreshes_only_when_the_data_axis_is_stalepassedmeasured1 of 9: _build_lock—
test_a_query_takes_the_fast_tier_and_the_tick_runs_the_full_buildpassedmeasured1 of 9: _build_lock—
test_a_query_waits_at_most_a_second_behind_another_buildpassedmeasured1 of 9: _build_lock—
test_a_refused_or_unusable_roots_list_degrades_to_no_targetpassedmeasured1 of 9: status—
test_a_server_with_no_target_does_not_answer_from_a_previous_onepassedmeasured1 of 9: status—
test_a_stalled_refresh_does_not_hang_a_later_querypassedmeasured1 of 9: _build_lock—
test_an_unknown_index_action_is_refused_by_namepassedmeasured1 of 9: index—
test_an_unknown_target_is_refused_and_says_what_it_looked_forpassedmeasured1 of 9: build_or_refresh—
test_auto_refresh_targets_the_named_sub_index_not_a_siblingpassedmeasured1 of 9: _build_lock—
test_build_or_refresh_refuses_when_the_process_predates_its_sourcepassedmeasured1 of 9: build_or_refresh—
test_build_or_refresh_without_target_is_an_errorpassedmeasured1 of 9: build_or_refresh—
test_comments_are_read_without_a_built_indexpassedmeasured1 of 9: index—
test_index_action_refuses_sub_index_alone_on_registry_wide_actionspassedmeasured1 of 9: registry_wide_target_error—
test_index_refuses_stats_and_cull_and_names_their_clipassedmeasured1 of 9: index—
test_roots_resolve_lazily_on_the_first_call_that_needs_a_targetpassedmeasured1 of 9: status—
test_status_interprets_an_unresolvable_version_skewpassedmeasured1 of 9: status—
test_status_on_a_current_index_carries_no_staleness_blockpassedmeasured1 of 9: status—
test_the_agent_reads_waiting_comments_through_indexpassedmeasured1 of 9: index—
test_the_background_pass_refreshes_only_indexes_this_session_usedpassedmeasured1 of 9: _build_lock—
test_the_pipeline_exiting_is_reported_rather_than_escapingpassedmeasured1 of 9: _failure_result—

Flows through it