cursus.validation.alignment.validators.dependency_validator

Dependency Validator

Handles validation of dependencies between specifications including resolution, circular dependency detection, and data type consistency checks.

class DependencyValidator(validation_config=None)[source]

Bases: object

Validates dependencies between step specifications.

Features: - Enhanced dependency resolution with compatibility scoring - Circular dependency detection - Data type consistency validation - Integration with production registry for canonical name mapping

validate_dependency_resolution(specification, all_specs, spec_name)[source]

Enhanced dependency validation with compatibility scoring.

Parameters:
  • specification (Dict[str, Any]) – The specification to validate dependencies for

  • all_specs (Dict[str, Dict[str, Any]]) – Dictionary of all available specifications

  • spec_name (str) – Name of the specification being validated

Returns:

List of validation issues

Return type:

List[Dict[str, Any]]

validate_circular_dependencies(specification, all_specs, spec_name)[source]

Validate that no circular dependencies exist.

Parameters:
  • specification (Dict[str, Any]) – The specification to validate

  • all_specs (Dict[str, Dict[str, Any]]) – Dictionary of all available specifications

  • spec_name (str) – Name of the specification being validated

Returns:

List of validation issues

Return type:

List[Dict[str, Any]]

validate_dependency_data_types(specification, all_specs, spec_name)[source]

Validate data type consistency across dependency chains.

Parameters:
  • specification (Dict[str, Any]) – The specification to validate

  • all_specs (Dict[str, Dict[str, Any]]) – Dictionary of all available specifications

  • spec_name (str) – Name of the specification being validated

Returns:

List of validation issues

Return type:

List[Dict[str, Any]]

get_dependency_resolution_report(all_specs)[source]

Generate detailed dependency resolution report using production resolver.

Parameters:

all_specs (Dict[str, Dict[str, Any]]) – Dictionary of all available specifications

Returns:

Detailed resolution report

Return type:

Dict[str, Any]