REQ-DDB-GUARD-015: Machine-readable consumer contract

← Requirements

What it requires

  1. config --schema emits the schema, defaults, catalog constants and a contract version; config --effective emits the merged config and what it resolved to; files emits the same path set the gate walks together with the exclude patterns that produced it
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate8

See it on the map

How it is met

implemented bytestsresult_effective_requirements_encode_schema_run_config_command_run_files_command_strip_privatebuild_effective_contractbuild_files_contractbuild_schema_contracttest_adding_a_schema_key_shows_up_without_touching_contract_pypassedtest_carries_contract_versionpassedtest_catalog_block_envelopepassedtest_catalog_constants_match_the_modulepassedtest_count_matches_file_listpassedtest_effective_envelopepassedtest_emitted_config_loadspassedtest_excluded_path_is_absent_and_gate_skips_itpassedtest_excluded_paths_are_absentpassedtest_exposes_exclude_patternspassedtest_exposes_req_patternpassedtest_files_contract_reports_and_applies_toolchain_ignorespassedtest_files_envelopepassedtest_id_column_scoped_to_flat_formatspassedtest_is_json_serializablepassedtest_names_the_config_file_and_sectionpassedtest_nested_lookalike_path_agreespassedtest_open_nodes_are_marked_not_droppedpassedtest_opt_in_languages_are_published_but_not_in_forcepassedtest_private_keys_are_strippedpassedtest_reports_declared_requirementspassedtest_reports_the_patterns_that_produced_the_setpassedtest_reports_undeclared_requirementspassedtest_scalar_validate_keys_all_appearpassedtest_schema_envelopepassedtest_the_schema_contract_names_the_file_and_sectionpassedtest_trace_section_absentpassedtest_types_encoded_by_namepassedtest_without_excludes_test_files_are_includedpassed

Show on the map

Implemented by

Tests (29)

Linked directly

29 tests: 29 passed

29 passed
testresultlinked byimplementers exercisedcalls away
test_is_json_serializablepassedmeasured6 of 81
test_adding_a_schema_key_shows_up_without_touching_contract_pypassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_effective_envelopepassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_emitted_config_loadspassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_exposes_exclude_patternspassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_exposes_req_patternpassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_private_keys_are_strippedpassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_reports_declared_requirementspassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_reports_undeclared_requirementspassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_scalar_validate_keys_all_appearpassedmeasured3 of 8: _effective_requirements, _strip_private, build_effective_contract1
test_carries_contract_versionpassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_catalog_block_envelopepassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_catalog_constants_match_the_modulepassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_id_column_scoped_to_flat_formatspassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_names_the_config_file_and_sectionpassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_open_nodes_are_marked_not_droppedpassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_opt_in_languages_are_published_but_not_in_forcepassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_schema_envelopepassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_the_schema_contract_names_the_file_and_sectionpassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_trace_section_absentpassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_types_encoded_by_namepassedmeasured2 of 8: _encode_schema, build_schema_contract1
test_count_matches_file_listpassedmeasured1 of 8: build_files_contract1
test_excluded_path_is_absent_and_gate_skips_itpassedmeasured1 of 8: build_files_contract1
test_excluded_paths_are_absentpassedmeasured1 of 8: build_files_contract1
test_files_contract_reports_and_applies_toolchain_ignorespassedmeasured1 of 8: build_files_contract1
test_files_envelopepassedmeasured1 of 8: build_files_contract1
test_nested_lookalike_path_agreespassedmeasured1 of 8: build_files_contract1
test_reports_the_patterns_that_produced_the_setpassedmeasured1 of 8: build_files_contract1
test_without_excludes_test_files_are_includedpassedmeasured1 of 8: build_files_contract1

Flows through it