REQ-DDB-GUARD-002: Version staleness detection

← Requirements

What it requires

  1. Modified function body without version tag change produces staleness violation
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate2

See it on the map

How it is met

implemented byresults (77 tests)_pair_by_namecheck_version_staleness77 passed77 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (77)

Linked directly

32 tests: 32 passed

32 passed
testresultlinked byimplementers exercisedcalls away
test_precommit_mode_flags_a_stale_rust_functionpassedmeasured2 of 2: _pair_by_name, check_version_staleness—
test_unchanged_ifdef_else_duplicate_is_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness—
test_a_symlinked_impact_directory_is_refusedpassedmeasured1 of 2: check_version_staleness—
test_default_subcommand_with_filespassedmeasured1 of 2: check_version_staleness—
test_precommit_with_impactpassedmeasured1 of 2: check_version_staleness—
test_the_pre_commit_hook_runs_the_coverage_gatepassedmeasured1 of 2: check_version_staleness—
test_body_changed_version_bumpedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_body_changed_version_not_updatedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_body_unchanged_no_violationpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_modified_overload_flags_only_that_overloadpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_new_function_not_in_head_skippedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_new_function_same_name_different_body_shape_still_newpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_no_doxygen_skippedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_no_version_tag_skippedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_reviewed_marker_clears_stalenesspassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_stale_version_detectedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_staleness_detects_an_unbumped_rust_bodypassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_unknown_version_marker_rejectedpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_unmodified_overloads_no_violationpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_updated_version_no_violationpassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_version_bump_still_workspassedmeasured2 of 2: _pair_by_name, check_version_staleness1
test_no_head_functions_no_violationpassedmeasured1 of 2: check_version_staleness1
test_staleness_disabledpassedmeasured1 of 2: check_version_staleness1
test_a_changed_signature_with_a_bump_is_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_a_changed_signature_without_a_bump_is_stalepassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_added_copy_leaves_existing_copies_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_an_overload_set_keeps_the_exact_matchpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_first_copy_edited_with_bump_is_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_first_copy_edited_without_bump_differing_versions_is_flaggedpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_removed_copy_leaves_remaining_copy_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_second_copy_edited_without_bump_is_flagged_alonepassedmeasured2 of 2: _pair_by_name, check_version_staleness2
test_unchanged_separate_ifdef_blocks_are_cleanpassedmeasured2 of 2: _pair_by_name, check_version_staleness2
Reached through calls

45 tests: 45 passed

45 passed
testresultlinked byimplementers exercisedcalls away
test_a_broken_toolchain_file_is_reported_not_fatalpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_all_checks_runpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_binary_named_as_source_is_skippedpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_clew_specific_ignores_apply_to_the_gatepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_decorative_triggers_presence_violationpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_docstring_satisfies_req_tagpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_docstring_tags_satisfy_presencepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_documented_file_no_violationspassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_excluded_filepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_excluded_path_is_absent_and_gate_skips_itpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_fixture_violationspassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_fully_documented_pythonpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_inner_doc_satisfies_the_file_block_without_at_filepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_javascript_extensionspassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_missing_file_block_suggests_inner_docpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_nested_lookalike_path_agreespassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_no_false_positivespassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_no_false_positives_with_attributespassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_only_definitions_checkedpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_opt_inpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_presence_message_c_style_for_c_filepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_presence_message_includes_return_for_non_voidpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_presence_message_omits_return_for_voidpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_presence_message_python_stylepassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_require_return_bites_only_on_valued_annotationspassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_return_is_not_required_for_rustpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_return_requirement_can_be_turned_back_onpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_rust_is_opt_inpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_toolchain_ignore_paths_skip_validationpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_tsx_file_uses_typescript_configpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_unknown_extension_skippedpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_validate_file_pythonpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_violationspassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_without_toolchain_files_everything_is_checkedpassedinferred2 of 2: _pair_by_name, check_version_staleness2
test_a_cpp_member_declaration_is_checked_toopassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_a_dead_req_on_a_documented_declaration_is_refusedpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_a_declaration_does_not_need_its_own_reqpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_a_documented_declaration_needs_its_versionpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_an_undocumented_declaration_is_not_a_findingpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_class_level_block_does_not_leak_to_first_methodpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_excludes_are_globs_and_a_regex_says_sopassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_first_method_after_class_docstring_still_foundpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_first_method_directly_after_class_linepassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_later_method_still_foundpassedinferred2 of 2: _pair_by_name, check_version_staleness3
test_nested_class_first_methodpassedinferred2 of 2: _pair_by_name, check_version_staleness3

Flows through it