Skip to content

Detection Layer

dagster_authkit.core.detection_layer

API Compatibility Detection Layer

Checks if the internal Dagster API has changed in ways that would break monkey-patching. Critical to prevent silent failures.

verify_dagster_api_compatibility

verify_dagster_api_compatibility()

Checks if the internal Dagster API is compatible.

Returns:

Type Description
Tuple[bool, Optional[str]]

Tuple[bool, Optional[str]]: (is_compatible, error_message)

get_compatibility_report

get_compatibility_report()

Generates detailed compatibility report.

Returns:

Name Type Description
str str

Formatted report

print_compatibility_warning

print_compatibility_warning()

Prints compatibility warning if needed.

check_and_exit_if_incompatible

check_and_exit_if_incompatible()

Checks compatibility and exits with error if incompatible. Useful for CI/CD.