{
  "$defs": {
    "Adcs42Controller": {
      "additionalProperties": false,
      "properties": {
        "allocation_id": {
          "default": "wheel_pseudoinverse",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Allocation Id",
          "type": "string"
        },
        "controller_family_id": {
          "default": "pd_attitude_rate",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Controller Family Id",
          "type": "string"
        },
        "enabled": {
          "default": false,
          "title": "Enabled",
          "type": "boolean"
        },
        "gain_derivation": {
          "$ref": "#/$defs/GainDerivation"
        },
        "gains": {
          "$ref": "#/$defs/ControllerGains"
        },
        "limits": {
          "$ref": "#/$defs/ControllerLimits"
        },
        "momentum_management": {
          "$ref": "#/$defs/MomentumManagement"
        },
        "momentum_unloading": {
          "default": "simple",
          "enum": [
            "disabled",
            "simple"
          ],
          "title": "Momentum Unloading",
          "type": "string"
        },
        "objective_statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Objective Statement Ids",
          "type": "array"
        },
        "profile_id": {
          "default": "sindri_pd_v1",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Profile Id",
          "type": "string"
        },
        "supported_mode_ids": {
          "default": [
            "nadir_hold",
            "inertial_hold",
            "detumble"
          ],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Supported Mode Ids",
          "type": "array"
        }
      },
      "title": "Adcs42Controller",
      "type": "object"
    },
    "Adcs42Execution": {
      "additionalProperties": false,
      "properties": {
        "controller": {
          "$ref": "#/$defs/Adcs42Controller"
        },
        "enabled": {
          "default": false,
          "title": "Enabled",
          "type": "boolean"
        },
        "executable": {
          "anyOf": [
            {
              "$ref": "#/$defs/ResourceReference"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fail_on_error": {
          "default": false,
          "title": "Fail On Error",
          "type": "boolean"
        },
        "mode": {
          "default": "disabled",
          "enum": [
            "disabled",
            "bundle_only",
            "run"
          ],
          "title": "Mode",
          "type": "string"
        },
        "reference_overrides": {
          "anyOf": [
            {
              "$ref": "#/$defs/Adcs42ReferenceOverrides"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "scenario_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Scenario Ids",
          "type": "array"
        },
        "simulation": {
          "$ref": "#/$defs/Adcs42Simulation"
        },
        "timeline": {
          "anyOf": [
            {
              "$ref": "#/$defs/ModeTimeline"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "timeout_s": {
          "default": 3600.0,
          "exclusiveMinimum": 0.0,
          "title": "Timeout S",
          "type": "number"
        }
      },
      "title": "Adcs42Execution",
      "type": "object"
    },
    "Adcs42ReferenceOverrides": {
      "additionalProperties": false,
      "properties": {
        "evidence_source_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Evidence Source Id",
          "type": "string"
        },
        "inertia_diagonal_kgm2": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Inertia Diagonal Kgm2"
        },
        "pointing_bound_rad": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Pointing Bound Rad"
        },
        "reproduction_depth": {
          "enum": [
            "setup",
            "physical_trend",
            "exact"
          ],
          "title": "Reproduction Depth",
          "type": "string"
        },
        "spacecraft_mass_kg": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Spacecraft Mass Kg"
        },
        "wheel_acceleration_limit_radps2": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Wheel Acceleration Limit Radps2"
        },
        "wheel_axes_body": {
          "default": [],
          "items": {
            "maxItems": 3,
            "minItems": 3,
            "prefixItems": [
              {
                "type": "number"
              },
              {
                "type": "number"
              },
              {
                "type": "number"
              }
            ],
            "type": "array"
          },
          "title": "Wheel Axes Body",
          "type": "array"
        },
        "wheel_rotor_inertia_kgm2": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Wheel Rotor Inertia Kgm2"
        },
        "zero_speed_crossing_avoidance": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Zero Speed Crossing Avoidance"
        }
      },
      "required": [
        "evidence_source_id",
        "reproduction_depth"
      ],
      "title": "Adcs42ReferenceOverrides",
      "type": "object"
    },
    "Adcs42Simulation": {
      "additionalProperties": false,
      "properties": {
        "duration_s": {
          "default": 600.0,
          "exclusiveMinimum": 0.0,
          "title": "Duration S",
          "type": "number"
        },
        "initial_body_rate_degps": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Initial Body Rate Degps"
        },
        "output_interval_s": {
          "default": 1.0,
          "exclusiveMinimum": 0.0,
          "title": "Output Interval S",
          "type": "number"
        },
        "step_s": {
          "default": 0.5,
          "exclusiveMinimum": 0.0,
          "title": "Step S",
          "type": "number"
        }
      },
      "title": "Adcs42Simulation",
      "type": "object"
    },
    "AllowedSetVariable": {
      "additionalProperties": false,
      "properties": {
        "field_path": {
          "maxLength": 512,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z0-9_]+|\\[[0-9]+\\])*$",
          "title": "Field Path",
          "type": "string"
        },
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "minItems": 1,
          "title": "Values",
          "type": "array"
        },
        "variable_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Variable Id",
          "type": "string"
        },
        "variable_type": {
          "const": "allowed_set",
          "default": "allowed_set",
          "title": "Variable Type",
          "type": "string"
        }
      },
      "required": [
        "variable_id",
        "field_path",
        "values"
      ],
      "title": "AllowedSetVariable",
      "type": "object"
    },
    "AttitudeReference": {
      "additionalProperties": false,
      "properties": {
        "primary_target": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Primary Target"
        },
        "reference_type": {
          "enum": [
            "rate_detumble",
            "lvlh_vector_hold",
            "inertial_quaternion_hold",
            "sun_vector_hold",
            "thrust_vector_hold",
            "slew_and_settle"
          ],
          "title": "Reference Type",
          "type": "string"
        },
        "target_quaternion_body_to_inertial": {
          "anyOf": [
            {
              "maxItems": 4,
              "minItems": 4,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Quaternion Body To Inertial"
        },
        "target_vector_body": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Vector Body"
        },
        "target_vector_reference": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Vector Reference"
        }
      },
      "required": [
        "reference_type"
      ],
      "title": "AttitudeReference",
      "type": "object"
    },
    "ControllerGains": {
      "additionalProperties": false,
      "properties": {
        "attitude_kp": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Attitude Kp"
        },
        "rate_kd": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Rate Kd"
        }
      },
      "title": "ControllerGains",
      "type": "object"
    },
    "ControllerLimits": {
      "additionalProperties": false,
      "properties": {
        "magnetorquer_dipole_limit_amsq": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Magnetorquer Dipole Limit Amsq"
        },
        "use_hardware_limits": {
          "default": true,
          "title": "Use Hardware Limits",
          "type": "boolean"
        },
        "wheel_max_rpm": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Wheel Max Rpm"
        },
        "wheel_momentum_limit_nms": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Wheel Momentum Limit Nms"
        },
        "wheel_torque_limit_nm": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Wheel Torque Limit Nm"
        }
      },
      "title": "ControllerLimits",
      "type": "object"
    },
    "EngineeringDomain": {
      "enum": [
        "system",
        "mission",
        "environment",
        "mass",
        "power",
        "thermal",
        "propulsion",
        "adcs",
        "communications",
        "launch",
        "lifetime",
        "cost",
        "geometry",
        "placement",
        "deployables",
        "operations"
      ],
      "title": "EngineeringDomain",
      "type": "string"
    },
    "ExecutionControls": {
      "additionalProperties": false,
      "properties": {
        "adcs_42": {
          "$ref": "#/$defs/Adcs42Execution"
        },
        "geometry": {
          "$ref": "#/$defs/GeometryExecution"
        }
      },
      "title": "ExecutionControls",
      "type": "object"
    },
    "FixedChoice": {
      "additionalProperties": false,
      "properties": {
        "field_path": {
          "maxLength": 512,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z0-9_]+|\\[[0-9]+\\])*$",
          "title": "Field Path",
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ],
          "title": "Value"
        }
      },
      "required": [
        "field_path",
        "value"
      ],
      "title": "FixedChoice",
      "type": "object"
    },
    "GainDerivation": {
      "additionalProperties": false,
      "properties": {
        "damping_ratio": {
          "default": 0.8,
          "exclusiveMinimum": 0.0,
          "maximum": 2.0,
          "title": "Damping Ratio",
          "type": "number"
        },
        "settling_time_s": {
          "default": 300.0,
          "exclusiveMinimum": 0.0,
          "title": "Settling Time S",
          "type": "number"
        },
        "source": {
          "default": "derived",
          "enum": [
            "explicit",
            "derived"
          ],
          "title": "Source",
          "type": "string"
        },
        "torque_limit_fraction": {
          "default": 0.5,
          "exclusiveMinimum": 0.0,
          "maximum": 1.0,
          "title": "Torque Limit Fraction",
          "type": "number"
        }
      },
      "title": "GainDerivation",
      "type": "object"
    },
    "GeometryExecution": {
      "additionalProperties": false,
      "properties": {
        "cad_backend": {
          "const": "freecad",
          "default": "freecad",
          "title": "Cad Backend",
          "type": "string"
        },
        "cad_export_enabled": {
          "default": false,
          "title": "Cad Export Enabled",
          "type": "boolean"
        },
        "check_enabled": {
          "default": true,
          "title": "Check Enabled",
          "type": "boolean"
        },
        "deployment_state_ids": {
          "default": [
            "stowed",
            "deployed"
          ],
          "items": {
            "enum": [
              "stowed",
              "deployed"
            ],
            "type": "string"
          },
          "title": "Deployment State Ids",
          "type": "array"
        },
        "emit_gltf": {
          "default": true,
          "title": "Emit Gltf",
          "type": "boolean"
        },
        "emit_step": {
          "default": true,
          "title": "Emit Step",
          "type": "boolean"
        },
        "fail_on_cad_error": {
          "default": false,
          "title": "Fail On Cad Error",
          "type": "boolean"
        }
      },
      "title": "GeometryExecution",
      "type": "object"
    },
    "ModeTimeline": {
      "additionalProperties": false,
      "properties": {
        "segments": {
          "items": {
            "$ref": "#/$defs/TimelineSegment"
          },
          "minItems": 1,
          "title": "Segments",
          "type": "array"
        }
      },
      "required": [
        "segments"
      ],
      "title": "ModeTimeline",
      "type": "object"
    },
    "MomentumManagement": {
      "additionalProperties": false,
      "properties": {
        "cadence_s": {
          "default": 60.0,
          "exclusiveMinimum": 0.0,
          "title": "Cadence S",
          "type": "number"
        },
        "deadband_fraction": {
          "default": 0.5,
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Deadband Fraction",
          "type": "number"
        },
        "enabled": {
          "default": true,
          "title": "Enabled",
          "type": "boolean"
        },
        "threshold_fraction": {
          "default": 0.5,
          "exclusiveMinimum": 0.0,
          "maximum": 1.0,
          "title": "Threshold Fraction",
          "type": "number"
        },
        "unloading_gain": {
          "default": 0.01,
          "exclusiveMinimum": 0.0,
          "title": "Unloading Gain",
          "type": "number"
        }
      },
      "title": "MomentumManagement",
      "type": "object"
    },
    "NamedResource": {
      "additionalProperties": false,
      "properties": {
        "reference": {
          "$ref": "#/$defs/ResourceReference"
        },
        "role_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Role Id",
          "type": "string"
        }
      },
      "required": [
        "role_id",
        "reference"
      ],
      "title": "NamedResource",
      "type": "object"
    },
    "OutputPolicy": {
      "additionalProperties": false,
      "properties": {
        "root_path": {
          "default": "runs",
          "maxLength": 512,
          "minLength": 1,
          "title": "Root Path",
          "type": "string"
        },
        "run_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Run Id"
        }
      },
      "title": "OutputPolicy",
      "type": "object"
    },
    "ProjectDocumentReference": {
      "additionalProperties": false,
      "properties": {
        "document_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Document Id",
          "type": "string"
        },
        "project_path": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Project Path",
          "type": "string"
        }
      },
      "required": [
        "document_id",
        "project_path"
      ],
      "title": "ProjectDocumentReference",
      "type": "object"
    },
    "RangeVariable": {
      "additionalProperties": false,
      "properties": {
        "field_path": {
          "maxLength": 512,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z0-9_]+|\\[[0-9]+\\])*$",
          "title": "Field Path",
          "type": "string"
        },
        "maximum": {
          "title": "Maximum",
          "type": "number"
        },
        "minimum": {
          "title": "Minimum",
          "type": "number"
        },
        "scale": {
          "default": "linear",
          "enum": [
            "linear",
            "log"
          ],
          "title": "Scale",
          "type": "string"
        },
        "step": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Step"
        },
        "variable_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Variable Id",
          "type": "string"
        },
        "variable_type": {
          "const": "range",
          "default": "range",
          "title": "Variable Type",
          "type": "string"
        }
      },
      "required": [
        "variable_id",
        "field_path",
        "minimum",
        "maximum"
      ],
      "title": "RangeVariable",
      "type": "object"
    },
    "ResourceReference": {
      "additionalProperties": false,
      "description": "Reference to one packaged resource ID or one contained project path.",
      "properties": {
        "expected_sha256": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Sha256"
        },
        "project_path": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Project Path"
        },
        "resource_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Resource Id"
        }
      },
      "title": "ResourceReference",
      "type": "object"
    },
    "ScenarioDefinition": {
      "additionalProperties": false,
      "properties": {
        "applicable_statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Applicable Statement Ids",
          "type": "array"
        },
        "cycle_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cycle Id"
        },
        "deployable_state_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Deployable State Id"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 1000,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Description"
        },
        "domain": {
          "$ref": "#/$defs/EngineeringDomain"
        },
        "duration_fraction": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "maximum": 1.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Duration Fraction"
        },
        "duty_cycle": {
          "anyOf": [
            {
              "maximum": 1.0,
              "minimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Duty Cycle"
        },
        "external_id": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "External Id"
        },
        "ground_target_latitude_deg": {
          "anyOf": [
            {
              "maximum": 90.0,
              "minimum": -90.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Ground Target Latitude Deg"
        },
        "ground_target_longitude_deg": {
          "anyOf": [
            {
              "maximum": 180.0,
              "minimum": -180.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Ground Target Longitude Deg"
        },
        "initial_body_rate_degps": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Initial Body Rate Degps"
        },
        "kind": {
          "$ref": "#/$defs/ScenarioKind"
        },
        "maximum_detumble_time_s": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Maximum Detumble Time S"
        },
        "maximum_slew_acceleration_degps2": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Maximum Slew Acceleration Degps2"
        },
        "maximum_slew_rate_degps": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Maximum Slew Rate Degps"
        },
        "mode_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Mode Id"
        },
        "priority": {
          "default": 0,
          "minimum": 0,
          "title": "Priority",
          "type": "integer"
        },
        "representative_duration_s": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Representative Duration S"
        },
        "required_sensor_role_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Required Sensor Role Ids",
          "type": "array"
        },
        "scenario_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Scenario Id",
          "type": "string"
        },
        "slew_angle_deg": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "maximum": 360.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Slew Angle Deg"
        },
        "slew_axis_body": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Slew Axis Body"
        },
        "slew_duration_s": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Slew Duration S"
        },
        "tags": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "target": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target"
        },
        "target_body_rate_degps": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Body Rate Degps"
        },
        "target_frame_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Frame Id"
        },
        "target_vector_body": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Vector Body"
        },
        "target_vector_reference": {
          "anyOf": [
            {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Vector Reference"
        }
      },
      "required": [
        "scenario_id",
        "domain",
        "kind"
      ],
      "title": "ScenarioDefinition",
      "type": "object"
    },
    "ScenarioKind": {
      "enum": [
        "detumble",
        "sun_acquisition",
        "safe_mode",
        "nadir_tracking",
        "target_tracking",
        "slew_and_settle",
        "thrust_tracking"
      ],
      "title": "ScenarioKind",
      "type": "string"
    },
    "TimelineSegment": {
      "additionalProperties": false,
      "properties": {
        "acceptance_statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Acceptance Statement Ids",
          "type": "array"
        },
        "duration_s": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Duration S"
        },
        "end_s": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "End S"
        },
        "entry_condition_statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Entry Condition Statement Ids",
          "type": "array"
        },
        "exit_condition_statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Exit Condition Statement Ids",
          "type": "array"
        },
        "fallback_mode_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Fallback Mode Id"
        },
        "gains": {
          "anyOf": [
            {
              "$ref": "#/$defs/ControllerGains"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "limits": {
          "anyOf": [
            {
              "$ref": "#/$defs/ControllerLimits"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "mode_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Mode Id",
          "type": "string"
        },
        "reference": {
          "anyOf": [
            {
              "$ref": "#/$defs/AttitudeReference"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "scenario_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Scenario Id"
        },
        "segment_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Segment Id",
          "type": "string"
        },
        "start_s": {
          "anyOf": [
            {
              "minimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start S"
        }
      },
      "required": [
        "segment_id",
        "mode_id"
      ],
      "title": "TimelineSegment",
      "type": "object"
    }
  },
  "$id": "urn:sindri:contracts:1.0.0:study-v2",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A child run's input: multi-case orchestration belongs to an outer plan.",
  "properties": {
    "contract_suite": {
      "const": "sindri.contracts",
      "default": "sindri.contracts",
      "title": "Contract Suite",
      "type": "string"
    },
    "contract_version": {
      "const": "2.0.0",
      "default": "2.0.0",
      "title": "Contract Version",
      "type": "string"
    },
    "design_variables": {
      "default": [],
      "items": {
        "discriminator": {
          "mapping": {
            "allowed_set": "#/$defs/AllowedSetVariable",
            "range": "#/$defs/RangeVariable"
          },
          "propertyName": "variable_type"
        },
        "oneOf": [
          {
            "$ref": "#/$defs/AllowedSetVariable"
          },
          {
            "$ref": "#/$defs/RangeVariable"
          }
        ]
      },
      "title": "Design Variables",
      "type": "array"
    },
    "document_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Document Id",
      "type": "string"
    },
    "execution": {
      "$ref": "#/$defs/ExecutionControls"
    },
    "fixed_choices": {
      "default": [],
      "items": {
        "$ref": "#/$defs/FixedChoice"
      },
      "title": "Fixed Choices",
      "type": "array"
    },
    "mission": {
      "$ref": "#/$defs/ProjectDocumentReference"
    },
    "outputs": {
      "$ref": "#/$defs/OutputPolicy"
    },
    "resources": {
      "default": [],
      "items": {
        "$ref": "#/$defs/NamedResource"
      },
      "title": "Resources",
      "type": "array"
    },
    "scenarios": {
      "default": [],
      "items": {
        "$ref": "#/$defs/ScenarioDefinition"
      },
      "title": "Scenarios",
      "type": "array"
    },
    "schema_kind": {
      "const": "study",
      "default": "study",
      "title": "Schema Kind",
      "type": "string"
    },
    "seed": {
      "default": 0,
      "title": "Seed",
      "type": "integer"
    },
    "spacecraft": {
      "$ref": "#/$defs/ProjectDocumentReference"
    },
    "study_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Study Id",
      "type": "string"
    },
    "title": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    }
  },
  "required": [
    "document_id",
    "title",
    "study_id",
    "mission",
    "spacecraft"
  ],
  "title": "StudyDocumentV2",
  "type": "object",
  "x-sindri-contract-suite": "sindri.contracts",
  "x-sindri-contract-version": "1.0.0"
}
