"""Application services.

Contains service classes that orchestrate business operations.

All public symbols are importable from this package (e.g.
``from cleveragents.application.services import DecisionService``) but
are loaded lazily on first access to avoid importing the entire service
tree when only a specific submodule is needed.
"""

from __future__ import annotations

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    # Static type checkers see full symbols for autocomplete and type
    # checking while runtime import remains lazy.
    from cleveragents.application.services.acms_advanced_strategies import (
        ArceStrategy as ArceStrategy,
    )
    from cleveragents.application.services.acms_advanced_strategies import (
        PlanDecisionContextStrategy as PlanDecisionContextStrategy,
    )
    from cleveragents.application.services.acms_advanced_strategies import (
        TemporalArchaeologyStrategy as TemporalArchaeologyStrategy,
    )
    from cleveragents.application.services.acms_phase2 import (
        ContentHashDeduplicator as ContentHashDeduplicator,
    )
    from cleveragents.application.services.acms_phase2 import (
        GreedyKnapsackPacker as GreedyKnapsackPacker,
    )
    from cleveragents.application.services.acms_phase2 import (
        MaxDepthResolver as MaxDepthResolver,
    )
    from cleveragents.application.services.acms_phase2 import (
        ScorerWeights as ScorerWeights,
    )
    from cleveragents.application.services.acms_phase2 import (
        WeightedCompositeScorer as WeightedCompositeScorer,
    )
    from cleveragents.application.services.acms_phase3 import (
        ProvenancePreambleGenerator as ProvenancePreambleGenerator,
    )
    from cleveragents.application.services.acms_phase3 import (
        RelevanceCoherenceOrderer as RelevanceCoherenceOrderer,
    )
    from cleveragents.application.services.acms_skeleton_compressor import (
        DepthReductionCompressor as DepthReductionCompressor,
    )
    from cleveragents.application.services.audit_event_subscriber import (
        AuditEventSubscriber as AuditEventSubscriber,
    )
    from cleveragents.application.services.autonomy_controller import (
        AutonomyController as AutonomyController,
    )
    from cleveragents.application.services.autonomy_guardrail_service import (
        AutonomyGuardrailService as AutonomyGuardrailService,
    )
    from cleveragents.application.services.config_service import (
        ConfigEntry as ConfigEntry,
    )
    from cleveragents.application.services.config_service import (
        ConfigLevel as ConfigLevel,
    )
    from cleveragents.application.services.config_service import (
        ConfigService as ConfigService,
    )
    from cleveragents.application.services.config_service import (
        ResolvedValue as ResolvedValue,
    )
    from cleveragents.application.services.context_strategies import (
        BreadthDepthNavigatorStrategy as BreadthDepthNavigatorStrategy,
    )
    from cleveragents.application.services.context_strategies import (
        SemanticEmbeddingStrategy as SemanticEmbeddingStrategy,
    )
    from cleveragents.application.services.context_strategies import (
        SimpleKeywordStrategy as SimpleKeywordStrategy,
    )
    from cleveragents.application.services.correction_service import (
        CorrectionService as CorrectionService,
    )
    from cleveragents.application.services.cost_budget_service import (
        CostBudgetService as CostBudgetService,
    )
    from cleveragents.application.services.cross_plan_correction_service import (
        CrossPlanCorrectionService as CrossPlanCorrectionService,
    )
    from cleveragents.application.services.decision_service import (
        DecisionNotFoundError as DecisionNotFoundError,
    )
    from cleveragents.application.services.decision_service import (
        DecisionService as DecisionService,
    )
    from cleveragents.application.services.decision_service import (
        DuplicateDecisionError as DuplicateDecisionError,
    )
    from cleveragents.application.services.decision_service import (
        SequenceConflictError as SequenceConflictError,
    )
    from cleveragents.application.services.decision_service import (
        SnapshotStore as SnapshotStore,
    )
    from cleveragents.application.services.decomposition_clustering import (
        ClusteringStrategy as ClusteringStrategy,
    )
    from cleveragents.application.services.decomposition_graph import (
        DependencyClosureComputer as DependencyClosureComputer,
    )
    from cleveragents.application.services.decomposition_models import (
        ClusterStrategy as ClusterStrategy,
    )
    from cleveragents.application.services.decomposition_models import (
        DecompositionConfig as DecompositionConfig,
    )
    from cleveragents.application.services.decomposition_models import (
        DecompositionNode as DecompositionNode,
    )
    from cleveragents.application.services.decomposition_models import (
        DecompositionResult as DecompositionResult,
    )
    from cleveragents.application.services.decomposition_models import (
        DependencyEdge as DependencyEdge,
    )
    from cleveragents.application.services.decomposition_models import (
        DependencyGraph as DependencyGraph,
    )
    from cleveragents.application.services.decomposition_models import (
        DependencyType as DependencyType,
    )
    from cleveragents.application.services.decomposition_service import (
        DecompositionService as DecompositionService,
    )
    from cleveragents.application.services.execution_environment_resolver import (
        ContainerUnavailableError as ContainerUnavailableError,
    )
    from cleveragents.application.services.execution_environment_resolver import (
        ExecutionEnvironmentResolver as ExecutionEnvironmentResolver,
    )
    from cleveragents.application.services.fix_then_revalidate import (
        FixAttemptRecord as FixAttemptRecord,
    )
    from cleveragents.application.services.fix_then_revalidate import (
        FixThenRevalidateOrchestrator as FixThenRevalidateOrchestrator,
    )
    from cleveragents.application.services.fix_then_revalidate import (
        FixThenRevalidateResult as FixThenRevalidateResult,
    )
    from cleveragents.application.services.fusion_engine import (
        FusionConfig as FusionConfig,
    )
    from cleveragents.application.services.fusion_engine import (
        FusionEngine as FusionEngine,
    )
    from cleveragents.application.services.fusion_engine import (
        FusionResult as FusionResult,
    )
    from cleveragents.application.services.invariant_service import (
        InvariantService as InvariantService,
    )
    from cleveragents.application.services.multi_project_service import (
        MultiProjectService as MultiProjectService,
    )
    from cleveragents.application.services.permission_service import (
        PermissionService as PermissionService,
    )
    from cleveragents.application.services.permission_service import (
        enforce_permission as enforce_permission,
    )
    from cleveragents.application.services.permission_service import (
        get_default_permission_service as get_default_permission_service,
    )
    from cleveragents.application.services.permission_service import (
        set_default_permission_service as set_default_permission_service,
    )
    from cleveragents.application.services.plan_execution_context import (
        PlanExecutionContext as PlanExecutionContext,
    )
    from cleveragents.application.services.plan_execution_context import (
        RuntimeExecuteActor as RuntimeExecuteActor,
    )
    from cleveragents.application.services.plan_execution_context import (
        RuntimeExecuteResult as RuntimeExecuteResult,
    )
    from cleveragents.application.services.prompt_sanitizer import (
        PromptInjectionDetected as PromptInjectionDetected,
    )
    from cleveragents.application.services.prompt_sanitizer import (
        PromptSanitizer as PromptSanitizer,
    )
    from cleveragents.application.services.prompt_sanitizer import (
        SanitizationResult as SanitizationResult,
    )
    from cleveragents.application.services.repo_indexing_service import (
        RepoIndexingService as RepoIndexingService,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        APIMisuseRule as APIMisuseRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        BrokenReferenceRule as BrokenReferenceRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        DependencyCycleRule as DependencyCycleRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        DuplicateImportRule as DuplicateImportRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        MissingImportRule as MissingImportRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        MissingSymbolRule as MissingSymbolRule,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        SemanticCheckResult as SemanticCheckResult,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        SemanticValidationSeverity as SemanticValidationSeverity,
    )
    from cleveragents.application.services.semantic_validation_rules import (
        SyntaxCheckRule as SyntaxCheckRule,
    )
    from cleveragents.application.services.semantic_validation_service import (
        NormalisedOutputDict as NormalisedOutputDict,
    )
    from cleveragents.application.services.semantic_validation_service import (
        PipelineResultDict as PipelineResultDict,
    )
    from cleveragents.application.services.semantic_validation_service import (
        SemanticRuleRegistry as SemanticRuleRegistry,
    )
    from cleveragents.application.services.semantic_validation_service import (
        SemanticValidationCache as SemanticValidationCache,
    )
    from cleveragents.application.services.semantic_validation_service import (
        SemanticValidationRule as SemanticValidationRule,
    )
    from cleveragents.application.services.semantic_validation_service import (
        SemanticValidationService as SemanticValidationService,
    )
    from cleveragents.application.services.semantic_validation_service import (
        create_default_registry as create_default_registry,
    )
    from cleveragents.application.services.semantic_validation_service import (
        map_severity_to_mode as map_severity_to_mode,
    )
    from cleveragents.application.services.semantic_validation_service import (
        resolve_severity as resolve_severity,
    )
    from cleveragents.application.services.service_retry_wiring import (
        ServiceRetryWiring as ServiceRetryWiring,
    )
    from cleveragents.application.services.session_service import (
        PersistentSessionService as PersistentSessionService,
    )
    from cleveragents.application.services.skeleton_compressor import (
        CompressionResult as CompressionResult,
    )
    from cleveragents.application.services.skeleton_compressor import (
        SkeletonCompressorService as SkeletonCompressorService,
    )
    from cleveragents.application.services.skill_registry_service import (
        SkillRegistryService as SkillRegistryService,
    )
    from cleveragents.application.services.strategy_coordinator import (
        CoordinationResult as CoordinationResult,
    )
    from cleveragents.application.services.strategy_coordinator import (
        CoordinatorConfig as CoordinatorConfig,
    )
    from cleveragents.application.services.strategy_coordinator import (
        StrategyCoordinator as StrategyCoordinator,
    )
    from cleveragents.application.services.strategy_registry import (
        StrategyNotFoundError as StrategyNotFoundError,
    )
    from cleveragents.application.services.strategy_registry import (
        StrategyRegistrationError as StrategyRegistrationError,
    )
    from cleveragents.application.services.strategy_registry import (
        StrategyRegistry as StrategyRegistry,
    )
    from cleveragents.application.services.subplan_execution_service import (
        SubplanExecutionOutput as SubplanExecutionOutput,
    )
    from cleveragents.application.services.subplan_execution_service import (
        SubplanExecutionResult as SubplanExecutionResult,
    )
    from cleveragents.application.services.subplan_execution_service import (
        SubplanExecutionService as SubplanExecutionService,
    )
    from cleveragents.application.services.subplan_merge_service import (
        FileMergeOutcome as FileMergeOutcome,
    )
    from cleveragents.application.services.subplan_merge_service import (
        MergeConflictError as MergeConflictError,
    )
    from cleveragents.application.services.subplan_merge_service import (
        SubplanMergeResult as SubplanMergeResult,
    )
    from cleveragents.application.services.subplan_merge_service import (
        SubplanMergeService as SubplanMergeService,
    )
    from cleveragents.application.services.subplan_service import (
        SpawnEntry as SpawnEntry,
    )
    from cleveragents.application.services.subplan_service import (
        SpawnMetadata as SpawnMetadata,
    )
    from cleveragents.application.services.subplan_service import (
        SpawnResult as SpawnResult,
    )
    from cleveragents.application.services.subplan_service import (
        SpawnValidationError as SpawnValidationError,
    )
    from cleveragents.application.services.subplan_service import (
        SpawnValidationResult as SpawnValidationResult,
    )
    from cleveragents.application.services.subplan_service import (
        SubplanService as SubplanService,
    )
    from cleveragents.application.services.temporal_service import (
        TemporalService as TemporalService,
    )
    from cleveragents.application.services.tool_registry_service import (
        ToolRegistryService as ToolRegistryService,
    )
    from cleveragents.application.services.trace_service import (
        TraceService as TraceService,
    )
    from cleveragents.application.services.uko_indexer import (
        UKOIndexer as UKOIndexer,
    )
    from cleveragents.application.services.uko_indexer_protocols import (
        ContentReader as ContentReader,
    )
    from cleveragents.application.services.uko_indexer_protocols import (
        DefaultLifecycleHook as DefaultLifecycleHook,
    )
    from cleveragents.application.services.uko_indexer_protocols import (
        IndexLifecycleHook as IndexLifecycleHook,
    )
    from cleveragents.application.services.uko_indexer_protocols import (
        LocationContentReader as LocationContentReader,
    )
    from cleveragents.application.services.uko_loader import (
        UKOLoader as UKOLoader,
    )
    from cleveragents.application.services.uko_loader import (
        UKOValidationError as UKOValidationError,
    )
    from cleveragents.application.services.validation_apply import (
        ApplyValidationGate as ApplyValidationGate,
    )
    from cleveragents.application.services.validation_apply import (
        ApplyValidationResult as ApplyValidationResult,
    )
    from cleveragents.application.services.validation_apply import (
        ApplyValidationSummary as ApplyValidationSummary,
    )
    from cleveragents.application.services.validation_apply import (
        AttachmentScope as AttachmentScope,
    )
    from cleveragents.application.services.validation_apply import (
        DefaultValidationRunner as DefaultValidationRunner,
    )
    from cleveragents.application.services.validation_apply import (
        ValidationAttachment as ValidationAttachment,
    )
    from cleveragents.application.services.validation_apply import (
        ValidationRunner as ValidationRunner,
    )
    from cleveragents.application.services.validation_pipeline import (
        ValidationCommand as ValidationCommand,
    )
    from cleveragents.application.services.validation_pipeline import (
        ValidationPipeline as ValidationPipeline,
    )
    from cleveragents.application.services.validation_pipeline import (
        ValidationResult as ValidationResult,
    )
    from cleveragents.application.services.validation_pipeline import (
        ValidationSummary as ValidationSummary,
    )

