"""Fail-closed shim for the retired unbound OpenCV Petri detector.

The old helper accepted arbitrary base64 images without camera identity,
calibration, artifact retention, or manual-review evidence.  Supported Petri
vision is provided by :mod:`main.petri_workflow`; this symbol remains solely
for deterministic compatibility failure without loading OpenCV/Pillow/NumPy.
"""

from __future__ import annotations

LEGACY_OPENCV_PETRI_DISABLED_MESSAGE = (
    "Legacy OpenCV Petri detection is unavailable: use the reviewed AINA "
    "Petri workflow"
)


class LegacyOpenCVPetriDisabledError(RuntimeError):
    """Raised for the retired unbound Petri detector."""


def detect_petri_dish_centers(*_args, **_kwargs):
    raise LegacyOpenCVPetriDisabledError(LEGACY_OPENCV_PETRI_DISABLED_MESSAGE)
