"""AWOOOI Gitea onboarding warning-step owner package source."""

from __future__ import annotations

from typing import Any

from src.services.awoooi_onboarding_source_contracts import source_ready_payload

_SCHEMA_VERSION = "awoooi_gitea_onboarding_warning_step_owner_package_v1"


def load_latest_awoooi_gitea_onboarding_warning_step_owner_package() -> dict[str, Any]:
    """Return the committed owner package source for warning-step review."""
    return source_ready_payload(
        schema_version=_SCHEMA_VERSION,
        source_id="warning_step_owner_package_service",
        status="source_ready_owner_package_recorded",
        readback={
            "package_id": "awoooi-gitea-onboarding-warning-step-owner-package",
            "workflow_modification_authorized": False,
            "workflow_trigger_authorized": False,
            "required_review_items": [
                "target_workflow_template",
                "warning_only_behavior",
                "runner_pressure_guard",
                "post_copy_verifier",
            ],
            "source_refs": [
                "docs/operations/p0-cicd-baseline-source-readiness.snapshot.json",
                "ops/runner/guard-gitea-runner-pressure.py",
            ],
        },
        next_actions=[
            "validate_owner_response_preflight_before_template_copy_plan",
            "keep_warning_step_copy_blocked_until_apply_gate",
        ],
    )
