{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/robot-policy-skill",
    "title": "Robot Policy / Embodied-AI Skill",
    "type": "object",
    "required": [
        "skill_name",
        "robot_platforms",
        "policy_hash"
    ],
    "properties": {
        "skill_name": {
            "title": "Skill / policy name",
            "type": "string",
            "maxLength": 1000
        },
        "robot_platforms": {
            "title": "Robot platforms",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "policy_hash": {
            "title": "Policy weights hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "training_method": {
            "title": "Training method",
            "type": "string",
            "enum": [
                "rl",
                "imitation",
                "hybrid",
                "scripted",
                "foundation-model"
            ]
        },
        "sim_to_real_validation": {
            "title": "Sim-to-real validation",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "safety_envelope": {
            "title": "Safety envelope / limits",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "certification_refs": {
            "title": "Certification references",
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "additionalProperties": true
}