{
  "schema_version": "1",
  "interpretation": "data_only",
  "hub_commit": "ede75c00118e9808e5099da43c26f4619cc3bc37",
  "skill_id": "pybullet-raycast-skill",
  "name": "Ray intersection in headless procedural simulation",
  "example_input": {
    "box_center": [
      0,
      0,
      1
    ],
    "ray_from": [
      0,
      0,
      2
    ],
    "ray_to": [
      0,
      0,
      0
    ]
  },
  "environment": [
    {
      "runtime": "pybullet",
      "runtime_version": "3.2.7",
      "robot": "synthetic-seven-axis-or-procedural-scene",
      "controller": "json-contract-v1",
      "observation": "explicit-json-input",
      "os": "linux",
      "architecture": "x86_64",
      "python": "3.10",
      "status": "hub_verified"
    }
  ],
  "interface": {
    "version": "1",
    "kind": "sensing",
    "abstraction_level": 0,
    "execution_domain": "simulation",
    "language": "python",
    "input_transport": "json_file_or_inline",
    "output_transport": "json_stdout",
    "conventions": {
      "linear_unit": "m",
      "angular_unit": "rad",
      "time_unit": "s",
      "coordinate_frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
      "joint_order": "not_used",
      "quaternion_order": "not_used"
    },
    "input_schema": {
      "type": "object",
      "required": [
        "box_center",
        "ray_from",
        "ray_to"
      ],
      "additionalProperties": false,
      "properties": {
        "box_center": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "number",
            "minimum": -10,
            "maximum": 10
          },
          "x-unit": "m",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "x-order": [
            "x",
            "y",
            "z"
          ],
          "description": "box_center; units=m; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin; component order=x,y,z"
        },
        "ray_from": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "number",
            "minimum": -10,
            "maximum": 10
          },
          "x-unit": "m",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "x-order": [
            "x",
            "y",
            "z"
          ],
          "description": "ray_from; units=m; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin; component order=x,y,z"
        },
        "ray_to": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "number",
            "minimum": -10,
            "maximum": 10
          },
          "x-unit": "m",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "x-order": [
            "x",
            "y",
            "z"
          ],
          "description": "ray_to; units=m; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin; component order=x,y,z"
        }
      }
    },
    "output_schema": {
      "type": "object",
      "required": [
        "hit",
        "hit_fraction",
        "hit_xyz_m",
        "normal_xyz"
      ],
      "additionalProperties": false,
      "properties": {
        "hit": {
          "type": "boolean",
          "x-unit": "dimensionless",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "description": "hit; units=dimensionless; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin"
        },
        "hit_fraction": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "x-unit": "dimensionless",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "description": "hit_fraction; units=dimensionless; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin"
        },
        "hit_xyz_m": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "number",
            "minimum": -10,
            "maximum": 10
          },
          "x-unit": "m",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "x-order": [
            "x",
            "y",
            "z"
          ],
          "description": "hit_xyz_m; units=m; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin; component order=x,y,z"
        },
        "normal_xyz": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "x-unit": "dimensionless",
          "x-frame": "right_handed_world_xyz; +z_up; procedural_arm_base=world_origin",
          "x-order": [
            "x",
            "y",
            "z"
          ],
          "description": "normal_xyz; units=dimensionless; frame=right_handed_world_xyz; +z_up; procedural_arm_base=world_origin; component order=x,y,z"
        }
      }
    },
    "preconditions": [
      "PyBullet DIRECT CPU simulation with procedural shapes and a synthetic seven-axis arm where applicable; no downloaded models.",
      "This is an adaptation of the referenced API example, not verification of its original robot model or hardware.",
      "Simulation steps are fixed and bounded; force/torque order is Fx,Fy,Fz,Mx,My,Mz in the joint sensor frame."
    ],
    "postconditions": [
      "All declared checks must pass and all outputs must be finite.",
      "Success applies only to this operation and model, not higher-level task completion."
    ],
    "failure_codes": [
      "invalid_input_or_environment",
      "execution_failed",
      "task_failed"
    ],
    "composition": {
      "depends_on": [],
      "automatic_frame_conversion": false,
      "automatic_hardware_execution": false
    },
    "output_selector": "outputs",
    "origin_reference_ids": [
      "pybullet-batchraycast"
    ],
    "origin_relationship": "adapted_from; inspect declared model and inputs, not original robot compatibility"
  },
  "source_commit": "2c204c49e56ed15ec5fcfa71d199ab6d6570b3f5",
  "record_version": "1.0.0",
  "evidence": {
    "level": "task_complete",
    "verified_by": "Hub maintainer runtime harness",
    "date": "2026-10-19",
    "environment": {
      "scope": "simulation",
      "platforms": [
        "linux"
      ],
      "physical_robot": false
    },
    "commands": [
      "python tools/verify_executable_recipes.py --source-cache SOURCE_CACHE --output OUTPUT --backend pybullet"
    ],
    "result": "Three frozen positive cases passed against this exact adapter; see per-case receipts. This does not estimate general accuracy.",
    "artifacts": [
      "https://raw.githubusercontent.com/Superfast-Robotics/robot-skill-hub/ede75c00118e9808e5099da43c26f4619cc3bc37/evidence/runtime/executable-conversions-v1/pybullet-raycast-skill.json"
    ],
    "runtime_verification": "task_complete",
    "contributor_reported": null,
    "hub_verification": {
      "runtime": "task_complete",
      "scope": "simulation",
      "case_count": 3,
      "source_unchanged": true
    }
  },
  "record_url": "https://hub.superfastrobotics.com/skills/pybullet-raycast-skill/skill.json",
  "inspect_url": "https://api.superfastrobotics.com/v1/skills/pybullet-raycast-skill?hub_commit=ede75c00118e9808e5099da43c26f4619cc3bc37&record_version=1.0.0&include=experience",
  "execution_performed": false
}
