File size: 4,105 Bytes
f894057
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
  "$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}
        }
      }
    }
  }
}