REQ-DDB-CONFIG-008: TIER 1 is reachable from an embedding caller through ONE structured options argument

← Requirements

What it requires

  1. An embedding caller — build_index, and therefore the MCP build_or_refresh tool — can STATE any tier-1 build option in a single options mapping whose keys are the declaration file's own section names, so one vocabulary covers both routes and the build diagnostics name their findings in it.
  2. Values are inline for the list and small-mapping options and a path for the six manifest-shaped documents; a relative path resolves against the REPO ROOT, not the caller's working directory.
  3. A stated value WINS over the target's declaration, which wins over the built-in defaults.
  4. The surface fails closed at BOTH levels: an unknown section is refused by name against the accepted set, a correctly-spelled but DERIVED key is refused with the reason it cannot be stated rather than as unknown, and an entry whose value is out of vocabulary (an event role that is not producer/consumer) is refused rather than parsed into a mapping nothing reads.
  5. Validation completes before any assignment, so a mapping with one bad entry applies NOTHING.
  6. Omitting the argument, or passing an empty mapping, changes nothing and is not an error.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Answer: query engine + MCP server5
  • Propose: declaration proposals1

See it on the map

How it is met

implemented byresults (50 tests)_build_once_run_build_run_build_walkedbuild_or_refreshpropose_declarationstatement_from_draft50 passed50 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (50)

Linked directly

50 tests: 50 passed

50 passed
testresultlinked byimplementers exercisedcalls away
test_a_vendored_sub_indexs_own_stated_exclude_replayspassedmeasured4 of 6: _build_once, _run_build, _run_build_walked, build_or_refresh—
test_mcp_refresh_of_a_vendored_sub_index_excludes_its_own_childrenpassedmeasured4 of 6: _build_once, _run_build, _run_build_walked, build_or_refresh—
test_a_failing_build_reports_the_exception_not_an_exit_codepassedmeasured2 of 6: _run_build, _run_build_walked—
test_a_first_party_refresh_never_walks_inside_a_vendored_treepassedmeasured2 of 6: _run_build, _run_build_walked—
test_a_routed_build_registers_the_target_without_adopting_itpassedmeasured2 of 6: _build_once, build_or_refresh—
test_a_sessions_own_build_invalidates_its_stale_active_defaultpassedmeasured2 of 6: _build_once, build_or_refresh—
test_a_stated_option_forces_a_build_on_a_current_indexpassedmeasured2 of 6: _build_once, build_or_refresh—
test_an_explicit_refresh_still_builds_any_named_directorypassedmeasured2 of 6: _build_once, build_or_refresh—
test_build_or_refresh_proceeds_when_the_process_matches_its_sourcepassedmeasured2 of 6: _build_once, build_or_refresh—
test_build_or_refresh_reports_a_measured_durationpassedmeasured2 of 6: _build_once, build_or_refresh—
test_build_or_refresh_skips_current_db_and_activatespassedmeasured2 of 6: _build_once, build_or_refresh—
test_build_without_doxyfile_reports_errorpassedmeasured2 of 6: _run_build, _run_build_walked—
test_concurrent_refreshes_of_different_targets_are_not_serialisedpassedmeasured2 of 6: _build_once, build_or_refresh—
test_concurrent_refreshes_of_one_target_build_it_oncepassedmeasured2 of 6: _build_once, build_or_refresh—
test_index_refresh_tool_forwards_sub_index_through_the_dispatcherpassedmeasured2 of 6: _build_once, build_or_refresh—
test_refresh_with_sub_index_builds_only_that_sub_indexpassedmeasured2 of 6: _build_once, build_or_refresh—
test_the_build_passes_only_what_the_repo_actually_haspassedmeasured2 of 6: _run_build, _run_build_walked—
test_the_build_runs_in_process_and_keeps_stdout_cleanpassedmeasured2 of 6: _run_build, _run_build_walked—
test_the_pipeline_exiting_is_reported_rather_than_escapingpassedmeasured2 of 6: _run_build, _run_build_walked—
test_the_refusal_happens_before_the_build_lock_is_takenpassedmeasured2 of 6: _run_build, _run_build_walked—
test_an_unknown_target_is_refused_and_says_what_it_looked_forpassedmeasured1 of 6: build_or_refresh—
test_build_or_refresh_refuses_when_the_process_predates_its_sourcepassedmeasured1 of 6: build_or_refresh—
test_build_or_refresh_without_target_is_an_errorpassedmeasured1 of 6: build_or_refresh—
test_mcp_propose_returns_a_draft_and_keeps_stdout_cleanpassedmeasured1 of 6: statement_from_draft—
test_no_index_action_answers_about_a_repository_it_was_not_asked_aboutpassedmeasured1 of 6: build_or_refresh—
test_the_proposer_is_a_promptpassedmeasured1 of 6: statement_from_draft—
test_a_bad_event_role_is_refused_not_storedpassedcatalogunknown—
test_a_bare_string_is_not_accepted_as_a_listpassedcatalogunknown—
test_a_derived_option_is_refused_with_its_reasonpassedcatalogunknown—
test_a_documents_non_entry_key_is_acceptedpassedcatalogunknown—
test_a_lock_declaration_with_releases_is_accepted_on_both_routespassedcatalogunknown—
test_a_manifest_may_be_stated_inlinepassedcatalogunknown—
test_a_misspelled_entry_field_is_refusedpassedcatalogunknown—
test_a_relative_path_resolves_against_the_repo_rootpassedcatalogunknown—
test_a_stated_document_beats_the_declaration_and_reaches_the_loaderpassedcatalogunknown—
test_a_stated_preprocessor_section_reaches_tier_onepassedcatalogunknown—
test_an_accessor_entry_with_neither_convention_is_refusedpassedcatalogunknown—
test_an_empty_stated_document_falls_back_to_the_declarationpassedcatalogunknown—
test_an_entry_missing_its_required_key_is_refusedpassedcatalogunknown—
test_an_unknown_document_key_in_an_inline_manifest_is_refusedpassedcatalogunknown—
test_an_unknown_option_is_refused_by_namepassedcatalogunknown—
test_dispatch_is_validated_by_its_own_loader_not_a_second_copypassedcatalogunknown—
test_every_accepted_option_can_actually_be_appliedpassedcatalogunknown—
test_every_advertised_entry_key_is_accepted_by_its_own_schemapassedcatalogunknown—
test_inline_options_are_applied_including_event_tagspassedcatalogunknown—
test_nothing_stated_changes_nothingpassedcatalogunknown—
test_one_bad_entry_applies_nothingpassedcatalogunknown—
test_the_path_form_still_works_for_a_manifestpassedcatalogunknown—
test_a_draft_with_no_candidates_states_nothingpassedmeasured1 of 6: statement_from_draft1
test_draft_becomes_a_statable_option_without_a_filepassedmeasured1 of 6: statement_from_draft1

Flows through it