dependency-abi-compat-guard
Purpose
Prevent and repair dependency ABI/runtime compatibility breaks.
Trigger when
- •Import-time errors mention binary/ABI mismatch.
- •
numpy/pandas/sklearnstack fails after package updates. - •PyTorch/ML ecosystem imports degrade after dependency changes.
Workflow
- •Capture versions:
python -c "import numpy, pandas, sklearn; ..." - •Detect mismatch signature:
ValueError: numpy.dtype size changed ... - •Reinstall compatible pinned set in env via
uv:uv pip install --force-reinstall <compatible-versions> - •Verify imports and targeted tests.
- •Record final versions in remediation notes.
Outputs
- •Stable import/runtime compatibility
- •Version set used to restore compatibility
Guardrails
- •Use
uvonly. - •Avoid ad-hoc mixed package managers in the same env.