"""AWOOOI new product onboarding page model source."""

from __future__ import annotations

from typing import Any

from src.services.awoooi_onboarding_source_contracts import source_ready_payload

_SCHEMA_VERSION = "awoooi_new_product_onboarding_page_model_v1"


def load_latest_awoooi_new_product_onboarding_page_model() -> dict[str, Any]:
    """Return the page model source for onboarding readiness UI."""
    return source_ready_payload(
        schema_version=_SCHEMA_VERSION,
        source_id="new_product_onboarding_page_model_service",
        status="page_model_source_ready_read_only",
        readback={
            "page_model_ready": True,
            "primary_view": "onboarding_readiness",
            "write_controls_enabled": False,
            "expected_sections": [
                "baseline_sources",
                "warning_step_gates",
                "security_contract",
                "runtime_readback",
            ],
        },
        next_actions=[
            "wire_page_model_after_read_only_api_route",
            "keep_write_controls_disabled_until_apply_gate",
        ],
    )