# ---- Lazy runtime import mapping ----------------------------------------
# Maps attribute name → (submodule, attribute_name).  Importing any symbol
# from this package at runtime triggers only the specific submodule that
# owns it, instead of importing every service module eagerly.

_LAZY_IMPORTS: dict[str, tuple[str, str]] = {
    "ArceStrategy": ("acms_advanced_strategies", "ArceStrategy"),
    "PlanDecisionContextStrategy": (
        "acms_advanced_strategies",
        "PlanDecisionContextStrategy",
    ),
    "TemporalArchaeologyStrategy": (
        "acms_advanced_strategies",
        "TemporalArchaeologyStrategy",
    ),
    "ContentHashDeduplicator": ("acms_phase2", "ContentHashDeduplicator"),
    "GreedyKnapsackPacker": ("acms_phase2", "GreedyKnapsackPacker"),
    "MaxDepthResolver": ("acms_phase2", "MaxDepthResolver"),
    "ScorerWeights": ("acms_phase2", "ScorerWeights"),
    "WeightedCompositeScorer": ("acms_phase2", "WeightedCompositeScorer"),
    "DepthReductionCompressor": (
        "acms_skeleton_compressor",
        "DepthReductionCompressor",
    ),
    "ProvenancePreambleGenerator": ("acms_phase3", "ProvenancePreambleGenerator"),
    "RelevanceCoherenceOrderer": ("acms_phase3", "RelevanceCoherenceOrderer"),
    "AuditEventSubscriber": ("audit_event_subscriber", "AuditEventSubscriber"),
    "AutonomyController": ("autonomy_controller", "AutonomyController"),
    "AutonomyGuardrailService": (
        "autonomy_guardrail_service",
        "AutonomyGuardrailService",
    ),
    "ConfigEntry": ("config_service", "ConfigEntry"),
    "ConfigLevel": ("config_service", "ConfigLevel"),
    "ConfigService": ("config_service", "ConfigService"),
    "ResolvedValue": ("config_service", "ResolvedValue"),
    "BreadthDepthNavigatorStrategy": (
        "context_strategies",
        "BreadthDepthNavigatorStrategy",
    ),
    "SemanticEmbeddingStrategy": ("context_strategies", "SemanticEmbeddingStrategy"),
    "SimpleKeywordStrategy": ("context_strategies", "SimpleKeywordStrategy"),
    "CorrectionService": ("correction_service", "CorrectionService"),
    "CostBudgetService": ("cost_budget_service", "CostBudgetService"),
    "CrossPlanCorrectionService": (
        "cross_plan_correction_service",
        "CrossPlanCorrectionService",
    ),
    "DecisionNotFoundError": ("decision_service", "DecisionNotFoundError"),
    "DecisionService": ("decision_service", "DecisionService"),
    "DuplicateDecisionError": ("decision_service", "DuplicateDecisionError"),
    "SequenceConflictError": ("decision_service", "SequenceConflictError"),
    "SnapshotStore": ("decision_service", "SnapshotStore"),
    "ClusteringStrategy": ("decomposition_clustering", "ClusteringStrategy"),
    "DependencyClosureComputer": ("decomposition_graph", "DependencyClosureComputer"),
    "ClusterStrategy": ("decomposition_models", "ClusterStrategy"),
    "DecompositionConfig": ("decomposition_models", "DecompositionConfig"),
    "DecompositionNode": ("decomposition_models", "DecompositionNode"),
    "DecompositionResult": ("decomposition_models", "DecompositionResult"),
    "DependencyEdge": ("decomposition_models", "DependencyEdge"),
    "DependencyGraph": ("decomposition_models", "DependencyGraph"),
    "DependencyType": ("decomposition_models", "DependencyType"),
    "DecompositionService": ("decomposition_service", "DecompositionService"),
    "ContainerUnavailableError": (
        "execution_environment_resolver",
        "ContainerUnavailableError",
    ),
    "ExecutionEnvironmentResolver": (
        "execution_environment_resolver",
        "ExecutionEnvironmentResolver",
    ),
    "FixAttemptRecord": ("fix_then_revalidate", "FixAttemptRecord"),
    "FixThenRevalidateOrchestrator": (
        "fix_then_revalidate",
        "FixThenRevalidateOrchestrator",
    ),
    "FixThenRevalidateResult": ("fix_then_revalidate", "FixThenRevalidateResult"),
    "FusionConfig": ("fusion_engine", "FusionConfig"),
    "FusionEngine": ("fusion_engine", "FusionEngine"),
    "FusionResult": ("fusion_engine", "FusionResult"),
    "InvariantService": ("invariant_service", "InvariantService"),
    "MultiProjectService": ("multi_project_service", "MultiProjectService"),
    "PermissionService": ("permission_service", "PermissionService"),
    "enforce_permission": ("permission_service", "enforce_permission"),
    "get_default_permission_service": (
        "permission_service",
        "get_default_permission_service",
    ),
    "set_default_permission_service": (
        "permission_service",
        "set_default_permission_service",
    ),
    "PlanExecutionContext": ("plan_execution_context", "PlanExecutionContext"),
    "RuntimeExecuteActor": ("plan_execution_context", "RuntimeExecuteActor"),
    "RuntimeExecuteResult": ("plan_execution_context", "RuntimeExecuteResult"),
    "PromptInjectionDetected": ("prompt_sanitizer", "PromptInjectionDetected"),
    "PromptSanitizer": ("prompt_sanitizer", "PromptSanitizer"),
    "SanitizationResult": ("prompt_sanitizer", "SanitizationResult"),
    "RepoIndexingService": ("repo_indexing_service", "RepoIndexingService"),
    "APIMisuseRule": ("semantic_validation_rules", "APIMisuseRule"),
    "BrokenReferenceRule": ("semantic_validation_rules", "BrokenReferenceRule"),
    "DependencyCycleRule": ("semantic_validation_rules", "DependencyCycleRule"),
    "DuplicateImportRule": ("semantic_validation_rules", "DuplicateImportRule"),
    "MissingImportRule": ("semantic_validation_rules", "MissingImportRule"),
    "MissingSymbolRule": ("semantic_validation_rules", "MissingSymbolRule"),
    "SemanticCheckResult": ("semantic_validation_rules", "SemanticCheckResult"),
    "SemanticValidationSeverity": (
        "semantic_validation_rules",
        "SemanticValidationSeverity",
    ),
    "SyntaxCheckRule": ("semantic_validation_rules", "SyntaxCheckRule"),
    "NormalisedOutputDict": ("semantic_validation_service", "NormalisedOutputDict"),
    "PipelineResultDict": ("semantic_validation_service", "PipelineResultDict"),
    "SemanticRuleRegistry": ("semantic_validation_service", "SemanticRuleRegistry"),
    "SemanticValidationCache": (
        "semantic_validation_service",
        "SemanticValidationCache",
    ),
    "SemanticValidationRule": ("semantic_validation_service", "SemanticValidationRule"),
    "SemanticValidationService": (
        "semantic_validation_service",
        "SemanticValidationService",
    ),
    "create_default_registry": (
        "semantic_validation_service",
        "create_default_registry",
    ),
    "map_severity_to_mode": ("semantic_validation_service", "map_severity_to_mode"),
    "resolve_severity": ("semantic_validation_service", "resolve_severity"),
    "ServiceRetryWiring": ("service_retry_wiring", "ServiceRetryWiring"),
    "PersistentSessionService": ("session_service", "PersistentSessionService"),
    "CompressionResult": ("skeleton_compressor", "CompressionResult"),
    "SkeletonCompressorService": ("skeleton_compressor", "SkeletonCompressorService"),
    "SkillRegistryService": ("skill_registry_service", "SkillRegistryService"),
    "CoordinationResult": ("strategy_coordinator", "CoordinationResult"),
    "CoordinatorConfig": ("strategy_coordinator", "CoordinatorConfig"),
    "StrategyCoordinator": ("strategy_coordinator", "StrategyCoordinator"),
    "StrategyNotFoundError": ("strategy_registry", "StrategyNotFoundError"),
    "StrategyRegistrationError": ("strategy_registry", "StrategyRegistrationError"),
    "StrategyRegistry": ("strategy_registry", "StrategyRegistry"),
    "SubplanExecutionOutput": ("subplan_execution_service", "SubplanExecutionOutput"),
    "SubplanExecutionResult": ("subplan_execution_service", "SubplanExecutionResult"),
    "SubplanExecutionService": ("subplan_execution_service", "SubplanExecutionService"),
    "FileMergeOutcome": ("subplan_merge_service", "FileMergeOutcome"),
    "MergeConflictError": ("subplan_merge_service", "MergeConflictError"),
    "SubplanMergeResult": ("subplan_merge_service", "SubplanMergeResult"),
    "SubplanMergeService": ("subplan_merge_service", "SubplanMergeService"),
    "SpawnEntry": ("subplan_service", "SpawnEntry"),
    "SpawnMetadata": ("subplan_service", "SpawnMetadata"),
    "SpawnResult": ("subplan_service", "SpawnResult"),
    "SpawnValidationError": ("subplan_service", "SpawnValidationError"),
    "SpawnValidationResult": ("subplan_service", "SpawnValidationResult"),
    "SubplanService": ("subplan_service", "SubplanService"),
    "TemporalService": ("temporal_service", "TemporalService"),
    "ToolRegistryService": ("tool_registry_service", "ToolRegistryService"),
    "TraceService": ("trace_service", "TraceService"),
    "UKOIndexer": ("uko_indexer", "UKOIndexer"),
    "ContentReader": ("uko_indexer_protocols", "ContentReader"),
    "DefaultLifecycleHook": ("uko_indexer_protocols", "DefaultLifecycleHook"),
    "IndexLifecycleHook": ("uko_indexer_protocols", "IndexLifecycleHook"),
    "LocationContentReader": ("uko_indexer_protocols", "LocationContentReader"),
    "UKOLoader": ("uko_loader", "UKOLoader"),
    "UKOValidationError": ("uko_loader", "UKOValidationError"),
    "ApplyValidationGate": ("validation_apply", "ApplyValidationGate"),
    "ApplyValidationResult": ("validation_apply", "ApplyValidationResult"),
    "ApplyValidationSummary": ("validation_apply", "ApplyValidationSummary"),
    "AttachmentScope": ("validation_apply", "AttachmentScope"),
    "DefaultValidationRunner": ("validation_apply", "DefaultValidationRunner"),
    "ValidationAttachment": ("validation_apply", "ValidationAttachment"),
    "ValidationRunner": ("validation_apply", "ValidationRunner"),
    "ValidationCommand": ("validation_pipeline", "ValidationCommand"),
    "ValidationPipeline": ("validation_pipeline", "ValidationPipeline"),
    "ValidationResult": ("validation_pipeline", "ValidationResult"),
    "ValidationSummary": ("validation_pipeline", "ValidationSummary"),
}


def __getattr__(name: str):
    """Lazy-load service symbols on first attribute access."""
    if name in _LAZY_IMPORTS:
        submodule, attr = _LAZY_IMPORTS[name]
        import importlib

        mod = importlib.import_module(
            f".{submodule}", "cleveragents.application.services"
        )
        value = getattr(mod, attr)
        globals()[name] = value
        return value
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


__all__ = sorted(_LAZY_IMPORTS.keys())
