{
  "analysis-collection-summary": {
    "$defs": {
      "AcceptanceReceipt": {
        "description": "The original acceptance observation; it is never updated to current run state.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/RunPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/AcceptanceState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "AcceptanceState": {
        "enum": [
          "queued"
        ],
        "type": "string"
      },
      "AnalysisCollectionSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "bundle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "collections": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedCollection"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "complete": {
                "type": "boolean"
              },
              "directory": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedFile"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "run_id": {
                "format": "uuid",
                "type": "string"
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "scientific_state": {
                "$ref": "#/$defs/RunState"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "run_id",
              "complete",
              "bundle",
              "scientific_state",
              "outputs",
              "collections"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisIdentity": {
        "allOf": [
          {
            "$ref": "#/$defs/SourceEvidence"
          },
          {
            "properties": {
              "context_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "grant_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "installation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/InstallationDescriptor"
                  }
                ]
              },
              "installation_status": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/PublicationStatus"
                  }
                ]
              },
              "model_id": {
                "type": "string"
              },
              "publication_delegation_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "publication_id": {
                "type": "string"
              },
              "purpose": {
                "$ref": "#/$defs/RunPurpose"
              }
            },
            "required": [
              "model_id",
              "publication_id",
              "purpose",
              "grant_id",
              "publication_delegation_id",
              "context_id",
              "installation_status",
              "installation"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisOrigin": {
        "enum": [
          "local",
          "imported_prepared",
          "attached_run"
        ],
        "type": "string"
      },
      "AnalysisStage": {
        "enum": [
          "editable",
          "uploading",
          "submission_uncertain",
          "accepted",
          "attachment_incomplete"
        ],
        "type": "string"
      },
      "AnalysisSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "cancellation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CancellationProgress"
                  }
                ]
              },
              "collection": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CollectionProgress"
                  }
                ]
              },
              "directory": {
                "type": "string"
              },
              "disclosure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "input_collections": {
                "items": {
                  "$ref": "#/$defs/InputCollectionProgress"
                },
                "type": "array"
              },
              "input_files": {
                "items": {
                  "$ref": "#/$defs/InputFileProgress"
                },
                "type": "array"
              },
              "next_action": {
                "type": "string"
              },
              "receipt": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/AcceptanceReceipt"
                  }
                ]
              },
              "run": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/RunObservation"
                  }
                ]
              },
              "run_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "stage": {
                "$ref": "#/$defs/AnalysisStage"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "stage",
              "run_id",
              "execution_location",
              "disclosure",
              "input_files",
              "input_collections",
              "receipt",
              "run",
              "collection",
              "cancellation",
              "next_action"
            ],
            "type": "object"
          }
        ]
      },
      "Availability": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "available",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CancellationAttempt": {
        "enum": [
          "pending",
          "acknowledged",
          "uncertain",
          "rejected"
        ],
        "type": "string"
      },
      "CancellationProgress": {
        "additionalProperties": {},
        "properties": {
          "attempt": {
            "$ref": "#/$defs/CancellationAttempt"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/CancellationReceipt"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "receipt",
          "error_code"
        ],
        "type": "object"
      },
      "CancellationReceipt": {
        "properties": {
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "scope": {
            "$ref": "#/$defs/CancellationScope"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          },
          "status": {
            "$ref": "#/$defs/CancellationStatus"
          }
        },
        "required": [
          "run_id",
          "requested_by_user_id",
          "state",
          "status",
          "scope",
          "requested_at",
          "reason",
          "cancelled_at"
        ],
        "type": "object"
      },
      "CancellationScope": {
        "enum": [
          "pending_and_running",
          "queued_only"
        ],
        "type": "string"
      },
      "CancellationStatus": {
        "enum": [
          "requested",
          "confirmed",
          "completed"
        ],
        "type": "string"
      },
      "ChecksumAlgorithm": {
        "enum": [
          "sha256"
        ],
        "type": "string"
      },
      "ChecksumType": {
        "enum": [
          "full_object"
        ],
        "type": "string"
      },
      "CliErrorDetail": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "CliRuntimeError": {
        "properties": {
          "error": {
            "$ref": "#/$defs/CliErrorDetail"
          },
          "retry_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "status": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "status",
          "error",
          "retry_after"
        ],
        "type": "object"
      },
      "CollectedCollection": {
        "properties": {
          "collection_id": {
            "format": "uuid",
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "manifest": {
            "type": "string"
          },
          "manifest_digest": {
            "type": "string"
          },
          "root": {
            "type": "string"
          }
        },
        "required": [
          "collection_id",
          "manifest_digest",
          "manifest",
          "root",
          "complete"
        ],
        "type": "object"
      },
      "CollectedFile": {
        "properties": {
          "artifact_id": {
            "format": "uuid",
            "type": "string"
          },
          "checksum": {
            "$ref": "#/$defs/FullObjectChecksum",
            "description": "Immutable full-object SHA-256 descriptor."
          },
          "logical_name": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "artifact_id",
          "logical_name",
          "media_type",
          "version_id",
          "size_bytes",
          "checksum",
          "path"
        ],
        "type": "object"
      },
      "CollectionProgress": {
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "total_files": {
            "minimum": 0,
            "type": "integer"
          },
          "verified_files": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "verified_files",
          "total_files"
        ],
        "type": "object"
      },
      "CompatibilityCheck": {
        "properties": {
          "component": {
            "type": "string"
          },
          "expected": {},
          "field": {
            "type": "string"
          },
          "observed": {},
          "reason": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          }
        },
        "required": [
          "component",
          "field",
          "status",
          "expected",
          "observed",
          "reason"
        ],
        "type": "object"
      },
      "CompatibilityReceipt": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/$defs/CompatibilityCheck"
            },
            "type": "array"
          },
          "limits": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "selected": {
            "description": "Exact selected identity and evidence hashes; not a component registry."
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          },
          "trust": {
            "$ref": "#/$defs/CompatibilityTrust"
          }
        },
        "required": [
          "schema_version",
          "status",
          "trust",
          "observed_at",
          "selected",
          "checks",
          "limits"
        ],
        "type": "object"
      },
      "CompatibilityStatus": {
        "enum": [
          "match",
          "mismatch",
          "missing_evidence"
        ],
        "type": "string"
      },
      "CompatibilityTrust": {
        "enum": [
          "signed_release",
          "unsigned_development",
          "authenticated_transfer",
          "unverified"
        ],
        "type": "string"
      },
      "EvidenceAvailability": {
        "enum": [
          "retained",
          "unavailable"
        ],
        "type": "string"
      },
      "ExecutionAuthorizationReason": {
        "enum": [
          "model_access_revoked",
          "compute_access_revoked",
          "compute_unavailable",
          "publication_revoked",
          "installation_revoked"
        ],
        "type": "string"
      },
      "ExecutionControl": {
        "properties": {
          "authorization_reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/ExecutionAuthorizationReason"
              }
            ]
          },
          "state": {
            "$ref": "#/$defs/ExecutionControlState"
          }
        },
        "required": [
          "state",
          "authorization_reason"
        ],
        "type": "object"
      },
      "ExecutionControlState": {
        "enum": [
          "authorized",
          "blocked",
          "cancellation_pending",
          "draining",
          "completed"
        ],
        "type": "string"
      },
      "FullObjectChecksum": {
        "properties": {
          "algorithm": {
            "$ref": "#/$defs/ChecksumAlgorithm"
          },
          "checksum_type": {
            "$ref": "#/$defs/ChecksumType"
          },
          "value": {
            "maxLength": 44,
            "minLength": 44,
            "pattern": "^[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$",
            "type": "string"
          }
        },
        "required": [
          "algorithm",
          "checksum_type",
          "value"
        ],
        "type": "object"
      },
      "InputCollectionProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "completed"
        ],
        "type": "object"
      },
      "InputFileProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "source",
          "size_bytes",
          "media_type",
          "completed"
        ],
        "type": "object"
      },
      "InstallationDescriptor": {
        "additionalProperties": false,
        "description": "Internal registration snapshot used by connector configuration and execution evidence.",
        "properties": {
          "entrypoint": {
            "description": "First argument is an executable path relative to release_path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "installation": {
            "$ref": "#/$defs/InstallationIdentity"
          },
          "provider_binding_id": {
            "type": "string"
          },
          "release_path": {
            "type": "string"
          },
          "slurm_script": {
            "description": "Model-supplied batch file relative to release_path; required for Slurm.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider_binding_id",
          "installation",
          "release_path",
          "entrypoint"
        ],
        "type": "object"
      },
      "InstallationIdentity": {
        "additionalProperties": false,
        "description": "Identity claims derived from the retained scientific definition. They do not\nindependently attest the provider's installed software.",
        "properties": {
          "dataset_identities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model_identity": {
            "type": "string"
          },
          "runtime_identity": {
            "type": "string"
          },
          "wrapper_identity": {
            "type": "string"
          },
          "wrapper_protocol_version": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "model_identity",
          "wrapper_identity",
          "runtime_identity",
          "wrapper_protocol_version",
          "dataset_identities"
        ],
        "type": "object"
      },
      "PublicationActivationReceipt": {
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "PublicationDelegation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": "string"
          },
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "grant_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "revocation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "publication_id",
          "grant_id",
          "created_by",
          "user_id",
          "expected_generation",
          "created_at",
          "revoked_at",
          "revocation_reason"
        ],
        "type": "object"
      },
      "PublicationReleaseAuthority": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "can_delegate": {
            "type": "boolean"
          },
          "grant_holder_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "grant_holder_user_id",
          "publication_delegation_id",
          "can_delegate",
          "unavailable_reason",
          "available"
        ],
        "type": "object"
      },
      "PublicationStatus": {
        "enum": [
          "validating",
          "ready",
          "failed",
          "published"
        ],
        "type": "string"
      },
      "PublicationTrialCounts": {
        "properties": {
          "cancelled": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "queued": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "succeeded": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "object"
      },
      "PublicationTrialEvidence": {
        "description": "Bounded management evidence; scientific results remain on authorized run routes.",
        "properties": {
          "counts": {
            "$ref": "#/$defs/PublicationTrialCounts"
          },
          "latest_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          },
          "latest_succeeded_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          }
        },
        "required": [
          "counts",
          "latest_run",
          "latest_succeeded_run"
        ],
        "type": "object"
      },
      "PublicationTrialPurpose": {
        "enum": [
          "candidate_trial"
        ],
        "type": "string"
      },
      "PublicationTrialRun": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/PublicationTrialPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ReleaseComparison": {
        "description": "Scientific comparison evidence. Control decisions use the typed stage,\nauthority, guard and uncertainty fields rather than arbitrary scientific JSON.",
        "properties": {
          "candidate": {},
          "current": {},
          "observed_current": {}
        },
        "required": [
          "current",
          "candidate",
          "observed_current"
        ],
        "type": "object"
      },
      "ReleaseDelegationAttempt": {
        "properties": {
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "response": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationDelegation"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expected_generation"
        ],
        "type": "object"
      },
      "ReleaseStage": {
        "enum": [
          "prepared",
          "validating",
          "ready",
          "reviewed",
          "blocked",
          "activated"
        ],
        "type": "string"
      },
      "ReleaseSummary": {
        "properties": {
          "activation_receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationActivationReceipt"
              }
            ]
          },
          "activation_uncertain": {
            "type": "boolean"
          },
          "blockers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "candidate_is_current": {
            "type": "boolean"
          },
          "candidate_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationStatus"
              }
            ]
          },
          "comparison": {
            "$ref": "#/$defs/ReleaseComparison"
          },
          "current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegation_attempts": {
            "items": {
              "$ref": "#/$defs/ReleaseDelegationAttempt"
            },
            "type": "array"
          },
          "directory": {
            "type": "string"
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "guard_changed": {
            "type": "boolean"
          },
          "model_generation": {
            "format": "int64",
            "type": "integer"
          },
          "model_id": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "operation_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "registration_uncertain": {
            "type": "boolean"
          },
          "release_authority": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationReleaseAuthority"
              }
            ]
          },
          "rollback_source": {},
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "stage": {
            "$ref": "#/$defs/ReleaseStage"
          },
          "trial_availability": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/Availability"
              }
            ]
          },
          "trial_evidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialEvidence"
              }
            ]
          },
          "trial_init_command": {
            "type": [
              "string",
              "null"
            ]
          },
          "validation_message": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "directory",
          "operation_id",
          "model_id",
          "publication_id",
          "stage",
          "candidate_status",
          "blockers",
          "validation_message",
          "model_generation",
          "release_authority",
          "delegation_attempts",
          "current_publication_id",
          "expected_current_publication_id",
          "guard_changed",
          "candidate_is_current",
          "activation_receipt",
          "activation_uncertain",
          "registration_uncertain",
          "comparison",
          "execution_location",
          "disclosure",
          "trial_availability",
          "trial_evidence",
          "trial_init_command",
          "rollback_source",
          "next_command",
          "next_action"
        ],
        "type": "object"
      },
      "RunObservation": {
        "additionalProperties": {},
        "description": "Decision-bearing run fields are typed; scientific and diagnostic additions\nremain available in the same object without being mistaken for authority.",
        "properties": {
          "execution_control": {
            "$ref": "#/$defs/ExecutionControl"
          },
          "model_id": {
            "type": "string"
          },
          "phase": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/RunPhase"
              }
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "state",
          "phase",
          "execution_control"
        ],
        "type": "object"
      },
      "RunPhase": {
        "description": "Monotonic progress within an assignment, not proof that an outcome is final.",
        "enum": [
          "preparing",
          "waiting_for_backend",
          "executing",
          "collecting_results",
          "uploading_results"
        ],
        "type": "string"
      },
      "RunPurpose": {
        "description": "Immutable submission intent. Candidate trials retain author/compute authority checks.",
        "enum": [
          "standard",
          "candidate_trial"
        ],
        "type": "string"
      },
      "RunState": {
        "description": "Public execution state. Delegated preparation and collection are `running`.",
        "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "SchemaVersion": {
        "maximum": 1,
        "minimum": 1,
        "type": "integer"
      },
      "SourceEvidence": {
        "properties": {
          "api_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by_user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence": {
            "additionalProperties": {
              "$ref": "#/$defs/EvidenceAvailability"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_identity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/InstallationIdentity"
              }
            ]
          },
          "origin": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/AnalysisOrigin"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "$id": "https://doc.enumeray.com/contracts/cli-output-v1/analysis-collection-summary.json",
    "$ref": "#/$defs/AnalysisCollectionSummary",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  },
  "analysis-summary": {
    "$defs": {
      "AcceptanceReceipt": {
        "description": "The original acceptance observation; it is never updated to current run state.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/RunPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/AcceptanceState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "AcceptanceState": {
        "enum": [
          "queued"
        ],
        "type": "string"
      },
      "AnalysisCollectionSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "bundle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "collections": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedCollection"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "complete": {
                "type": "boolean"
              },
              "directory": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedFile"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "run_id": {
                "format": "uuid",
                "type": "string"
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "scientific_state": {
                "$ref": "#/$defs/RunState"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "run_id",
              "complete",
              "bundle",
              "scientific_state",
              "outputs",
              "collections"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisIdentity": {
        "allOf": [
          {
            "$ref": "#/$defs/SourceEvidence"
          },
          {
            "properties": {
              "context_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "grant_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "installation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/InstallationDescriptor"
                  }
                ]
              },
              "installation_status": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/PublicationStatus"
                  }
                ]
              },
              "model_id": {
                "type": "string"
              },
              "publication_delegation_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "publication_id": {
                "type": "string"
              },
              "purpose": {
                "$ref": "#/$defs/RunPurpose"
              }
            },
            "required": [
              "model_id",
              "publication_id",
              "purpose",
              "grant_id",
              "publication_delegation_id",
              "context_id",
              "installation_status",
              "installation"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisOrigin": {
        "enum": [
          "local",
          "imported_prepared",
          "attached_run"
        ],
        "type": "string"
      },
      "AnalysisStage": {
        "enum": [
          "editable",
          "uploading",
          "submission_uncertain",
          "accepted",
          "attachment_incomplete"
        ],
        "type": "string"
      },
      "AnalysisSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "cancellation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CancellationProgress"
                  }
                ]
              },
              "collection": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CollectionProgress"
                  }
                ]
              },
              "directory": {
                "type": "string"
              },
              "disclosure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "input_collections": {
                "items": {
                  "$ref": "#/$defs/InputCollectionProgress"
                },
                "type": "array"
              },
              "input_files": {
                "items": {
                  "$ref": "#/$defs/InputFileProgress"
                },
                "type": "array"
              },
              "next_action": {
                "type": "string"
              },
              "receipt": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/AcceptanceReceipt"
                  }
                ]
              },
              "run": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/RunObservation"
                  }
                ]
              },
              "run_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "stage": {
                "$ref": "#/$defs/AnalysisStage"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "stage",
              "run_id",
              "execution_location",
              "disclosure",
              "input_files",
              "input_collections",
              "receipt",
              "run",
              "collection",
              "cancellation",
              "next_action"
            ],
            "type": "object"
          }
        ]
      },
      "Availability": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "available",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CancellationAttempt": {
        "enum": [
          "pending",
          "acknowledged",
          "uncertain",
          "rejected"
        ],
        "type": "string"
      },
      "CancellationProgress": {
        "additionalProperties": {},
        "properties": {
          "attempt": {
            "$ref": "#/$defs/CancellationAttempt"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/CancellationReceipt"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "receipt",
          "error_code"
        ],
        "type": "object"
      },
      "CancellationReceipt": {
        "properties": {
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "scope": {
            "$ref": "#/$defs/CancellationScope"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          },
          "status": {
            "$ref": "#/$defs/CancellationStatus"
          }
        },
        "required": [
          "run_id",
          "requested_by_user_id",
          "state",
          "status",
          "scope",
          "requested_at",
          "reason",
          "cancelled_at"
        ],
        "type": "object"
      },
      "CancellationScope": {
        "enum": [
          "pending_and_running",
          "queued_only"
        ],
        "type": "string"
      },
      "CancellationStatus": {
        "enum": [
          "requested",
          "confirmed",
          "completed"
        ],
        "type": "string"
      },
      "ChecksumAlgorithm": {
        "enum": [
          "sha256"
        ],
        "type": "string"
      },
      "ChecksumType": {
        "enum": [
          "full_object"
        ],
        "type": "string"
      },
      "CliErrorDetail": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "CliRuntimeError": {
        "properties": {
          "error": {
            "$ref": "#/$defs/CliErrorDetail"
          },
          "retry_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "status": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "status",
          "error",
          "retry_after"
        ],
        "type": "object"
      },
      "CollectedCollection": {
        "properties": {
          "collection_id": {
            "format": "uuid",
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "manifest": {
            "type": "string"
          },
          "manifest_digest": {
            "type": "string"
          },
          "root": {
            "type": "string"
          }
        },
        "required": [
          "collection_id",
          "manifest_digest",
          "manifest",
          "root",
          "complete"
        ],
        "type": "object"
      },
      "CollectedFile": {
        "properties": {
          "artifact_id": {
            "format": "uuid",
            "type": "string"
          },
          "checksum": {
            "$ref": "#/$defs/FullObjectChecksum",
            "description": "Immutable full-object SHA-256 descriptor."
          },
          "logical_name": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "artifact_id",
          "logical_name",
          "media_type",
          "version_id",
          "size_bytes",
          "checksum",
          "path"
        ],
        "type": "object"
      },
      "CollectionProgress": {
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "total_files": {
            "minimum": 0,
            "type": "integer"
          },
          "verified_files": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "verified_files",
          "total_files"
        ],
        "type": "object"
      },
      "CompatibilityCheck": {
        "properties": {
          "component": {
            "type": "string"
          },
          "expected": {},
          "field": {
            "type": "string"
          },
          "observed": {},
          "reason": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          }
        },
        "required": [
          "component",
          "field",
          "status",
          "expected",
          "observed",
          "reason"
        ],
        "type": "object"
      },
      "CompatibilityReceipt": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/$defs/CompatibilityCheck"
            },
            "type": "array"
          },
          "limits": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "selected": {
            "description": "Exact selected identity and evidence hashes; not a component registry."
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          },
          "trust": {
            "$ref": "#/$defs/CompatibilityTrust"
          }
        },
        "required": [
          "schema_version",
          "status",
          "trust",
          "observed_at",
          "selected",
          "checks",
          "limits"
        ],
        "type": "object"
      },
      "CompatibilityStatus": {
        "enum": [
          "match",
          "mismatch",
          "missing_evidence"
        ],
        "type": "string"
      },
      "CompatibilityTrust": {
        "enum": [
          "signed_release",
          "unsigned_development",
          "authenticated_transfer",
          "unverified"
        ],
        "type": "string"
      },
      "EvidenceAvailability": {
        "enum": [
          "retained",
          "unavailable"
        ],
        "type": "string"
      },
      "ExecutionAuthorizationReason": {
        "enum": [
          "model_access_revoked",
          "compute_access_revoked",
          "compute_unavailable",
          "publication_revoked",
          "installation_revoked"
        ],
        "type": "string"
      },
      "ExecutionControl": {
        "properties": {
          "authorization_reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/ExecutionAuthorizationReason"
              }
            ]
          },
          "state": {
            "$ref": "#/$defs/ExecutionControlState"
          }
        },
        "required": [
          "state",
          "authorization_reason"
        ],
        "type": "object"
      },
      "ExecutionControlState": {
        "enum": [
          "authorized",
          "blocked",
          "cancellation_pending",
          "draining",
          "completed"
        ],
        "type": "string"
      },
      "FullObjectChecksum": {
        "properties": {
          "algorithm": {
            "$ref": "#/$defs/ChecksumAlgorithm"
          },
          "checksum_type": {
            "$ref": "#/$defs/ChecksumType"
          },
          "value": {
            "maxLength": 44,
            "minLength": 44,
            "pattern": "^[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$",
            "type": "string"
          }
        },
        "required": [
          "algorithm",
          "checksum_type",
          "value"
        ],
        "type": "object"
      },
      "InputCollectionProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "completed"
        ],
        "type": "object"
      },
      "InputFileProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "source",
          "size_bytes",
          "media_type",
          "completed"
        ],
        "type": "object"
      },
      "InstallationDescriptor": {
        "additionalProperties": false,
        "description": "Internal registration snapshot used by connector configuration and execution evidence.",
        "properties": {
          "entrypoint": {
            "description": "First argument is an executable path relative to release_path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "installation": {
            "$ref": "#/$defs/InstallationIdentity"
          },
          "provider_binding_id": {
            "type": "string"
          },
          "release_path": {
            "type": "string"
          },
          "slurm_script": {
            "description": "Model-supplied batch file relative to release_path; required for Slurm.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider_binding_id",
          "installation",
          "release_path",
          "entrypoint"
        ],
        "type": "object"
      },
      "InstallationIdentity": {
        "additionalProperties": false,
        "description": "Identity claims derived from the retained scientific definition. They do not\nindependently attest the provider's installed software.",
        "properties": {
          "dataset_identities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model_identity": {
            "type": "string"
          },
          "runtime_identity": {
            "type": "string"
          },
          "wrapper_identity": {
            "type": "string"
          },
          "wrapper_protocol_version": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "model_identity",
          "wrapper_identity",
          "runtime_identity",
          "wrapper_protocol_version",
          "dataset_identities"
        ],
        "type": "object"
      },
      "PublicationActivationReceipt": {
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "PublicationDelegation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": "string"
          },
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "grant_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "revocation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "publication_id",
          "grant_id",
          "created_by",
          "user_id",
          "expected_generation",
          "created_at",
          "revoked_at",
          "revocation_reason"
        ],
        "type": "object"
      },
      "PublicationReleaseAuthority": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "can_delegate": {
            "type": "boolean"
          },
          "grant_holder_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "grant_holder_user_id",
          "publication_delegation_id",
          "can_delegate",
          "unavailable_reason",
          "available"
        ],
        "type": "object"
      },
      "PublicationStatus": {
        "enum": [
          "validating",
          "ready",
          "failed",
          "published"
        ],
        "type": "string"
      },
      "PublicationTrialCounts": {
        "properties": {
          "cancelled": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "queued": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "succeeded": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "object"
      },
      "PublicationTrialEvidence": {
        "description": "Bounded management evidence; scientific results remain on authorized run routes.",
        "properties": {
          "counts": {
            "$ref": "#/$defs/PublicationTrialCounts"
          },
          "latest_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          },
          "latest_succeeded_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          }
        },
        "required": [
          "counts",
          "latest_run",
          "latest_succeeded_run"
        ],
        "type": "object"
      },
      "PublicationTrialPurpose": {
        "enum": [
          "candidate_trial"
        ],
        "type": "string"
      },
      "PublicationTrialRun": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/PublicationTrialPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ReleaseComparison": {
        "description": "Scientific comparison evidence. Control decisions use the typed stage,\nauthority, guard and uncertainty fields rather than arbitrary scientific JSON.",
        "properties": {
          "candidate": {},
          "current": {},
          "observed_current": {}
        },
        "required": [
          "current",
          "candidate",
          "observed_current"
        ],
        "type": "object"
      },
      "ReleaseDelegationAttempt": {
        "properties": {
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "response": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationDelegation"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expected_generation"
        ],
        "type": "object"
      },
      "ReleaseStage": {
        "enum": [
          "prepared",
          "validating",
          "ready",
          "reviewed",
          "blocked",
          "activated"
        ],
        "type": "string"
      },
      "ReleaseSummary": {
        "properties": {
          "activation_receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationActivationReceipt"
              }
            ]
          },
          "activation_uncertain": {
            "type": "boolean"
          },
          "blockers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "candidate_is_current": {
            "type": "boolean"
          },
          "candidate_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationStatus"
              }
            ]
          },
          "comparison": {
            "$ref": "#/$defs/ReleaseComparison"
          },
          "current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegation_attempts": {
            "items": {
              "$ref": "#/$defs/ReleaseDelegationAttempt"
            },
            "type": "array"
          },
          "directory": {
            "type": "string"
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "guard_changed": {
            "type": "boolean"
          },
          "model_generation": {
            "format": "int64",
            "type": "integer"
          },
          "model_id": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "operation_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "registration_uncertain": {
            "type": "boolean"
          },
          "release_authority": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationReleaseAuthority"
              }
            ]
          },
          "rollback_source": {},
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "stage": {
            "$ref": "#/$defs/ReleaseStage"
          },
          "trial_availability": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/Availability"
              }
            ]
          },
          "trial_evidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialEvidence"
              }
            ]
          },
          "trial_init_command": {
            "type": [
              "string",
              "null"
            ]
          },
          "validation_message": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "directory",
          "operation_id",
          "model_id",
          "publication_id",
          "stage",
          "candidate_status",
          "blockers",
          "validation_message",
          "model_generation",
          "release_authority",
          "delegation_attempts",
          "current_publication_id",
          "expected_current_publication_id",
          "guard_changed",
          "candidate_is_current",
          "activation_receipt",
          "activation_uncertain",
          "registration_uncertain",
          "comparison",
          "execution_location",
          "disclosure",
          "trial_availability",
          "trial_evidence",
          "trial_init_command",
          "rollback_source",
          "next_command",
          "next_action"
        ],
        "type": "object"
      },
      "RunObservation": {
        "additionalProperties": {},
        "description": "Decision-bearing run fields are typed; scientific and diagnostic additions\nremain available in the same object without being mistaken for authority.",
        "properties": {
          "execution_control": {
            "$ref": "#/$defs/ExecutionControl"
          },
          "model_id": {
            "type": "string"
          },
          "phase": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/RunPhase"
              }
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "state",
          "phase",
          "execution_control"
        ],
        "type": "object"
      },
      "RunPhase": {
        "description": "Monotonic progress within an assignment, not proof that an outcome is final.",
        "enum": [
          "preparing",
          "waiting_for_backend",
          "executing",
          "collecting_results",
          "uploading_results"
        ],
        "type": "string"
      },
      "RunPurpose": {
        "description": "Immutable submission intent. Candidate trials retain author/compute authority checks.",
        "enum": [
          "standard",
          "candidate_trial"
        ],
        "type": "string"
      },
      "RunState": {
        "description": "Public execution state. Delegated preparation and collection are `running`.",
        "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "SchemaVersion": {
        "maximum": 1,
        "minimum": 1,
        "type": "integer"
      },
      "SourceEvidence": {
        "properties": {
          "api_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by_user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence": {
            "additionalProperties": {
              "$ref": "#/$defs/EvidenceAvailability"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_identity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/InstallationIdentity"
              }
            ]
          },
          "origin": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/AnalysisOrigin"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "$id": "https://doc.enumeray.com/contracts/cli-output-v1/analysis-summary.json",
    "$ref": "#/$defs/AnalysisSummary",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  },
  "compatibility-receipt": {
    "$defs": {
      "AcceptanceReceipt": {
        "description": "The original acceptance observation; it is never updated to current run state.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/RunPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/AcceptanceState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "AcceptanceState": {
        "enum": [
          "queued"
        ],
        "type": "string"
      },
      "AnalysisCollectionSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "bundle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "collections": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedCollection"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "complete": {
                "type": "boolean"
              },
              "directory": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedFile"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "run_id": {
                "format": "uuid",
                "type": "string"
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "scientific_state": {
                "$ref": "#/$defs/RunState"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "run_id",
              "complete",
              "bundle",
              "scientific_state",
              "outputs",
              "collections"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisIdentity": {
        "allOf": [
          {
            "$ref": "#/$defs/SourceEvidence"
          },
          {
            "properties": {
              "context_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "grant_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "installation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/InstallationDescriptor"
                  }
                ]
              },
              "installation_status": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/PublicationStatus"
                  }
                ]
              },
              "model_id": {
                "type": "string"
              },
              "publication_delegation_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "publication_id": {
                "type": "string"
              },
              "purpose": {
                "$ref": "#/$defs/RunPurpose"
              }
            },
            "required": [
              "model_id",
              "publication_id",
              "purpose",
              "grant_id",
              "publication_delegation_id",
              "context_id",
              "installation_status",
              "installation"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisOrigin": {
        "enum": [
          "local",
          "imported_prepared",
          "attached_run"
        ],
        "type": "string"
      },
      "AnalysisStage": {
        "enum": [
          "editable",
          "uploading",
          "submission_uncertain",
          "accepted",
          "attachment_incomplete"
        ],
        "type": "string"
      },
      "AnalysisSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "cancellation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CancellationProgress"
                  }
                ]
              },
              "collection": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CollectionProgress"
                  }
                ]
              },
              "directory": {
                "type": "string"
              },
              "disclosure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "input_collections": {
                "items": {
                  "$ref": "#/$defs/InputCollectionProgress"
                },
                "type": "array"
              },
              "input_files": {
                "items": {
                  "$ref": "#/$defs/InputFileProgress"
                },
                "type": "array"
              },
              "next_action": {
                "type": "string"
              },
              "receipt": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/AcceptanceReceipt"
                  }
                ]
              },
              "run": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/RunObservation"
                  }
                ]
              },
              "run_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "stage": {
                "$ref": "#/$defs/AnalysisStage"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "stage",
              "run_id",
              "execution_location",
              "disclosure",
              "input_files",
              "input_collections",
              "receipt",
              "run",
              "collection",
              "cancellation",
              "next_action"
            ],
            "type": "object"
          }
        ]
      },
      "Availability": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "available",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CancellationAttempt": {
        "enum": [
          "pending",
          "acknowledged",
          "uncertain",
          "rejected"
        ],
        "type": "string"
      },
      "CancellationProgress": {
        "additionalProperties": {},
        "properties": {
          "attempt": {
            "$ref": "#/$defs/CancellationAttempt"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/CancellationReceipt"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "receipt",
          "error_code"
        ],
        "type": "object"
      },
      "CancellationReceipt": {
        "properties": {
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "scope": {
            "$ref": "#/$defs/CancellationScope"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          },
          "status": {
            "$ref": "#/$defs/CancellationStatus"
          }
        },
        "required": [
          "run_id",
          "requested_by_user_id",
          "state",
          "status",
          "scope",
          "requested_at",
          "reason",
          "cancelled_at"
        ],
        "type": "object"
      },
      "CancellationScope": {
        "enum": [
          "pending_and_running",
          "queued_only"
        ],
        "type": "string"
      },
      "CancellationStatus": {
        "enum": [
          "requested",
          "confirmed",
          "completed"
        ],
        "type": "string"
      },
      "ChecksumAlgorithm": {
        "enum": [
          "sha256"
        ],
        "type": "string"
      },
      "ChecksumType": {
        "enum": [
          "full_object"
        ],
        "type": "string"
      },
      "CliErrorDetail": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "CliRuntimeError": {
        "properties": {
          "error": {
            "$ref": "#/$defs/CliErrorDetail"
          },
          "retry_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "status": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "status",
          "error",
          "retry_after"
        ],
        "type": "object"
      },
      "CollectedCollection": {
        "properties": {
          "collection_id": {
            "format": "uuid",
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "manifest": {
            "type": "string"
          },
          "manifest_digest": {
            "type": "string"
          },
          "root": {
            "type": "string"
          }
        },
        "required": [
          "collection_id",
          "manifest_digest",
          "manifest",
          "root",
          "complete"
        ],
        "type": "object"
      },
      "CollectedFile": {
        "properties": {
          "artifact_id": {
            "format": "uuid",
            "type": "string"
          },
          "checksum": {
            "$ref": "#/$defs/FullObjectChecksum",
            "description": "Immutable full-object SHA-256 descriptor."
          },
          "logical_name": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "artifact_id",
          "logical_name",
          "media_type",
          "version_id",
          "size_bytes",
          "checksum",
          "path"
        ],
        "type": "object"
      },
      "CollectionProgress": {
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "total_files": {
            "minimum": 0,
            "type": "integer"
          },
          "verified_files": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "verified_files",
          "total_files"
        ],
        "type": "object"
      },
      "CompatibilityCheck": {
        "properties": {
          "component": {
            "type": "string"
          },
          "expected": {},
          "field": {
            "type": "string"
          },
          "observed": {},
          "reason": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          }
        },
        "required": [
          "component",
          "field",
          "status",
          "expected",
          "observed",
          "reason"
        ],
        "type": "object"
      },
      "CompatibilityReceipt": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/$defs/CompatibilityCheck"
            },
            "type": "array"
          },
          "limits": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "selected": {
            "description": "Exact selected identity and evidence hashes; not a component registry."
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          },
          "trust": {
            "$ref": "#/$defs/CompatibilityTrust"
          }
        },
        "required": [
          "schema_version",
          "status",
          "trust",
          "observed_at",
          "selected",
          "checks",
          "limits"
        ],
        "type": "object"
      },
      "CompatibilityStatus": {
        "enum": [
          "match",
          "mismatch",
          "missing_evidence"
        ],
        "type": "string"
      },
      "CompatibilityTrust": {
        "enum": [
          "signed_release",
          "unsigned_development",
          "authenticated_transfer",
          "unverified"
        ],
        "type": "string"
      },
      "EvidenceAvailability": {
        "enum": [
          "retained",
          "unavailable"
        ],
        "type": "string"
      },
      "ExecutionAuthorizationReason": {
        "enum": [
          "model_access_revoked",
          "compute_access_revoked",
          "compute_unavailable",
          "publication_revoked",
          "installation_revoked"
        ],
        "type": "string"
      },
      "ExecutionControl": {
        "properties": {
          "authorization_reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/ExecutionAuthorizationReason"
              }
            ]
          },
          "state": {
            "$ref": "#/$defs/ExecutionControlState"
          }
        },
        "required": [
          "state",
          "authorization_reason"
        ],
        "type": "object"
      },
      "ExecutionControlState": {
        "enum": [
          "authorized",
          "blocked",
          "cancellation_pending",
          "draining",
          "completed"
        ],
        "type": "string"
      },
      "FullObjectChecksum": {
        "properties": {
          "algorithm": {
            "$ref": "#/$defs/ChecksumAlgorithm"
          },
          "checksum_type": {
            "$ref": "#/$defs/ChecksumType"
          },
          "value": {
            "maxLength": 44,
            "minLength": 44,
            "pattern": "^[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$",
            "type": "string"
          }
        },
        "required": [
          "algorithm",
          "checksum_type",
          "value"
        ],
        "type": "object"
      },
      "InputCollectionProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "completed"
        ],
        "type": "object"
      },
      "InputFileProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "source",
          "size_bytes",
          "media_type",
          "completed"
        ],
        "type": "object"
      },
      "InstallationDescriptor": {
        "additionalProperties": false,
        "description": "Internal registration snapshot used by connector configuration and execution evidence.",
        "properties": {
          "entrypoint": {
            "description": "First argument is an executable path relative to release_path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "installation": {
            "$ref": "#/$defs/InstallationIdentity"
          },
          "provider_binding_id": {
            "type": "string"
          },
          "release_path": {
            "type": "string"
          },
          "slurm_script": {
            "description": "Model-supplied batch file relative to release_path; required for Slurm.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider_binding_id",
          "installation",
          "release_path",
          "entrypoint"
        ],
        "type": "object"
      },
      "InstallationIdentity": {
        "additionalProperties": false,
        "description": "Identity claims derived from the retained scientific definition. They do not\nindependently attest the provider's installed software.",
        "properties": {
          "dataset_identities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model_identity": {
            "type": "string"
          },
          "runtime_identity": {
            "type": "string"
          },
          "wrapper_identity": {
            "type": "string"
          },
          "wrapper_protocol_version": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "model_identity",
          "wrapper_identity",
          "runtime_identity",
          "wrapper_protocol_version",
          "dataset_identities"
        ],
        "type": "object"
      },
      "PublicationActivationReceipt": {
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "PublicationDelegation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": "string"
          },
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "grant_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "revocation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "publication_id",
          "grant_id",
          "created_by",
          "user_id",
          "expected_generation",
          "created_at",
          "revoked_at",
          "revocation_reason"
        ],
        "type": "object"
      },
      "PublicationReleaseAuthority": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "can_delegate": {
            "type": "boolean"
          },
          "grant_holder_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "grant_holder_user_id",
          "publication_delegation_id",
          "can_delegate",
          "unavailable_reason",
          "available"
        ],
        "type": "object"
      },
      "PublicationStatus": {
        "enum": [
          "validating",
          "ready",
          "failed",
          "published"
        ],
        "type": "string"
      },
      "PublicationTrialCounts": {
        "properties": {
          "cancelled": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "queued": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "succeeded": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "object"
      },
      "PublicationTrialEvidence": {
        "description": "Bounded management evidence; scientific results remain on authorized run routes.",
        "properties": {
          "counts": {
            "$ref": "#/$defs/PublicationTrialCounts"
          },
          "latest_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          },
          "latest_succeeded_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          }
        },
        "required": [
          "counts",
          "latest_run",
          "latest_succeeded_run"
        ],
        "type": "object"
      },
      "PublicationTrialPurpose": {
        "enum": [
          "candidate_trial"
        ],
        "type": "string"
      },
      "PublicationTrialRun": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/PublicationTrialPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ReleaseComparison": {
        "description": "Scientific comparison evidence. Control decisions use the typed stage,\nauthority, guard and uncertainty fields rather than arbitrary scientific JSON.",
        "properties": {
          "candidate": {},
          "current": {},
          "observed_current": {}
        },
        "required": [
          "current",
          "candidate",
          "observed_current"
        ],
        "type": "object"
      },
      "ReleaseDelegationAttempt": {
        "properties": {
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "response": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationDelegation"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expected_generation"
        ],
        "type": "object"
      },
      "ReleaseStage": {
        "enum": [
          "prepared",
          "validating",
          "ready",
          "reviewed",
          "blocked",
          "activated"
        ],
        "type": "string"
      },
      "ReleaseSummary": {
        "properties": {
          "activation_receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationActivationReceipt"
              }
            ]
          },
          "activation_uncertain": {
            "type": "boolean"
          },
          "blockers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "candidate_is_current": {
            "type": "boolean"
          },
          "candidate_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationStatus"
              }
            ]
          },
          "comparison": {
            "$ref": "#/$defs/ReleaseComparison"
          },
          "current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegation_attempts": {
            "items": {
              "$ref": "#/$defs/ReleaseDelegationAttempt"
            },
            "type": "array"
          },
          "directory": {
            "type": "string"
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "guard_changed": {
            "type": "boolean"
          },
          "model_generation": {
            "format": "int64",
            "type": "integer"
          },
          "model_id": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "operation_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "registration_uncertain": {
            "type": "boolean"
          },
          "release_authority": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationReleaseAuthority"
              }
            ]
          },
          "rollback_source": {},
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "stage": {
            "$ref": "#/$defs/ReleaseStage"
          },
          "trial_availability": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/Availability"
              }
            ]
          },
          "trial_evidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialEvidence"
              }
            ]
          },
          "trial_init_command": {
            "type": [
              "string",
              "null"
            ]
          },
          "validation_message": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "directory",
          "operation_id",
          "model_id",
          "publication_id",
          "stage",
          "candidate_status",
          "blockers",
          "validation_message",
          "model_generation",
          "release_authority",
          "delegation_attempts",
          "current_publication_id",
          "expected_current_publication_id",
          "guard_changed",
          "candidate_is_current",
          "activation_receipt",
          "activation_uncertain",
          "registration_uncertain",
          "comparison",
          "execution_location",
          "disclosure",
          "trial_availability",
          "trial_evidence",
          "trial_init_command",
          "rollback_source",
          "next_command",
          "next_action"
        ],
        "type": "object"
      },
      "RunObservation": {
        "additionalProperties": {},
        "description": "Decision-bearing run fields are typed; scientific and diagnostic additions\nremain available in the same object without being mistaken for authority.",
        "properties": {
          "execution_control": {
            "$ref": "#/$defs/ExecutionControl"
          },
          "model_id": {
            "type": "string"
          },
          "phase": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/RunPhase"
              }
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "state",
          "phase",
          "execution_control"
        ],
        "type": "object"
      },
      "RunPhase": {
        "description": "Monotonic progress within an assignment, not proof that an outcome is final.",
        "enum": [
          "preparing",
          "waiting_for_backend",
          "executing",
          "collecting_results",
          "uploading_results"
        ],
        "type": "string"
      },
      "RunPurpose": {
        "description": "Immutable submission intent. Candidate trials retain author/compute authority checks.",
        "enum": [
          "standard",
          "candidate_trial"
        ],
        "type": "string"
      },
      "RunState": {
        "description": "Public execution state. Delegated preparation and collection are `running`.",
        "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "SchemaVersion": {
        "maximum": 1,
        "minimum": 1,
        "type": "integer"
      },
      "SourceEvidence": {
        "properties": {
          "api_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by_user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence": {
            "additionalProperties": {
              "$ref": "#/$defs/EvidenceAvailability"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_identity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/InstallationIdentity"
              }
            ]
          },
          "origin": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/AnalysisOrigin"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "$id": "https://doc.enumeray.com/contracts/cli-output-v1/compatibility-receipt.json",
    "$ref": "#/$defs/CompatibilityReceipt",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  },
  "release-summary": {
    "$defs": {
      "AcceptanceReceipt": {
        "description": "The original acceptance observation; it is never updated to current run state.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/RunPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/AcceptanceState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "AcceptanceState": {
        "enum": [
          "queued"
        ],
        "type": "string"
      },
      "AnalysisCollectionSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "bundle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "collections": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedCollection"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "complete": {
                "type": "boolean"
              },
              "directory": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedFile"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "run_id": {
                "format": "uuid",
                "type": "string"
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "scientific_state": {
                "$ref": "#/$defs/RunState"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "run_id",
              "complete",
              "bundle",
              "scientific_state",
              "outputs",
              "collections"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisIdentity": {
        "allOf": [
          {
            "$ref": "#/$defs/SourceEvidence"
          },
          {
            "properties": {
              "context_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "grant_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "installation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/InstallationDescriptor"
                  }
                ]
              },
              "installation_status": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/PublicationStatus"
                  }
                ]
              },
              "model_id": {
                "type": "string"
              },
              "publication_delegation_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "publication_id": {
                "type": "string"
              },
              "purpose": {
                "$ref": "#/$defs/RunPurpose"
              }
            },
            "required": [
              "model_id",
              "publication_id",
              "purpose",
              "grant_id",
              "publication_delegation_id",
              "context_id",
              "installation_status",
              "installation"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisOrigin": {
        "enum": [
          "local",
          "imported_prepared",
          "attached_run"
        ],
        "type": "string"
      },
      "AnalysisStage": {
        "enum": [
          "editable",
          "uploading",
          "submission_uncertain",
          "accepted",
          "attachment_incomplete"
        ],
        "type": "string"
      },
      "AnalysisSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "cancellation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CancellationProgress"
                  }
                ]
              },
              "collection": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CollectionProgress"
                  }
                ]
              },
              "directory": {
                "type": "string"
              },
              "disclosure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "input_collections": {
                "items": {
                  "$ref": "#/$defs/InputCollectionProgress"
                },
                "type": "array"
              },
              "input_files": {
                "items": {
                  "$ref": "#/$defs/InputFileProgress"
                },
                "type": "array"
              },
              "next_action": {
                "type": "string"
              },
              "receipt": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/AcceptanceReceipt"
                  }
                ]
              },
              "run": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/RunObservation"
                  }
                ]
              },
              "run_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "stage": {
                "$ref": "#/$defs/AnalysisStage"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "stage",
              "run_id",
              "execution_location",
              "disclosure",
              "input_files",
              "input_collections",
              "receipt",
              "run",
              "collection",
              "cancellation",
              "next_action"
            ],
            "type": "object"
          }
        ]
      },
      "Availability": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "available",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CancellationAttempt": {
        "enum": [
          "pending",
          "acknowledged",
          "uncertain",
          "rejected"
        ],
        "type": "string"
      },
      "CancellationProgress": {
        "additionalProperties": {},
        "properties": {
          "attempt": {
            "$ref": "#/$defs/CancellationAttempt"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/CancellationReceipt"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "receipt",
          "error_code"
        ],
        "type": "object"
      },
      "CancellationReceipt": {
        "properties": {
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "scope": {
            "$ref": "#/$defs/CancellationScope"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          },
          "status": {
            "$ref": "#/$defs/CancellationStatus"
          }
        },
        "required": [
          "run_id",
          "requested_by_user_id",
          "state",
          "status",
          "scope",
          "requested_at",
          "reason",
          "cancelled_at"
        ],
        "type": "object"
      },
      "CancellationScope": {
        "enum": [
          "pending_and_running",
          "queued_only"
        ],
        "type": "string"
      },
      "CancellationStatus": {
        "enum": [
          "requested",
          "confirmed",
          "completed"
        ],
        "type": "string"
      },
      "ChecksumAlgorithm": {
        "enum": [
          "sha256"
        ],
        "type": "string"
      },
      "ChecksumType": {
        "enum": [
          "full_object"
        ],
        "type": "string"
      },
      "CliErrorDetail": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "CliRuntimeError": {
        "properties": {
          "error": {
            "$ref": "#/$defs/CliErrorDetail"
          },
          "retry_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "status": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "status",
          "error",
          "retry_after"
        ],
        "type": "object"
      },
      "CollectedCollection": {
        "properties": {
          "collection_id": {
            "format": "uuid",
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "manifest": {
            "type": "string"
          },
          "manifest_digest": {
            "type": "string"
          },
          "root": {
            "type": "string"
          }
        },
        "required": [
          "collection_id",
          "manifest_digest",
          "manifest",
          "root",
          "complete"
        ],
        "type": "object"
      },
      "CollectedFile": {
        "properties": {
          "artifact_id": {
            "format": "uuid",
            "type": "string"
          },
          "checksum": {
            "$ref": "#/$defs/FullObjectChecksum",
            "description": "Immutable full-object SHA-256 descriptor."
          },
          "logical_name": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "artifact_id",
          "logical_name",
          "media_type",
          "version_id",
          "size_bytes",
          "checksum",
          "path"
        ],
        "type": "object"
      },
      "CollectionProgress": {
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "total_files": {
            "minimum": 0,
            "type": "integer"
          },
          "verified_files": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "verified_files",
          "total_files"
        ],
        "type": "object"
      },
      "CompatibilityCheck": {
        "properties": {
          "component": {
            "type": "string"
          },
          "expected": {},
          "field": {
            "type": "string"
          },
          "observed": {},
          "reason": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          }
        },
        "required": [
          "component",
          "field",
          "status",
          "expected",
          "observed",
          "reason"
        ],
        "type": "object"
      },
      "CompatibilityReceipt": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/$defs/CompatibilityCheck"
            },
            "type": "array"
          },
          "limits": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "selected": {
            "description": "Exact selected identity and evidence hashes; not a component registry."
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          },
          "trust": {
            "$ref": "#/$defs/CompatibilityTrust"
          }
        },
        "required": [
          "schema_version",
          "status",
          "trust",
          "observed_at",
          "selected",
          "checks",
          "limits"
        ],
        "type": "object"
      },
      "CompatibilityStatus": {
        "enum": [
          "match",
          "mismatch",
          "missing_evidence"
        ],
        "type": "string"
      },
      "CompatibilityTrust": {
        "enum": [
          "signed_release",
          "unsigned_development",
          "authenticated_transfer",
          "unverified"
        ],
        "type": "string"
      },
      "EvidenceAvailability": {
        "enum": [
          "retained",
          "unavailable"
        ],
        "type": "string"
      },
      "ExecutionAuthorizationReason": {
        "enum": [
          "model_access_revoked",
          "compute_access_revoked",
          "compute_unavailable",
          "publication_revoked",
          "installation_revoked"
        ],
        "type": "string"
      },
      "ExecutionControl": {
        "properties": {
          "authorization_reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/ExecutionAuthorizationReason"
              }
            ]
          },
          "state": {
            "$ref": "#/$defs/ExecutionControlState"
          }
        },
        "required": [
          "state",
          "authorization_reason"
        ],
        "type": "object"
      },
      "ExecutionControlState": {
        "enum": [
          "authorized",
          "blocked",
          "cancellation_pending",
          "draining",
          "completed"
        ],
        "type": "string"
      },
      "FullObjectChecksum": {
        "properties": {
          "algorithm": {
            "$ref": "#/$defs/ChecksumAlgorithm"
          },
          "checksum_type": {
            "$ref": "#/$defs/ChecksumType"
          },
          "value": {
            "maxLength": 44,
            "minLength": 44,
            "pattern": "^[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$",
            "type": "string"
          }
        },
        "required": [
          "algorithm",
          "checksum_type",
          "value"
        ],
        "type": "object"
      },
      "InputCollectionProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "completed"
        ],
        "type": "object"
      },
      "InputFileProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "source",
          "size_bytes",
          "media_type",
          "completed"
        ],
        "type": "object"
      },
      "InstallationDescriptor": {
        "additionalProperties": false,
        "description": "Internal registration snapshot used by connector configuration and execution evidence.",
        "properties": {
          "entrypoint": {
            "description": "First argument is an executable path relative to release_path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "installation": {
            "$ref": "#/$defs/InstallationIdentity"
          },
          "provider_binding_id": {
            "type": "string"
          },
          "release_path": {
            "type": "string"
          },
          "slurm_script": {
            "description": "Model-supplied batch file relative to release_path; required for Slurm.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider_binding_id",
          "installation",
          "release_path",
          "entrypoint"
        ],
        "type": "object"
      },
      "InstallationIdentity": {
        "additionalProperties": false,
        "description": "Identity claims derived from the retained scientific definition. They do not\nindependently attest the provider's installed software.",
        "properties": {
          "dataset_identities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model_identity": {
            "type": "string"
          },
          "runtime_identity": {
            "type": "string"
          },
          "wrapper_identity": {
            "type": "string"
          },
          "wrapper_protocol_version": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "model_identity",
          "wrapper_identity",
          "runtime_identity",
          "wrapper_protocol_version",
          "dataset_identities"
        ],
        "type": "object"
      },
      "PublicationActivationReceipt": {
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "PublicationDelegation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": "string"
          },
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "grant_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "revocation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "publication_id",
          "grant_id",
          "created_by",
          "user_id",
          "expected_generation",
          "created_at",
          "revoked_at",
          "revocation_reason"
        ],
        "type": "object"
      },
      "PublicationReleaseAuthority": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "can_delegate": {
            "type": "boolean"
          },
          "grant_holder_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "grant_holder_user_id",
          "publication_delegation_id",
          "can_delegate",
          "unavailable_reason",
          "available"
        ],
        "type": "object"
      },
      "PublicationStatus": {
        "enum": [
          "validating",
          "ready",
          "failed",
          "published"
        ],
        "type": "string"
      },
      "PublicationTrialCounts": {
        "properties": {
          "cancelled": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "queued": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "succeeded": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "object"
      },
      "PublicationTrialEvidence": {
        "description": "Bounded management evidence; scientific results remain on authorized run routes.",
        "properties": {
          "counts": {
            "$ref": "#/$defs/PublicationTrialCounts"
          },
          "latest_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          },
          "latest_succeeded_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          }
        },
        "required": [
          "counts",
          "latest_run",
          "latest_succeeded_run"
        ],
        "type": "object"
      },
      "PublicationTrialPurpose": {
        "enum": [
          "candidate_trial"
        ],
        "type": "string"
      },
      "PublicationTrialRun": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/PublicationTrialPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ReleaseComparison": {
        "description": "Scientific comparison evidence. Control decisions use the typed stage,\nauthority, guard and uncertainty fields rather than arbitrary scientific JSON.",
        "properties": {
          "candidate": {},
          "current": {},
          "observed_current": {}
        },
        "required": [
          "current",
          "candidate",
          "observed_current"
        ],
        "type": "object"
      },
      "ReleaseDelegationAttempt": {
        "properties": {
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "response": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationDelegation"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expected_generation"
        ],
        "type": "object"
      },
      "ReleaseStage": {
        "enum": [
          "prepared",
          "validating",
          "ready",
          "reviewed",
          "blocked",
          "activated"
        ],
        "type": "string"
      },
      "ReleaseSummary": {
        "properties": {
          "activation_receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationActivationReceipt"
              }
            ]
          },
          "activation_uncertain": {
            "type": "boolean"
          },
          "blockers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "candidate_is_current": {
            "type": "boolean"
          },
          "candidate_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationStatus"
              }
            ]
          },
          "comparison": {
            "$ref": "#/$defs/ReleaseComparison"
          },
          "current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegation_attempts": {
            "items": {
              "$ref": "#/$defs/ReleaseDelegationAttempt"
            },
            "type": "array"
          },
          "directory": {
            "type": "string"
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "guard_changed": {
            "type": "boolean"
          },
          "model_generation": {
            "format": "int64",
            "type": "integer"
          },
          "model_id": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "operation_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "registration_uncertain": {
            "type": "boolean"
          },
          "release_authority": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationReleaseAuthority"
              }
            ]
          },
          "rollback_source": {},
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "stage": {
            "$ref": "#/$defs/ReleaseStage"
          },
          "trial_availability": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/Availability"
              }
            ]
          },
          "trial_evidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialEvidence"
              }
            ]
          },
          "trial_init_command": {
            "type": [
              "string",
              "null"
            ]
          },
          "validation_message": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "directory",
          "operation_id",
          "model_id",
          "publication_id",
          "stage",
          "candidate_status",
          "blockers",
          "validation_message",
          "model_generation",
          "release_authority",
          "delegation_attempts",
          "current_publication_id",
          "expected_current_publication_id",
          "guard_changed",
          "candidate_is_current",
          "activation_receipt",
          "activation_uncertain",
          "registration_uncertain",
          "comparison",
          "execution_location",
          "disclosure",
          "trial_availability",
          "trial_evidence",
          "trial_init_command",
          "rollback_source",
          "next_command",
          "next_action"
        ],
        "type": "object"
      },
      "RunObservation": {
        "additionalProperties": {},
        "description": "Decision-bearing run fields are typed; scientific and diagnostic additions\nremain available in the same object without being mistaken for authority.",
        "properties": {
          "execution_control": {
            "$ref": "#/$defs/ExecutionControl"
          },
          "model_id": {
            "type": "string"
          },
          "phase": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/RunPhase"
              }
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "state",
          "phase",
          "execution_control"
        ],
        "type": "object"
      },
      "RunPhase": {
        "description": "Monotonic progress within an assignment, not proof that an outcome is final.",
        "enum": [
          "preparing",
          "waiting_for_backend",
          "executing",
          "collecting_results",
          "uploading_results"
        ],
        "type": "string"
      },
      "RunPurpose": {
        "description": "Immutable submission intent. Candidate trials retain author/compute authority checks.",
        "enum": [
          "standard",
          "candidate_trial"
        ],
        "type": "string"
      },
      "RunState": {
        "description": "Public execution state. Delegated preparation and collection are `running`.",
        "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "SchemaVersion": {
        "maximum": 1,
        "minimum": 1,
        "type": "integer"
      },
      "SourceEvidence": {
        "properties": {
          "api_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by_user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence": {
            "additionalProperties": {
              "$ref": "#/$defs/EvidenceAvailability"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_identity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/InstallationIdentity"
              }
            ]
          },
          "origin": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/AnalysisOrigin"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "$id": "https://doc.enumeray.com/contracts/cli-output-v1/release-summary.json",
    "$ref": "#/$defs/ReleaseSummary",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  },
  "runtime-error": {
    "$defs": {
      "AcceptanceReceipt": {
        "description": "The original acceptance observation; it is never updated to current run state.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/RunPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/AcceptanceState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "AcceptanceState": {
        "enum": [
          "queued"
        ],
        "type": "string"
      },
      "AnalysisCollectionSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "bundle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "collections": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedCollection"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "complete": {
                "type": "boolean"
              },
              "directory": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/$defs/CollectedFile"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "run_id": {
                "format": "uuid",
                "type": "string"
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "scientific_state": {
                "$ref": "#/$defs/RunState"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "run_id",
              "complete",
              "bundle",
              "scientific_state",
              "outputs",
              "collections"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisIdentity": {
        "allOf": [
          {
            "$ref": "#/$defs/SourceEvidence"
          },
          {
            "properties": {
              "context_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "grant_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "installation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/InstallationDescriptor"
                  }
                ]
              },
              "installation_status": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/PublicationStatus"
                  }
                ]
              },
              "model_id": {
                "type": "string"
              },
              "publication_delegation_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "publication_id": {
                "type": "string"
              },
              "purpose": {
                "$ref": "#/$defs/RunPurpose"
              }
            },
            "required": [
              "model_id",
              "publication_id",
              "purpose",
              "grant_id",
              "publication_delegation_id",
              "context_id",
              "installation_status",
              "installation"
            ],
            "type": "object"
          }
        ]
      },
      "AnalysisOrigin": {
        "enum": [
          "local",
          "imported_prepared",
          "attached_run"
        ],
        "type": "string"
      },
      "AnalysisStage": {
        "enum": [
          "editable",
          "uploading",
          "submission_uncertain",
          "accepted",
          "attachment_incomplete"
        ],
        "type": "string"
      },
      "AnalysisSummary": {
        "allOf": [
          {
            "$ref": "#/$defs/AnalysisIdentity"
          },
          {
            "properties": {
              "cancellation": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CancellationProgress"
                  }
                ]
              },
              "collection": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/CollectionProgress"
                  }
                ]
              },
              "directory": {
                "type": "string"
              },
              "disclosure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "input_collections": {
                "items": {
                  "$ref": "#/$defs/InputCollectionProgress"
                },
                "type": "array"
              },
              "input_files": {
                "items": {
                  "$ref": "#/$defs/InputFileProgress"
                },
                "type": "array"
              },
              "next_action": {
                "type": "string"
              },
              "receipt": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/AcceptanceReceipt"
                  }
                ]
              },
              "run": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/RunObservation"
                  }
                ]
              },
              "run_id": {
                "format": "uuid",
                "type": [
                  "string",
                  "null"
                ]
              },
              "schema_version": {
                "$ref": "#/$defs/SchemaVersion"
              },
              "stage": {
                "$ref": "#/$defs/AnalysisStage"
              }
            },
            "required": [
              "schema_version",
              "directory",
              "stage",
              "run_id",
              "execution_location",
              "disclosure",
              "input_files",
              "input_collections",
              "receipt",
              "run",
              "collection",
              "cancellation",
              "next_action"
            ],
            "type": "object"
          }
        ]
      },
      "Availability": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "available",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CancellationAttempt": {
        "enum": [
          "pending",
          "acknowledged",
          "uncertain",
          "rejected"
        ],
        "type": "string"
      },
      "CancellationProgress": {
        "additionalProperties": {},
        "properties": {
          "attempt": {
            "$ref": "#/$defs/CancellationAttempt"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/CancellationReceipt"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "receipt",
          "error_code"
        ],
        "type": "object"
      },
      "CancellationReceipt": {
        "properties": {
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "scope": {
            "$ref": "#/$defs/CancellationScope"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          },
          "status": {
            "$ref": "#/$defs/CancellationStatus"
          }
        },
        "required": [
          "run_id",
          "requested_by_user_id",
          "state",
          "status",
          "scope",
          "requested_at",
          "reason",
          "cancelled_at"
        ],
        "type": "object"
      },
      "CancellationScope": {
        "enum": [
          "pending_and_running",
          "queued_only"
        ],
        "type": "string"
      },
      "CancellationStatus": {
        "enum": [
          "requested",
          "confirmed",
          "completed"
        ],
        "type": "string"
      },
      "ChecksumAlgorithm": {
        "enum": [
          "sha256"
        ],
        "type": "string"
      },
      "ChecksumType": {
        "enum": [
          "full_object"
        ],
        "type": "string"
      },
      "CliErrorDetail": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "CliRuntimeError": {
        "properties": {
          "error": {
            "$ref": "#/$defs/CliErrorDetail"
          },
          "retry_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "status": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "status",
          "error",
          "retry_after"
        ],
        "type": "object"
      },
      "CollectedCollection": {
        "properties": {
          "collection_id": {
            "format": "uuid",
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "manifest": {
            "type": "string"
          },
          "manifest_digest": {
            "type": "string"
          },
          "root": {
            "type": "string"
          }
        },
        "required": [
          "collection_id",
          "manifest_digest",
          "manifest",
          "root",
          "complete"
        ],
        "type": "object"
      },
      "CollectedFile": {
        "properties": {
          "artifact_id": {
            "format": "uuid",
            "type": "string"
          },
          "checksum": {
            "$ref": "#/$defs/FullObjectChecksum",
            "description": "Immutable full-object SHA-256 descriptor."
          },
          "logical_name": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "artifact_id",
          "logical_name",
          "media_type",
          "version_id",
          "size_bytes",
          "checksum",
          "path"
        ],
        "type": "object"
      },
      "CollectionProgress": {
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "total_files": {
            "minimum": 0,
            "type": "integer"
          },
          "verified_files": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "verified_files",
          "total_files"
        ],
        "type": "object"
      },
      "CompatibilityCheck": {
        "properties": {
          "component": {
            "type": "string"
          },
          "expected": {},
          "field": {
            "type": "string"
          },
          "observed": {},
          "reason": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          }
        },
        "required": [
          "component",
          "field",
          "status",
          "expected",
          "observed",
          "reason"
        ],
        "type": "object"
      },
      "CompatibilityReceipt": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/$defs/CompatibilityCheck"
            },
            "type": "array"
          },
          "limits": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "selected": {
            "description": "Exact selected identity and evidence hashes; not a component registry."
          },
          "status": {
            "$ref": "#/$defs/CompatibilityStatus"
          },
          "trust": {
            "$ref": "#/$defs/CompatibilityTrust"
          }
        },
        "required": [
          "schema_version",
          "status",
          "trust",
          "observed_at",
          "selected",
          "checks",
          "limits"
        ],
        "type": "object"
      },
      "CompatibilityStatus": {
        "enum": [
          "match",
          "mismatch",
          "missing_evidence"
        ],
        "type": "string"
      },
      "CompatibilityTrust": {
        "enum": [
          "signed_release",
          "unsigned_development",
          "authenticated_transfer",
          "unverified"
        ],
        "type": "string"
      },
      "EvidenceAvailability": {
        "enum": [
          "retained",
          "unavailable"
        ],
        "type": "string"
      },
      "ExecutionAuthorizationReason": {
        "enum": [
          "model_access_revoked",
          "compute_access_revoked",
          "compute_unavailable",
          "publication_revoked",
          "installation_revoked"
        ],
        "type": "string"
      },
      "ExecutionControl": {
        "properties": {
          "authorization_reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/ExecutionAuthorizationReason"
              }
            ]
          },
          "state": {
            "$ref": "#/$defs/ExecutionControlState"
          }
        },
        "required": [
          "state",
          "authorization_reason"
        ],
        "type": "object"
      },
      "ExecutionControlState": {
        "enum": [
          "authorized",
          "blocked",
          "cancellation_pending",
          "draining",
          "completed"
        ],
        "type": "string"
      },
      "FullObjectChecksum": {
        "properties": {
          "algorithm": {
            "$ref": "#/$defs/ChecksumAlgorithm"
          },
          "checksum_type": {
            "$ref": "#/$defs/ChecksumType"
          },
          "value": {
            "maxLength": 44,
            "minLength": 44,
            "pattern": "^[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$",
            "type": "string"
          }
        },
        "required": [
          "algorithm",
          "checksum_type",
          "value"
        ],
        "type": "object"
      },
      "InputCollectionProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "completed"
        ],
        "type": "object"
      },
      "InputFileProgress": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "size_bytes": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "slot",
          "source",
          "size_bytes",
          "media_type",
          "completed"
        ],
        "type": "object"
      },
      "InstallationDescriptor": {
        "additionalProperties": false,
        "description": "Internal registration snapshot used by connector configuration and execution evidence.",
        "properties": {
          "entrypoint": {
            "description": "First argument is an executable path relative to release_path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "installation": {
            "$ref": "#/$defs/InstallationIdentity"
          },
          "provider_binding_id": {
            "type": "string"
          },
          "release_path": {
            "type": "string"
          },
          "slurm_script": {
            "description": "Model-supplied batch file relative to release_path; required for Slurm.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider_binding_id",
          "installation",
          "release_path",
          "entrypoint"
        ],
        "type": "object"
      },
      "InstallationIdentity": {
        "additionalProperties": false,
        "description": "Identity claims derived from the retained scientific definition. They do not\nindependently attest the provider's installed software.",
        "properties": {
          "dataset_identities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model_identity": {
            "type": "string"
          },
          "runtime_identity": {
            "type": "string"
          },
          "wrapper_identity": {
            "type": "string"
          },
          "wrapper_protocol_version": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "model_identity",
          "wrapper_identity",
          "runtime_identity",
          "wrapper_protocol_version",
          "dataset_identities"
        ],
        "type": "object"
      },
      "PublicationActivationReceipt": {
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "PublicationDelegation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": "string"
          },
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "grant_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "revocation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "publication_id",
          "grant_id",
          "created_by",
          "user_id",
          "expected_generation",
          "created_at",
          "revoked_at",
          "revocation_reason"
        ],
        "type": "object"
      },
      "PublicationReleaseAuthority": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "can_delegate": {
            "type": "boolean"
          },
          "grant_holder_user_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_delegation_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "unavailable_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "grant_holder_user_id",
          "publication_delegation_id",
          "can_delegate",
          "unavailable_reason",
          "available"
        ],
        "type": "object"
      },
      "PublicationStatus": {
        "enum": [
          "validating",
          "ready",
          "failed",
          "published"
        ],
        "type": "string"
      },
      "PublicationTrialCounts": {
        "properties": {
          "cancelled": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "queued": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "succeeded": {
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "object"
      },
      "PublicationTrialEvidence": {
        "description": "Bounded management evidence; scientific results remain on authorized run routes.",
        "properties": {
          "counts": {
            "$ref": "#/$defs/PublicationTrialCounts"
          },
          "latest_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          },
          "latest_succeeded_run": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialRun"
              }
            ]
          }
        },
        "required": [
          "counts",
          "latest_run",
          "latest_succeeded_run"
        ],
        "type": "object"
      },
      "PublicationTrialPurpose": {
        "enum": [
          "candidate_trial"
        ],
        "type": "string"
      },
      "PublicationTrialRun": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "purpose": {
            "$ref": "#/$defs/PublicationTrialPurpose"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "publication_id",
          "purpose",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ReleaseComparison": {
        "description": "Scientific comparison evidence. Control decisions use the typed stage,\nauthority, guard and uncertainty fields rather than arbitrary scientific JSON.",
        "properties": {
          "candidate": {},
          "current": {},
          "observed_current": {}
        },
        "required": [
          "current",
          "candidate",
          "observed_current"
        ],
        "type": "object"
      },
      "ReleaseDelegationAttempt": {
        "properties": {
          "expected_generation": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "response": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationDelegation"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expected_generation"
        ],
        "type": "object"
      },
      "ReleaseStage": {
        "enum": [
          "prepared",
          "validating",
          "ready",
          "reviewed",
          "blocked",
          "activated"
        ],
        "type": "string"
      },
      "ReleaseSummary": {
        "properties": {
          "activation_receipt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationActivationReceipt"
              }
            ]
          },
          "activation_uncertain": {
            "type": "boolean"
          },
          "blockers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "candidate_is_current": {
            "type": "boolean"
          },
          "candidate_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationStatus"
              }
            ]
          },
          "comparison": {
            "$ref": "#/$defs/ReleaseComparison"
          },
          "current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegation_attempts": {
            "items": {
              "$ref": "#/$defs/ReleaseDelegationAttempt"
            },
            "type": "array"
          },
          "directory": {
            "type": "string"
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_current_publication_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "guard_changed": {
            "type": "boolean"
          },
          "model_generation": {
            "format": "int64",
            "type": "integer"
          },
          "model_id": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "operation_id": {
            "format": "uuid",
            "type": "string"
          },
          "publication_id": {
            "type": "string"
          },
          "registration_uncertain": {
            "type": "boolean"
          },
          "release_authority": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationReleaseAuthority"
              }
            ]
          },
          "rollback_source": {},
          "schema_version": {
            "$ref": "#/$defs/SchemaVersion"
          },
          "stage": {
            "$ref": "#/$defs/ReleaseStage"
          },
          "trial_availability": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/Availability"
              }
            ]
          },
          "trial_evidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/PublicationTrialEvidence"
              }
            ]
          },
          "trial_init_command": {
            "type": [
              "string",
              "null"
            ]
          },
          "validation_message": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "schema_version",
          "directory",
          "operation_id",
          "model_id",
          "publication_id",
          "stage",
          "candidate_status",
          "blockers",
          "validation_message",
          "model_generation",
          "release_authority",
          "delegation_attempts",
          "current_publication_id",
          "expected_current_publication_id",
          "guard_changed",
          "candidate_is_current",
          "activation_receipt",
          "activation_uncertain",
          "registration_uncertain",
          "comparison",
          "execution_location",
          "disclosure",
          "trial_availability",
          "trial_evidence",
          "trial_init_command",
          "rollback_source",
          "next_command",
          "next_action"
        ],
        "type": "object"
      },
      "RunObservation": {
        "additionalProperties": {},
        "description": "Decision-bearing run fields are typed; scientific and diagnostic additions\nremain available in the same object without being mistaken for authority.",
        "properties": {
          "execution_control": {
            "$ref": "#/$defs/ExecutionControl"
          },
          "model_id": {
            "type": "string"
          },
          "phase": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/RunPhase"
              }
            ]
          },
          "publication_id": {
            "type": "string"
          },
          "run_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "$ref": "#/$defs/RunState"
          }
        },
        "required": [
          "run_id",
          "model_id",
          "publication_id",
          "state",
          "phase",
          "execution_control"
        ],
        "type": "object"
      },
      "RunPhase": {
        "description": "Monotonic progress within an assignment, not proof that an outcome is final.",
        "enum": [
          "preparing",
          "waiting_for_backend",
          "executing",
          "collecting_results",
          "uploading_results"
        ],
        "type": "string"
      },
      "RunPurpose": {
        "description": "Immutable submission intent. Candidate trials retain author/compute authority checks.",
        "enum": [
          "standard",
          "candidate_trial"
        ],
        "type": "string"
      },
      "RunState": {
        "description": "Public execution state. Delegated preparation and collection are `running`.",
        "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "SchemaVersion": {
        "maximum": 1,
        "minimum": 1,
        "type": "integer"
      },
      "SourceEvidence": {
        "properties": {
          "api_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by_user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence": {
            "additionalProperties": {
              "$ref": "#/$defs/EvidenceAvailability"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "execution_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_identity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/InstallationIdentity"
              }
            ]
          },
          "origin": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/$defs/AnalysisOrigin"
              }
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "$id": "https://doc.enumeray.com/contracts/cli-output-v1/runtime-error.json",
    "$ref": "#/$defs/CliRuntimeError",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  }
}
