{
  "$defs": {
    "AdcsCheckStatus": {
      "enum": [
        "pass",
        "warn",
        "fail",
        "not_evaluated"
      ],
      "title": "AdcsCheckStatus",
      "type": "string"
    },
    "AdcsMarginDirection": {
      "enum": [
        "requirement_minus_actual",
        "actual_minus_requirement"
      ],
      "title": "AdcsMarginDirection",
      "type": "string"
    },
    "AdcsRobustnessCaseRowV2": {
      "additionalProperties": false,
      "description": "Compact scenario-check result retained for one physical replay case.",
      "properties": {
        "actual_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actual Value"
        },
        "case_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Case Id",
          "type": "string"
        },
        "check_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Check Id",
          "type": "string"
        },
        "check_status": {
          "$ref": "#/$defs/AdcsCheckStatus"
        },
        "margin": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Margin"
        },
        "margin_direction": {
          "$ref": "#/$defs/AdcsMarginDirection"
        },
        "metric_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Metric Id",
          "type": "string"
        },
        "requirement_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Requirement Value"
        },
        "scenario_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Scenario Id",
          "type": "string"
        },
        "scenario_status": {
          "$ref": "#/$defs/AdcsScenarioStatus"
        }
      },
      "required": [
        "case_id",
        "scenario_id",
        "scenario_status",
        "check_id",
        "check_status",
        "metric_id",
        "margin_direction"
      ],
      "title": "AdcsRobustnessCaseRowV2",
      "type": "object"
    },
    "AdcsRobustnessFailureRecord": {
      "additionalProperties": false,
      "properties": {
        "case_fraction": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Case Fraction",
          "type": "number"
        },
        "check_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Check Id",
          "type": "string"
        },
        "count": {
          "minimum": 1,
          "title": "Count",
          "type": "integer"
        }
      },
      "required": [
        "check_id",
        "count",
        "case_fraction"
      ],
      "title": "AdcsRobustnessFailureRecord",
      "type": "object"
    },
    "AdcsRobustnessMarginRecord": {
      "additionalProperties": false,
      "properties": {
        "actual_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actual Value"
        },
        "case_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Case Id",
          "type": "string"
        },
        "case_label": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Case Label",
          "type": "string"
        },
        "check_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Check Id",
          "type": "string"
        },
        "check_status": {
          "$ref": "#/$defs/AdcsCheckStatus"
        },
        "margin": {
          "title": "Margin",
          "type": "number"
        },
        "metric_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Metric Id",
          "type": "string"
        },
        "requirement_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Requirement Value"
        },
        "scenario_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Scenario Id",
          "type": "string"
        }
      },
      "required": [
        "case_id",
        "case_label",
        "scenario_id",
        "check_id",
        "metric_id",
        "check_status",
        "margin"
      ],
      "title": "AdcsRobustnessMarginRecord",
      "type": "object"
    },
    "AdcsRobustnessSizingRowV2": {
      "additionalProperties": false,
      "description": "Compact physical requirement and governing-case row for one replay.",
      "properties": {
        "axis": {
          "enum": [
            "x",
            "y",
            "z"
          ],
          "title": "Axis",
          "type": "string"
        },
        "canonical_unit": {
          "enum": [
            "N*m",
            "N*m*s",
            "A*m^2"
          ],
          "title": "Canonical Unit",
          "type": "string"
        },
        "case_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Case Id",
          "type": "string"
        },
        "controlling_load_case_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Controlling Load Case Id"
        },
        "controlling_scenario_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Controlling Scenario Ids",
          "type": "array"
        },
        "demand_kind": {
          "enum": [
            "wheel_torque",
            "wheel_momentum",
            "momentum_unloading",
            "detumble"
          ],
          "title": "Demand Kind",
          "type": "string"
        },
        "minimum_margin": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Minimum Margin"
        },
        "required_value": {
          "minimum": 0.0,
          "title": "Required Value",
          "type": "number"
        },
        "selected_component_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Selected Component Id"
        },
        "selection_status": {
          "enum": [
            "selected",
            "infeasible",
            "unsupported"
          ],
          "title": "Selection Status",
          "type": "string"
        }
      },
      "required": [
        "case_id",
        "demand_kind",
        "axis",
        "required_value",
        "canonical_unit",
        "selection_status"
      ],
      "title": "AdcsRobustnessSizingRowV2",
      "type": "object"
    },
    "AdcsRobustnessStatus": {
      "enum": [
        "pass",
        "warn",
        "fail",
        "not_evaluated"
      ],
      "title": "AdcsRobustnessStatus",
      "type": "string"
    },
    "AdcsRobustnessVariableEffect": {
      "additionalProperties": false,
      "properties": {
        "default_profile_member": {
          "title": "Default Profile Member",
          "type": "boolean"
        },
        "effect_kind_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Effect Kind Id",
          "type": "string"
        },
        "fidelity_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Fidelity Id",
          "type": "string"
        },
        "field_path": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Field Path",
          "type": "string"
        },
        "label": {
          "maxLength": 200,
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "target_ids": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Target Ids",
          "type": "array"
        }
      },
      "required": [
        "field_path",
        "effect_kind_id",
        "label",
        "fidelity_id",
        "target_ids",
        "default_profile_member"
      ],
      "title": "AdcsRobustnessVariableEffect",
      "type": "object"
    },
    "AdcsRobustnessWorstCase": {
      "additionalProperties": false,
      "properties": {
        "case_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Case Id",
          "type": "string"
        },
        "failing_check_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Failing Check Ids",
          "type": "array"
        },
        "label": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "minimum_margin": {
          "title": "Minimum Margin",
          "type": "number"
        },
        "result_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Result Id",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/AdcsScenarioStatus"
        }
      },
      "required": [
        "case_id",
        "result_id",
        "label",
        "status",
        "minimum_margin"
      ],
      "title": "AdcsRobustnessWorstCase",
      "type": "object"
    },
    "AdcsScenarioStatus": {
      "enum": [
        "pass",
        "pass_with_warnings",
        "fail",
        "not_evaluated"
      ],
      "title": "AdcsScenarioStatus",
      "type": "string"
    },
    "AssessmentStatus": {
      "enum": [
        "pass",
        "warn",
        "fail",
        "not_assessed"
      ],
      "title": "AssessmentStatus",
      "type": "string"
    },
    "CandidateDecision": {
      "additionalProperties": false,
      "properties": {
        "actor_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Actor Id",
          "type": "string"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "decided_at_utc": {
          "maxLength": 40,
          "minLength": 20,
          "title": "Decided At Utc",
          "type": "string"
        },
        "decision_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Decision Id",
          "type": "string"
        },
        "evaluation_selection": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvaluationSelectionReceipt"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "rationale": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Rationale",
          "type": "string"
        },
        "sequence": {
          "minimum": 1,
          "title": "Sequence",
          "type": "integer"
        },
        "status": {
          "$ref": "#/$defs/DecisionStatus"
        }
      },
      "required": [
        "decision_id",
        "sequence",
        "candidate_id",
        "status",
        "actor_id",
        "decided_at_utc",
        "rationale"
      ],
      "title": "CandidateDecision",
      "type": "object"
    },
    "CandidateDelta": {
      "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": "CandidateDelta",
      "type": "object"
    },
    "CandidateLedger": {
      "additionalProperties": false,
      "properties": {
        "candidates": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CandidateRecord"
          },
          "title": "Candidates",
          "type": "array"
        },
        "contract_suite": {
          "const": "sindri.contracts",
          "default": "sindri.contracts",
          "title": "Contract Suite",
          "type": "string"
        },
        "contract_version": {
          "const": "1.0.0",
          "default": "1.0.0",
          "title": "Contract Version",
          "type": "string"
        },
        "decisions": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CandidateDecision"
          },
          "title": "Decisions",
          "type": "array"
        },
        "evaluation_scope": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvaluationDecisionScope"
            },
            {
              "$ref": "#/$defs/StudyDecisionScope"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Evaluation Scope"
        },
        "ledger_id": {
          "default": "ledger.design-candidates",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Ledger Id",
          "type": "string"
        },
        "schema_kind": {
          "const": "candidate_ledger",
          "default": "candidate_ledger",
          "title": "Schema Kind",
          "type": "string"
        },
        "study_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Study Id",
          "type": "string"
        },
        "transitions": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CandidateTransition"
          },
          "title": "Transitions",
          "type": "array"
        }
      },
      "required": [
        "study_id"
      ],
      "title": "CandidateLedger",
      "type": "object"
    },
    "CandidateLifecycle": {
      "enum": [
        "defined",
        "generated",
        "evaluated",
        "rejected",
        "eligible",
        "ranked",
        "proposed",
        "selected",
        "approved"
      ],
      "title": "CandidateLifecycle",
      "type": "string"
    },
    "CandidateRecord": {
      "additionalProperties": false,
      "properties": {
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "changes": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CandidateDelta"
          },
          "title": "Changes",
          "type": "array"
        },
        "evaluation_binding": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvaluationCandidateBinding"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "feasibility": {
          "$ref": "#/$defs/AssessmentStatus",
          "default": "not_assessed"
        },
        "issues": {
          "default": [],
          "items": {
            "$ref": "#/$defs/IssueRecord"
          },
          "title": "Issues",
          "type": "array"
        },
        "lifecycle": {
          "$ref": "#/$defs/CandidateLifecycle"
        },
        "objective_values": {
          "default": [],
          "items": {
            "$ref": "#/$defs/ObjectiveValue"
          },
          "title": "Objective Values",
          "type": "array"
        },
        "parent_candidate_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Parent Candidate Id"
        },
        "rank": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Rank"
        },
        "result_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Result Ids",
          "type": "array"
        }
      },
      "required": [
        "candidate_id",
        "lifecycle"
      ],
      "title": "CandidateRecord",
      "type": "object"
    },
    "CandidateTransition": {
      "additionalProperties": false,
      "properties": {
        "actor_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Actor Id",
          "type": "string"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "from_lifecycle": {
          "$ref": "#/$defs/CandidateLifecycle"
        },
        "occurred_at_utc": {
          "maxLength": 40,
          "minLength": 20,
          "title": "Occurred At Utc",
          "type": "string"
        },
        "rationale": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Rationale",
          "type": "string"
        },
        "sequence": {
          "minimum": 1,
          "title": "Sequence",
          "type": "integer"
        },
        "to_lifecycle": {
          "$ref": "#/$defs/CandidateLifecycle"
        },
        "transition_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Transition Id",
          "type": "string"
        }
      },
      "required": [
        "transition_id",
        "sequence",
        "candidate_id",
        "from_lifecycle",
        "to_lifecycle",
        "actor_id",
        "occurred_at_utc",
        "rationale"
      ],
      "title": "CandidateTransition",
      "type": "object"
    },
    "DecisionStatus": {
      "enum": [
        "proposed",
        "selected",
        "approved",
        "rejected"
      ],
      "title": "DecisionStatus",
      "type": "string"
    },
    "EvaluationCandidateBinding": {
      "additionalProperties": false,
      "properties": {
        "assessment_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Assessment Sha256",
          "type": "string"
        },
        "selectable": {
          "title": "Selectable",
          "type": "boolean"
        },
        "source": {
          "$ref": "#/$defs/EvaluationSource"
        },
        "warning_check_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Warning Check Ids",
          "type": "array"
        }
      },
      "required": [
        "source",
        "assessment_sha256",
        "selectable"
      ],
      "title": "EvaluationCandidateBinding",
      "type": "object"
    },
    "EvaluationDecisionScope": {
      "additionalProperties": false,
      "properties": {
        "candidate_ids": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "title": "Candidate Ids",
          "type": "array"
        },
        "comparison_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Comparison Sha256",
          "type": "string"
        },
        "context_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Context Sha256",
          "type": "string"
        },
        "evaluation_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Evaluation Id",
          "type": "string"
        },
        "manifest_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Manifest Sha256",
          "type": "string"
        },
        "policy_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Policy Sha256",
          "type": "string"
        },
        "recommended_candidate_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Recommended Candidate Ids",
          "type": "array"
        }
      },
      "required": [
        "evaluation_id",
        "manifest_sha256",
        "comparison_sha256",
        "policy_sha256",
        "context_sha256",
        "candidate_ids"
      ],
      "title": "EvaluationDecisionScope",
      "type": "object"
    },
    "EvaluationSelectionReceipt": {
      "additionalProperties": false,
      "properties": {
        "accepted_warning_check_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Accepted Warning Check Ids",
          "type": "array"
        },
        "expected_ledger_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Expected Ledger Sha256",
          "type": "string"
        },
        "request_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "request_id",
        "expected_ledger_sha256"
      ],
      "title": "EvaluationSelectionReceipt",
      "type": "object"
    },
    "EvaluationSource": {
      "additionalProperties": false,
      "properties": {
        "artifact_index_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Artifact Index Sha256",
          "type": "string"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "contract_version": {
          "const": "1.0.0",
          "default": "1.0.0",
          "title": "Contract Version",
          "type": "string"
        },
        "input_snapshot_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Input Snapshot Sha256",
          "type": "string"
        },
        "manifest_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Manifest Sha256",
          "type": "string"
        },
        "result_index_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Result Index Sha256",
          "type": "string"
        },
        "run_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Run Id",
          "type": "string"
        }
      },
      "required": [
        "candidate_id",
        "run_id",
        "manifest_sha256",
        "input_snapshot_sha256",
        "result_index_sha256",
        "artifact_index_sha256"
      ],
      "title": "EvaluationSource",
      "type": "object"
    },
    "ExecutionStatus": {
      "enum": [
        "succeeded",
        "partial",
        "failed",
        "skipped"
      ],
      "title": "ExecutionStatus",
      "type": "string"
    },
    "IssueRecord": {
      "additionalProperties": false,
      "properties": {
        "action_hint": {
          "anyOf": [
            {
              "maxLength": 1000,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Action Hint"
        },
        "code": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Code",
          "type": "string"
        },
        "issue_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Issue Id",
          "type": "string"
        },
        "message": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Message",
          "type": "string"
        },
        "severity": {
          "$ref": "#/$defs/IssueSeverity"
        },
        "source_path": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Path"
        },
        "statement_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Statement Ids",
          "type": "array"
        }
      },
      "required": [
        "issue_id",
        "code",
        "severity",
        "message"
      ],
      "title": "IssueRecord",
      "type": "object"
    },
    "IssueSeverity": {
      "enum": [
        "info",
        "warning",
        "error"
      ],
      "title": "IssueSeverity",
      "type": "string"
    },
    "ObjectiveValue": {
      "additionalProperties": false,
      "properties": {
        "direction": {
          "enum": [
            "minimize",
            "maximize"
          ],
          "title": "Direction",
          "type": "string"
        },
        "metric_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Metric Id",
          "type": "string"
        },
        "normalized_score": {
          "anyOf": [
            {
              "maximum": 1.0,
              "minimum": 0.0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Normalized Score"
        },
        "value": {
          "title": "Value",
          "type": "number"
        }
      },
      "required": [
        "metric_id",
        "value",
        "direction"
      ],
      "title": "ObjectiveValue",
      "type": "object"
    },
    "PercentilePoint": {
      "additionalProperties": false,
      "properties": {
        "percentile_ratio": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Percentile Ratio",
          "type": "number"
        },
        "value": {
          "title": "Value",
          "type": "number"
        }
      },
      "required": [
        "percentile_ratio",
        "value"
      ],
      "title": "PercentilePoint",
      "type": "object"
    },
    "PercentileSummary": {
      "additionalProperties": false,
      "properties": {
        "canonical_unit": {
          "maxLength": 32,
          "minLength": 1,
          "title": "Canonical Unit",
          "type": "string"
        },
        "metric_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Metric Id",
          "type": "string"
        },
        "points": {
          "items": {
            "$ref": "#/$defs/PercentilePoint"
          },
          "minItems": 1,
          "title": "Points",
          "type": "array"
        },
        "scope_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Scope Id"
        },
        "summary_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Summary Id",
          "type": "string"
        }
      },
      "required": [
        "summary_id",
        "metric_id",
        "canonical_unit",
        "points"
      ],
      "title": "PercentileSummary",
      "type": "object"
    },
    "RobustnessThresholds": {
      "additionalProperties": false,
      "properties": {
        "fail_max_fraction": {
          "default": 0.05,
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Fail Max Fraction",
          "type": "number"
        },
        "pass_min_fraction": {
          "default": 0.95,
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Pass Min Fraction",
          "type": "number"
        },
        "warn_max_fraction": {
          "default": 0.1,
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Warn Max Fraction",
          "type": "number"
        }
      },
      "title": "RobustnessThresholds",
      "type": "object"
    },
    "StudyCaseResult": {
      "additionalProperties": false,
      "description": "One compact case outcome; detailed domain evidence remains in result rows.",
      "properties": {
        "assessment_status": {
          "$ref": "#/$defs/AssessmentStatus"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "case_index": {
          "minimum": 1,
          "title": "Case Index",
          "type": "integer"
        },
        "execution_status": {
          "$ref": "#/$defs/ExecutionStatus"
        },
        "issue_codes": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Issue Codes",
          "type": "array"
        },
        "label": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "result_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Result Id",
          "type": "string"
        }
      },
      "required": [
        "result_id",
        "candidate_id",
        "case_index",
        "label",
        "execution_status",
        "assessment_status"
      ],
      "title": "StudyCaseResult",
      "type": "object"
    },
    "StudyDecisionScope": {
      "additionalProperties": false,
      "properties": {
        "candidate_ids": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "maxItems": 1024,
          "minItems": 1,
          "title": "Candidate Ids",
          "type": "array"
        },
        "comparison_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Comparison Sha256",
          "type": "string"
        },
        "context_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Context Sha256",
          "type": "string"
        },
        "evaluation_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Evaluation Id",
          "type": "string"
        },
        "manifest_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Manifest Sha256",
          "type": "string"
        },
        "policy_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Policy Sha256",
          "type": "string"
        },
        "recommended_candidate_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Recommended Candidate Ids",
          "type": "array"
        },
        "scope_kind": {
          "const": "study",
          "default": "study",
          "title": "Scope Kind",
          "type": "string"
        },
        "shortlist_candidate_ids": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "maxItems": 4,
          "minItems": 1,
          "title": "Shortlist Candidate Ids",
          "type": "array"
        }
      },
      "required": [
        "evaluation_id",
        "manifest_sha256",
        "comparison_sha256",
        "policy_sha256",
        "context_sha256",
        "candidate_ids",
        "shortlist_candidate_ids"
      ],
      "title": "StudyDecisionScope",
      "type": "object"
    },
    "SweepStudyResult": {
      "additionalProperties": false,
      "description": "Normalized repeated-study result without materialized design copies.",
      "properties": {
        "candidate_ledger": {
          "$ref": "#/$defs/CandidateLedger"
        },
        "case_results": {
          "default": [],
          "items": {
            "$ref": "#/$defs/StudyCaseResult"
          },
          "title": "Case Results",
          "type": "array"
        },
        "complete": {
          "title": "Complete",
          "type": "boolean"
        },
        "contract_suite": {
          "const": "sindri.contracts",
          "default": "sindri.contracts",
          "title": "Contract Suite",
          "type": "string"
        },
        "contract_version": {
          "const": "1.0.0",
          "default": "1.0.0",
          "title": "Contract Version",
          "type": "string"
        },
        "percentile_summaries": {
          "default": [],
          "items": {
            "$ref": "#/$defs/PercentileSummary"
          },
          "title": "Percentile Summaries",
          "type": "array"
        },
        "plan_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Sha256",
          "type": "string"
        },
        "schema_kind": {
          "const": "sweep_study_result",
          "default": "sweep_study_result",
          "title": "Schema Kind",
          "type": "string"
        },
        "study_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Study Id",
          "type": "string"
        },
        "sweep_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Sweep Id",
          "type": "string"
        },
        "worst_case_references": {
          "default": [],
          "items": {
            "$ref": "#/$defs/WorstCaseReference"
          },
          "title": "Worst Case References",
          "type": "array"
        }
      },
      "required": [
        "study_id",
        "sweep_id",
        "plan_sha256",
        "complete",
        "candidate_ledger"
      ],
      "title": "SweepStudyResult",
      "type": "object"
    },
    "WorstCaseReference": {
      "additionalProperties": false,
      "properties": {
        "assessment_status": {
          "$ref": "#/$defs/AssessmentStatus"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "governing_metric_ids": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Governing Metric Ids",
          "type": "array"
        },
        "issue_codes": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "title": "Issue Codes",
          "type": "array"
        },
        "rank": {
          "minimum": 1,
          "title": "Rank",
          "type": "integer"
        },
        "reference_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Reference Id",
          "type": "string"
        },
        "result_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Result Id",
          "type": "string"
        }
      },
      "required": [
        "reference_id",
        "rank",
        "candidate_id",
        "result_id",
        "assessment_status"
      ],
      "title": "WorstCaseReference",
      "type": "object"
    }
  },
  "$id": "urn:sindri:contracts:1.0.0:adcs-robustness-result-v2",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Aggregate evidence from deterministic native ADCS v2 physical replays.",
  "properties": {
    "adapter_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Adapter Id",
      "type": "string"
    },
    "analysis_fidelity_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Analysis Fidelity Id",
      "type": "string"
    },
    "case_rows": {
      "default": [],
      "items": {
        "$ref": "#/$defs/AdcsRobustnessCaseRowV2"
      },
      "title": "Case Rows",
      "type": "array"
    },
    "default_profile_physical_only": {
      "title": "Default Profile Physical Only",
      "type": "boolean"
    },
    "dominant_failure_checks": {
      "default": [],
      "items": {
        "$ref": "#/$defs/AdcsRobustnessFailureRecord"
      },
      "title": "Dominant Failure Checks",
      "type": "array"
    },
    "dynamics_modeled": {
      "title": "Dynamics Modeled",
      "type": "boolean"
    },
    "mission_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Mission Id",
      "type": "string"
    },
    "nominal_available": {
      "title": "Nominal Available",
      "type": "boolean"
    },
    "payload_kind": {
      "const": "adcs_robustness",
      "default": "adcs_robustness",
      "title": "Payload Kind",
      "type": "string"
    },
    "payload_version": {
      "const": "2.0.0",
      "default": "2.0.0",
      "title": "Payload Version",
      "type": "string"
    },
    "robust_status": {
      "$ref": "#/$defs/AdcsRobustnessStatus"
    },
    "sizing_rows": {
      "default": [],
      "items": {
        "$ref": "#/$defs/AdcsRobustnessSizingRowV2"
      },
      "title": "Sizing Rows",
      "type": "array"
    },
    "spacecraft_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Spacecraft Id",
      "type": "string"
    },
    "status_counts": {
      "additionalProperties": {
        "type": "integer"
      },
      "propertyNames": {
        "$ref": "#/$defs/AdcsRobustnessStatus"
      },
      "title": "Status Counts",
      "type": "object"
    },
    "status_fractions": {
      "additionalProperties": {
        "type": "number"
      },
      "propertyNames": {
        "$ref": "#/$defs/AdcsRobustnessStatus"
      },
      "title": "Status Fractions",
      "type": "object"
    },
    "study_result": {
      "$ref": "#/$defs/SweepStudyResult"
    },
    "sweep_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Sweep Id",
      "type": "string"
    },
    "thresholds": {
      "$ref": "#/$defs/RobustnessThresholds"
    },
    "variable_effects": {
      "items": {
        "$ref": "#/$defs/AdcsRobustnessVariableEffect"
      },
      "title": "Variable Effects",
      "type": "array"
    },
    "variable_source": {
      "maxLength": 512,
      "minLength": 1,
      "title": "Variable Source",
      "type": "string"
    },
    "warning_codes": {
      "default": [],
      "items": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
        "type": "string"
      },
      "title": "Warning Codes",
      "type": "array"
    },
    "weakest_margins": {
      "default": [],
      "items": {
        "$ref": "#/$defs/AdcsRobustnessMarginRecord"
      },
      "title": "Weakest Margins",
      "type": "array"
    },
    "worst_cases": {
      "default": [],
      "items": {
        "$ref": "#/$defs/AdcsRobustnessWorstCase"
      },
      "title": "Worst Cases",
      "type": "array"
    }
  },
  "required": [
    "mission_id",
    "spacecraft_id",
    "sweep_id",
    "adapter_id",
    "analysis_fidelity_id",
    "dynamics_modeled",
    "variable_source",
    "default_profile_physical_only",
    "variable_effects",
    "nominal_available",
    "robust_status",
    "study_result",
    "status_counts",
    "status_fractions",
    "thresholds"
  ],
  "title": "AdcsRobustnessResultPayloadV2",
  "type": "object",
  "x-sindri-contract-suite": "sindri.contracts",
  "x-sindri-contract-version": "1.0.0"
}
