"""Fail-closed compatibility shim for retired ad-hoc host diagnostics.

The historical helper performed an unbounded DNS/HTTP connectivity probe,
spawned an unmanaged thread, printed to stdout, and reported root-filesystem
capacity outside the reviewed runtime status contract.  Supported diagnostics
are exposed through the bounded, secret-free WorkcellServices health snapshot.
"""

from __future__ import annotations

LEGACY_STATUS_DISABLED_MESSAGE = (
    "Legacy host diagnostics are unavailable: use the bounded AINA health "
    "and system metrics contracts"
)


class LegacyStatusDisabledError(RuntimeError):
    """Raised for each entry point of the retired diagnostics helper."""


def _disabled(*_args, **_kwargs):
    raise LegacyStatusDisabledError(LEGACY_STATUS_DISABLED_MESSAGE)


def internet_connection_checker():
    _disabled()


def get_free_storage():
    _disabled()


def check_internet():
    _disabled()


def display_internet_status():
    _disabled()
