| Field | Value |
| Identifier | urn:obsp:schema:v3.1:modelmanifest |
|---|
| Dialect | https://json-schema.org/draft/2020-12/schema |
|---|
| Used by functions | Admit |
Properties
| Property | Required | Type | Description |
schemaVersion | yes | reference | |
modelUni | yes | reference | |
name | yes | reference | |
artifactDigest | yes | reference | |
format | yes | string | |
framework | no | string | |
runtimeCandidates | yes | array | |
modalities | no | array | |
precision | no | string | |
quantization | no | string | |
resourceRequirements | no | object | |
rights | yes | object | |
evaluationProfile | yes | string | |
evaluationRefs | no | array | |
prohibitedUses | no | array | |
rollbackArtifactDigest | no | reference | |
extensions | no | reference | |
Positive fixtures
model-manifest.valid.json
Negative fixtures
model-manifest.malformed-artifact-digest.json: the artifact digest must be alg:hex with 32-128 hex characters; a truncated or non-hex digest identifies nothingmodel-manifest.missing-rights.json: a model manifest states its rights; rights is required (no model without a use grant)
Mappings to open standards
A mapping to a standard, never a conformance statement.
- maps to NS-1 Identifier and artifact catalog (UNI) (relation REL-NS-1)
- maps to NS-12 Software, models and AI/ML artifacts (relation REL-NS-12)
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:modelmanifest",
"title": "ModelManifest",
"type": "object",
"required": [
"modelUni",
"name",
"artifactDigest",
"format",
"runtimeCandidates",
"rights",
"evaluationProfile",
"schemaVersion"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"modelUni": {
"$ref": "#/$defs/Uni"
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"artifactDigest": {
"$ref": "#/$defs/Digest"
},
"format": {
"type": "string",
"minLength": 1
},
"framework": {
"type": "string",
"minLength": 1
},
"runtimeCandidates": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
}
},
"modalities": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"precision": {
"type": "string",
"minLength": 1
},
"quantization": {
"type": "string",
"minLength": 1
},
"resourceRequirements": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number",
"boolean",
"integer"
]
}
},
"rights": {
"type": "object",
"required": [
"use"
],
"properties": {
"use": {
"type": "string",
"minLength": 1
},
"redistribution": {
"type": "string"
},
"dataRestrictions": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"evaluationProfile": {
"type": "string",
"minLength": 1
},
"evaluationRefs": {
"type": "array",
"items": {
"$ref": "#/$defs/EvidenceRef"
}
},
"prohibitedUses": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"rollbackArtifactDigest": {
"$ref": "#/$defs/Digest"
},
"extensions": {
"$ref": "#/$defs/Extensions"
}
},
"$defs": {
"Uni": {
"type": "string",
"minLength": 8,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$",
"description": "Durable UNI or typed unresolved identifier according to authority rules"
},
"Digest": {
"type": "string",
"pattern": "^[a-z0-9]+:[A-Fa-f0-9]{32,128}$",
"description": "alg:hex digest"
},
"IsoDateTime": {
"type": "string",
"format": "date-time"
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"EvidenceRef": {
"type": "object",
"required": [
"uri",
"digest"
],
"properties": {
"uri": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"digest": {
"$ref": "#/$defs/Digest"
},
"kind": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"recordedAt": {
"$ref": "#/$defs/IsoDateTime"
}
},
"additionalProperties": false
},
"StateVector": {
"type": "object",
"required": [
"implementationState",
"verificationState",
"operationalState",
"claimState",
"correctionState"
],
"properties": {
"implementationState": {
"enum": [
"NOT_STARTED",
"DECLARED",
"SCAFFOLDED",
"IMPLEMENTED",
"INTEGRATED"
]
},
"serviceState": {
"enum": [
"NOT_DEPLOYED",
"STARTING",
"AVAILABLE",
"DEGRADED",
"UNAVAILABLE"
]
},
"verificationState": {
"enum": [
"NOT_TESTED",
"TESTED",
"INTEGRATION_VERIFIED",
"INDEPENDENTLY_ASSESSED"
]
},
"operationalState": {
"enum": [
"NOT_OBSERVED",
"LAB_OBSERVED",
"PILOT_OBSERVED",
"PRODUCTION_OBSERVED"
]
},
"releaseState": {
"enum": [
"INTERNAL",
"LAB",
"PILOT",
"CONTROLLED_RELEASE",
"CONTROLLED_GA",
"RETIRED"
]
},
"claimState": {
"enum": [
"NOT_PERMITTED",
"QUALIFIED",
"PERMITTED_FOR_SCOPE"
]
},
"correctionState": {
"enum": [
"CURRENT",
"DISPUTED",
"SUPERSEDED",
"WITHDRAWN",
"RECALLED"
]
}
},
"additionalProperties": false
},
"Extensions": {
"type": "object",
"description": "Namespaced extension bag; unknown top-level fields remain forbidden.",
"propertyNames": {
"pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
},
"additionalProperties": true
},
"SchemaVersion": {
"type": "string",
"const": "3.1.0"
}
},
"additionalProperties": false
}