Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

3.0 KB
Raw Blame
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://osmantic.com/pixel/schemas/work-model-qualification-maintenance-v1.schema.json",
  "title": "Pixel exact local-model qualification maintenance configuration v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["$schema", "schemaVersion", "qualificationDockerConfigPath", "custody", "production", "boundary"],
  "properties": {
    "$schema": {"const": "https://osmantic.com/pixel/schemas/work-model-qualification-maintenance-v1.schema.json"},
    "schemaVersion": {"const": 1},
    "qualificationDockerConfigPath": {"$ref": "#/$defs/path"},
    "custody": {"$ref": "#/$defs/custody"},
    "production": {
      "type": "object",
      "additionalProperties": false,
      "required": ["containerName", "containerId", "imageDigest", "expectedStartedAt", "expectedRestartCount", "stopTimeoutSeconds", "restoreTimeoutSeconds", "probeIntervalMilliseconds", "readinessOrigin", "readinessModelId", "maxResponseBytes"],
      "properties": {
        "containerName": {"type": "string", "pattern": "^[a-z0-9][a-z0-9_.-]{0,127}$"},
        "containerId": {"type": "string", "pattern": "^[a-f0-9]{64}$", "not": {"const": "0000000000000000000000000000000000000000000000000000000000000000"}},
        "imageDigest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "not": {"const": "sha256:0000000000000000000000000000000000000000000000000000000000000000"}},
        "expectedStartedAt": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,9})?Z$"},
        "expectedRestartCount": {"type": "integer", "minimum": 0, "maximum": 2147483647},
        "stopTimeoutSeconds": {"type": "integer", "minimum": 10, "maximum": 600},
        "restoreTimeoutSeconds": {"type": "integer", "minimum": 60, "maximum": 7200},
        "probeIntervalMilliseconds": {"type": "integer", "minimum": 250, "maximum": 10000},
        "readinessOrigin": {"type": "string", "pattern": "^http://127\\.0\\.0\\.1:[0-9]{4,5}$"},
        "readinessModelId": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:+/-]{0,127}$"},
        "maxResponseBytes": {"type": "integer", "minimum": 1024, "maximum": 1048576}
      }
    },
    "boundary": {"const": "Owner-private exact maintenance binding for one production container and one local-model qualification operation. Configuration grants no stop, start, inference, credential, external network, external effect, deployment, completion, publication, acceptance, or promotion authority."}
  },
  "$defs": {
    "path": {"type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^[^\\u0000\\r\\n]+$"},
    "custody": {
      "type": "object",
      "additionalProperties": false,
      "required": ["kind", "lockPath", "acquireTimeoutSeconds"],
      "properties": {
        "kind": {"const": "advisory-flock"},
        "lockPath": {"$ref": "#/$defs/path"},
        "acquireTimeoutSeconds": {"type": "integer", "minimum": 1, "maximum": 300}
      }
    }
  }
}