"""Compatibility checks for execution-contract type import paths."""

from anima.core.execution import contracts as execution_contracts
from anima.core.schemas import models as schema_models


def test_schema_models_exports_execution_contract_types() -> None:
    """Legacy anima.core.schemas.models path resolves moved execution symbols."""
    assert schema_models.ExecutionIntent is execution_contracts.ExecutionIntent
    assert (
        schema_models.ResolvedExecutionContract
        is execution_contracts.ResolvedExecutionContract
    )
    assert (
        schema_models.ExecutionSessionState is execution_contracts.ExecutionSessionState
    )
    assert schema_models.ResolvedRuntime is execution_contracts.ResolvedRuntime
    assert (
        schema_models.ResolvedLifecyclePolicy
        is execution_contracts.ResolvedLifecyclePolicy
    )
