REQ-DDB-GUARD-027: External requirements catalogues, and no @req passes unchecked¶
What it requires
- impact.requirements.external names catalogues this repository does not own, each a local path or {repo, rev, path} read with git show at that revision from a local checkout; their ids join the local catalogue for cross_reference, and
fileis optional beside them. - A URL source is refused naming it.
- An unreadable or empty external catalogue is an error, never an empty set.
- With cross_reference on and no catalogue at all, each @req tag is a violation saying it cannot be checked.
- The wiki's pinned sub-catalogues are read through the same reader.
- tier
- PASS
- declared
- implemented
- priority
- P1
Where it lives
- Build: docs, requirements and tests layers2
- Guard: the pre-commit gate2
How it is met
Implemented by
_uncheckableclew/guard/checks.py:940git_textclew/requirements.py:1295load_external_requirementsclew/guard/impact.py:254read_catalog_atclew/requirements.py:1320
Tests (158)
Linked directly
59 tests: 59 passed
59 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_a_pinned_external_catalogue_is_read_at_its_revision | passed | measured | 3 of 4: git_text, load_external_requirements, read_catalog_at | — |
test_a_namespaced_satisfies_id_resolves_by_its_bare_id | passed | measured | 2 of 4: load_external_requirements, read_catalog_at | — |
test_a_tag_with_no_catalogue_to_check_it_is_reported | passed | measured | 2 of 4: _uncheckable, load_external_requirements | — |
test_an_external_catalogue_satisfies_cross_reference_without_a_local_one | passed | measured | 2 of 4: load_external_requirements, read_catalog_at | — |
test_the_gate_refuses_a_satisfies_id_no_catalogue_holds | passed | measured | 2 of 4: load_external_requirements, read_catalog_at | — |
test_a_checked_tree_says_nothing_extra | passed | measured | 1 of 4: load_external_requirements | — |
test_a_clean_repo_passes | passed | measured | 1 of 4: load_external_requirements | — |
test_a_configured_language_is_not_reported | passed | measured | 1 of 4: load_external_requirements | — |
test_a_non_source_file_stays_silent | passed | measured | 1 of 4: load_external_requirements | — |
test_a_non_void_return_type_on_its_own_line_still_needs_one | passed | measured | 1 of 4: load_external_requirements | — |
test_a_symlinked_impact_directory_is_refused | passed | measured | 1 of 4: load_external_requirements | — |
test_a_void_return_type_on_its_own_line_needs_no_return_tag | passed | measured | 1 of 4: load_external_requirements | — |
test_an_excluded_file_is_counted_as_not_checked | passed | measured | 1 of 4: load_external_requirements | — |
test_an_opt_in_language_left_unconfigured_is_named | passed | measured | 1 of 4: load_external_requirements | — |
test_an_unchecked_file_is_named_without_the_verbose_flag | passed | measured | 1 of 4: load_external_requirements | — |
test_custom_config | passed | measured | 1 of 4: load_external_requirements | — |
test_default_subcommand_with_files | passed | measured | 1 of 4: load_external_requirements | — |
test_literal_version_resolves | passed | measured | 1 of 4: load_external_requirements | — |
test_precommit_mode_flags_a_stale_rust_function | passed | measured | 1 of 4: load_external_requirements | — |
test_precommit_with_impact | passed | measured | 1 of 4: load_external_requirements | — |
test_the_pre_commit_hook_runs_the_coverage_gate | passed | measured | 1 of 4: load_external_requirements | — |
test_validate_clean_file | passed | measured | 1 of 4: load_external_requirements | — |
test_validate_dirty_file | passed | measured | 1 of 4: load_external_requirements | — |
test_validate_nonexistent_file | passed | measured | 1 of 4: load_external_requirements | — |
test_validate_writes_the_format_to_stdout_and_keeps_the_exit_code | passed | measured | 1 of 4: load_external_requirements | — |
test_verbose_flag | passed | measured | 1 of 4: load_external_requirements | — |
test_a_catalogue_not_marked_parent_still_refuses | passed | measured | 3 of 4: git_text, load_external_requirements, read_catalog_at | 1 |
test_a_present_parent_is_checked_and_a_broken_link_is_a_violation | passed | measured | 3 of 4: git_text, load_external_requirements, read_catalog_at | 1 |
test_an_absent_parent_is_reported_unchecked_not_refused | passed | measured | 3 of 4: git_text, load_external_requirements, read_catalog_at | 1 |
test_a_url_is_refused_by_name | passed | measured | 1 of 4: read_catalog_at | 1 |
test_the_wiki_and_the_gate_read_catalogues_through_one_reader | passed | measured | 1 of 4: read_catalog_at | 1 |
test_a_sub_catalog_is_read_at_its_pin | passed | measured | 2 of 4: git_text, read_catalog_at | 2 |
test_evidence_is_withheld_unless_the_index_is_at_the_pin | passed | measured | 1 of 4: git_text | 2 |
test_a_requirement_implemented_by_a_dependency_at_its_pin_is_covered_via_it | passed | measured | 2 of 4: git_text, read_catalog_at | 3 |
test_a_catalog_that_moved_since_its_pin_fails_check | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_dependency_catalogue_is_read_at_its_pin | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_dependency_requirement_implemented_here_is_served_not_unreached | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_repository_cycle_terminates | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_rule_must_name_known_requirements | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_tagged_requirement_without_a_catalogue_entry_is_a_root | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_an_indexed_dependency_carries_its_trace | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_an_unknown_dependency_carries_no_evidence_and_links_its_checkout | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_check_refuses_a_reference_to_an_undeclared_node | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_one_repository_pinned_twice_is_a_conflict | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_the_tree_is_composed_transitively_and_namespaced | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_the_wiki_tree_follows_a_serves_link | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_unreached_and_dangling_are_reported | passed | measured | 2 of 4: git_text, read_catalog_at | 4 |
test_a_markdown_wiki_with_pinned_catalogues_has_the_product_trace_page | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_a_requirement_with_a_page_here_links_to_it | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_check_reports_dangling_links_and_pin_conflicts | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_the_markdown_output_carries_the_product_trace | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_the_page_draws_the_tree_with_each_rows_evidence_state | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_the_page_obeys_the_audience | passed | measured | 2 of 4: git_text, read_catalog_at | 5 |
test_the_cli_takes_an_out_of_tree_config | passed | measured | 2 of 4: git_text, read_catalog_at | 6 |
test_a_model_no_code_realises_gets_no_page | passed | measured | 2 of 4: git_text, read_catalog_at | 7 |
test_a_repository_with_pinned_catalogues_gets_the_product_trace | passed | measured | 2 of 4: git_text, read_catalog_at | 7 |
test_the_site_names_a_declared_report_it_could_not_read | passed | measured | 2 of 4: git_text, read_catalog_at | 7 |
test_the_site_shows_nodes_rules_catalogs_and_mutations | passed | measured | 2 of 4: git_text, read_catalog_at | 7 |
test_versioned_builds_and_a_diff_between_them | passed | measured | 2 of 4: git_text, read_catalog_at | 7 |
Reached through calls
99 tests: 99 passed
99 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_no_req_ids_skips | passed | inferred | 1 of 4: _uncheckable | 2 |
test_stale_req_violation | passed | inferred | 1 of 4: _uncheckable | 2 |
test_valid_req_no_violation | passed | inferred | 1 of 4: _uncheckable | 2 |
test_an_exempt_status_is_listed_not_counted_as_a_gap | passed | inferred | 2 of 4: git_text, read_catalog_at | 3 |
test_analyze_coverage_structure | passed | inferred | 2 of 4: git_text, read_catalog_at | 3 |
test_coverage_treats_a_declaration_and_its_definition_as_one | passed | inferred | 2 of 4: git_text, read_catalog_at | 3 |
test_off_by_default_nothing_changes | passed | inferred | 2 of 4: git_text, read_catalog_at | 3 |
test_without_exempt_status_nothing_is_exempt | passed | inferred | 2 of 4: git_text, read_catalog_at | 3 |
test_a_broken_toolchain_file_is_reported_not_fatal | passed | inferred | 1 of 4: _uncheckable | 3 |
test_all_checks_run | passed | inferred | 1 of 4: _uncheckable | 3 |
test_binary_named_as_source_is_skipped | passed | inferred | 1 of 4: _uncheckable | 3 |
test_clew_specific_ignores_apply_to_the_gate | passed | inferred | 1 of 4: _uncheckable | 3 |
test_decorative_triggers_presence_violation | passed | inferred | 1 of 4: _uncheckable | 3 |
test_docstring_satisfies_req_tag | passed | inferred | 1 of 4: _uncheckable | 3 |
test_docstring_tags_satisfy_presence | passed | inferred | 1 of 4: _uncheckable | 3 |
test_documented_file_no_violations | passed | inferred | 1 of 4: _uncheckable | 3 |
test_excluded_file | passed | inferred | 1 of 4: _uncheckable | 3 |
test_excluded_path_is_absent_and_gate_skips_it | passed | inferred | 1 of 4: _uncheckable | 3 |
test_fixture_violations | passed | inferred | 1 of 4: _uncheckable | 3 |
test_fully_documented_python | passed | inferred | 1 of 4: _uncheckable | 3 |
test_inner_doc_satisfies_the_file_block_without_at_file | passed | inferred | 1 of 4: _uncheckable | 3 |
test_javascript_extensions | passed | inferred | 1 of 4: _uncheckable | 3 |
test_missing_file_block_suggests_inner_doc | passed | inferred | 1 of 4: _uncheckable | 3 |
test_nested_lookalike_path_agrees | passed | inferred | 1 of 4: _uncheckable | 3 |
test_no_false_positives | passed | inferred | 1 of 4: _uncheckable | 3 |
test_no_false_positives_with_attributes | passed | inferred | 1 of 4: _uncheckable | 3 |
test_only_definitions_checked | passed | inferred | 1 of 4: _uncheckable | 3 |
test_opt_in | passed | inferred | 1 of 4: _uncheckable | 3 |
test_presence_message_c_style_for_c_file | passed | inferred | 1 of 4: _uncheckable | 3 |
test_presence_message_includes_return_for_non_void | passed | inferred | 1 of 4: _uncheckable | 3 |
test_presence_message_omits_return_for_void | passed | inferred | 1 of 4: _uncheckable | 3 |
test_presence_message_python_style | passed | inferred | 1 of 4: _uncheckable | 3 |
test_require_return_bites_only_on_valued_annotations | passed | inferred | 1 of 4: _uncheckable | 3 |
test_return_is_not_required_for_rust | passed | inferred | 1 of 4: _uncheckable | 3 |
test_return_requirement_can_be_turned_back_on | passed | inferred | 1 of 4: _uncheckable | 3 |
test_rust_is_opt_in | passed | inferred | 1 of 4: _uncheckable | 3 |
test_toolchain_ignore_paths_skip_validation | passed | inferred | 1 of 4: _uncheckable | 3 |
test_tsx_file_uses_typescript_config | passed | inferred | 1 of 4: _uncheckable | 3 |
test_unknown_extension_skipped | passed | inferred | 1 of 4: _uncheckable | 3 |
test_validate_file_python | passed | inferred | 1 of 4: _uncheckable | 3 |
test_violations | passed | inferred | 1 of 4: _uncheckable | 3 |
test_without_toolchain_files_everything_is_checked | passed | inferred | 1 of 4: _uncheckable | 3 |
test_a_declared_docs_glob_that_matches_nothing_is_still_reported | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_a_default_docs_glob_that_matches_nothing_is_not_a_problem | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_before_tests_a_report_a_run_produces_is_not_yet_required | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_check_names_every_missing_import | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_check_names_every_problem | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_check_passes_a_valid_section_and_imports_no_sphinx | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_check_refuses_an_unknown_palette_token | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_with_every_gap_exempt_the_gate_passes_and_still_names_them | passed | inferred | 2 of 4: git_text, read_catalog_at | 4 |
test_a_cpp_member_declaration_is_checked_too | passed | inferred | 1 of 4: _uncheckable | 4 |
test_a_dead_req_on_a_documented_declaration_is_refused | passed | inferred | 1 of 4: _uncheckable | 4 |
test_a_declaration_does_not_need_its_own_req | passed | inferred | 1 of 4: _uncheckable | 4 |
test_a_documented_declaration_needs_its_version | passed | inferred | 1 of 4: _uncheckable | 4 |
test_an_undocumented_declaration_is_not_a_finding | passed | inferred | 1 of 4: _uncheckable | 4 |
test_class_level_block_does_not_leak_to_first_method | passed | inferred | 1 of 4: _uncheckable | 4 |
test_excludes_are_globs_and_a_regex_says_so | passed | inferred | 1 of 4: _uncheckable | 4 |
test_first_method_after_class_docstring_still_found | passed | inferred | 1 of 4: _uncheckable | 4 |
test_first_method_directly_after_class_line | passed | inferred | 1 of 4: _uncheckable | 4 |
test_later_method_still_found | passed | inferred | 1 of 4: _uncheckable | 4 |
test_nested_class_first_method | passed | inferred | 1 of 4: _uncheckable | 4 |
test_a_markdown_build_writes_the_summary_where_asked | passed | inferred | 2 of 4: git_text, read_catalog_at | 5 |
test_an_unknown_flavour_is_refused | passed | inferred | 2 of 4: git_text, read_catalog_at | 5 |
test_ado_flavour_blocks_order_and_links | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_check_refresh_brings_the_index_current_first | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_github_flavour_pages_and_diagrams | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_creates_the_output_directory | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_prints_the_trace | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_flow_verb_prints_svg | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_markdown_obeys_the_audience | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 2 of 4: git_text, read_catalog_at | 6 |
test_a_build_writes_the_summary_beside_the_site | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_partner_site_bundles_no_body_on_symbol_pages | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_partner_site_carries_no_call_text | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_partner_site_lists_no_assertions | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_public_site_keeps_requirement_text_off_the_requirement_page | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_an_audience_that_excludes_bodies_gets_none | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_an_imported_trace_is_drawn_over_its_test_flow | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_build_writes_a_self_contained_site | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_exports_obey_the_audience | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_needs_json_contributes_requirements | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_versions_burn_down_toward_roadmap_milestones | passed | inferred | 2 of 4: git_text, read_catalog_at | 7 |
test_a_failed_fetch_is_said_not_shown_as_no_issues | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_not | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_a_page_marks_the_branch_its_recorded_run_failed_on | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_a_running_hub_is_opened_instead_and_a_dead_one_ignored | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_an_empty_report_is_a_measured_zero | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_change_impact_follows_a_changed_function_to_requirements_and_flows | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_open_issues_reach_the_requirement_and_its_group | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_the_impact_page_links_the_map_change_lens | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_without_a_hub_the_static_site_is_built_and_opened | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |
test_without_a_report_the_change_is_not_measured | passed | inferred | 2 of 4: git_text, read_catalog_at | 8 |