"""AWOOOI product onboarding guard source."""

from __future__ import annotations

from typing import Any

from src.services.awoooi_onboarding_source_contracts import source_ready_payload

_SCHEMA_VERSION = "awoooi_product_onboarding_guard_v1"


def load_latest_awoooi_product_onboarding_guard() -> dict[str, Any]:
    """Return the warning-only onboarding guard source."""
    return source_ready_payload(
        schema_version=_SCHEMA_VERSION,
        source_id="product_onboarding_guard_service",
        status="guard_source_ready_warning_only",
        readback={
            "guard_mode": "warning_only",
            "strict_blocking_enabled": False,
            "hook_enabled_count": 0,
            "checked_boundaries": [
                "gitea_dev_baseline",
                "security_contract_evidence",
                "runtime_readback",
            ],
        },
        next_actions=[
            "keep_guard_warning_only_until_apply_gate",
            "surface_missing_product_baseline_as_evidence",
        ],
    )
