| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "$id": "https://automedbench.github.io/schemas/full-release-task-v2.json", |
| "title": "AutoMedBench Full data-free task package", |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "schema_version", |
| "package_type", |
| "track", |
| "website_task_id", |
| "evaluator_task_id", |
| "tiers", |
| "source", |
| "evaluator", |
| "dataset", |
| "input_contract", |
| "output_contract", |
| "runtime_assets" |
| ], |
| "properties": { |
| "schema_version": {"const": 2}, |
| "package_type": {"const": "automedbench_task_harness"}, |
| "track": { |
| "enum": [ |
| "segmentation", |
| "enhancement", |
| "vqa", |
| "report", |
| "detection", |
| "classification", |
| "synthetic" |
| ] |
| }, |
| "website_task_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$"}, |
| "evaluator_task_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$"}, |
| "tiers": { |
| "type": "array", |
| "prefixItems": [{"const": "lite"}, {"const": "standard"}], |
| "items": false, |
| "minItems": 2, |
| "maxItems": 2 |
| }, |
| "source": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["ref", "config_path", "config_sha256", "staging_manifest_sha256"], |
| "properties": { |
| "ref": {"type": "string", "minLength": 1}, |
| "config_path": { |
| "type": "string", |
| "pattern": "^source/(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$" |
| }, |
| "config_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, |
| "staging_manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"} |
| } |
| }, |
| "evaluator": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["adapter", "entrypoint", "network_required"], |
| "properties": { |
| "adapter": {"type": "string", "minLength": 1}, |
| "entrypoint": {"type": "string", "pattern": "^source/"}, |
| "network_required": {"const": false} |
| } |
| }, |
| "dataset": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "included", |
| "data_dir_name", |
| "policy", |
| "access", |
| "license", |
| "upstream", |
| "upstream_url", |
| "release_gate", |
| "public_mount", |
| "private_mount" |
| ], |
| "properties": { |
| "included": {"const": false}, |
| "data_dir_name": {"type": "string"}, |
| "policy": { |
| "enum": ["redistributable", "download_required", "restricted", "unknown"] |
| }, |
| "access": {"type": "string"}, |
| "license": {"type": "string"}, |
| "upstream": {"type": "string", "minLength": 1}, |
| "upstream_url": {"type": "string", "pattern": "^https://"}, |
| "release_gate": {"type": "string"}, |
| "public_mount": {"const": "/data/public"}, |
| "private_mount": {"const": "/data/private"} |
| } |
| }, |
| "input_contract": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["unit", "filename"], |
| "properties": { |
| "unit": {"enum": ["case", "question"]}, |
| "filename": {"type": ["string", "null"]} |
| } |
| }, |
| "output_contract": {"type": "object", "minProperties": 2}, |
| "runtime_assets": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "name", |
| "destination", |
| "required_for_tiers", |
| "provisioning", |
| "integrity", |
| "included" |
| ], |
| "properties": { |
| "name": {"type": "string", "minLength": 1}, |
| "destination": {"type": "string", "pattern": "^/models/"}, |
| "required_for_tiers": { |
| "type": "array", |
| "items": {"enum": ["lite", "standard"]}, |
| "minItems": 1, |
| "uniqueItems": true |
| }, |
| "provisioning": {"const": "user_supplied_read_only_mount"}, |
| "integrity": {"const": "sha256_must_be_verified_before_use"}, |
| "included": {"const": false} |
| } |
| } |
| } |
| } |
| } |
|
|