| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "$id": "https://huggingface.co/datasets/egobowwow/egobowwow-1k/resolve/v1.0.0/schemas/eval-common.schema.json", |
| "title": "EgoBowWow multimodal evaluation shared types", |
| "description": "Closed types shared by frozen tasksets, contestant submissions, and evaluator results. Time on evidence media is always integer nanoseconds on a named clock; masks and other bulky values are content-addressed references, never embedded media.", |
| "$defs": { |
| "identifier": { |
| "type": "string", |
| "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$", |
| "maxLength": 192 |
| }, |
| "sha256": { |
| "type": "string", |
| "pattern": "^sha256:[0-9a-f]{64}$" |
| }, |
| "artifactId": { |
| "type": "string", |
| "pattern": "^artifact:sha256:[0-9a-f]{64}$" |
| }, |
| "tasksetId": { |
| "type": "string", |
| "pattern": "^eval-taskset:[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*:[0-9]+\\.[0-9]+\\.[0-9]+$" |
| }, |
| "taskId": { |
| "type": "string", |
| "pattern": "^eval-task:sha256:[0-9a-f]{64}$" |
| }, |
| "evidenceBundleId": { |
| "type": "string", |
| "pattern": "^evidence-bundle:sha256:[0-9a-f]{64}$" |
| }, |
| "submissionId": { |
| "type": "string", |
| "pattern": "^eval-submission:sha256:[0-9a-f]{64}$" |
| }, |
| "resultId": { |
| "type": "string", |
| "pattern": "^eval-result:sha256:[0-9a-f]{64}$" |
| }, |
| "gradeId": { |
| "type": "string", |
| "pattern": "^eval-grade:sha256:[0-9a-f]{64}$" |
| }, |
| "traceId": { |
| "type": "string", |
| "pattern": "^eval-trace:sha256:[0-9a-f]{64}$" |
| }, |
| "nonNegativeNanoseconds": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "positiveNanoseconds": { |
| "type": "integer", |
| "minimum": 1 |
| }, |
| "probability": { |
| "type": "number", |
| "minimum": 0, |
| "maximum": 1 |
| }, |
| "role": { |
| "enum": ["contestant", "judge", "organizer", "auditor"] |
| }, |
| "labelKind": { |
| "enum": [ |
| "text_class", |
| "temporal_span", |
| "box_2d", |
| "mask_ref", |
| "keypoints_2d", |
| "keypoints_3d", |
| "pose_3d", |
| "trajectory_3d", |
| "audio_event", |
| "object_relation", |
| "state_transition", |
| "action_chunk", |
| "proprio_series" |
| ] |
| }, |
| "interval": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["clock_id", "start_ns", "end_ns"], |
| "properties": { |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "start_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "end_ns": {"$ref": "#/$defs/positiveNanoseconds"} |
| }, |
| "$comment": "The semantic validator enforces start_ns < end_ns; intervals are half-open [start_ns,end_ns)." |
| }, |
| "artifactPointer": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["artifact_id", "content_sha256", "media_type"], |
| "properties": { |
| "artifact_id": {"$ref": "#/$defs/artifactId"}, |
| "content_sha256": {"$ref": "#/$defs/sha256"}, |
| "media_type": { |
| "type": "string", |
| "pattern": "^[A-Za-z0-9!#$&^_.+-]+/[A-Za-z0-9!#$&^_.+-]+$", |
| "maxLength": 127 |
| } |
| }, |
| "$comment": "artifact_id must equal artifact: + content_sha256; checked semantically. No locator, media bytes, credentials, or local path is permitted here." |
| }, |
| "uncertainty": { |
| "oneOf": [ |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["kind"], |
| "properties": {"kind": {"const": "not_reported"}} |
| }, |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["kind", "standard_deviation", "unit"], |
| "properties": { |
| "kind": {"const": "scalar_standard_deviation"}, |
| "standard_deviation": {"type": "number", "minimum": 0}, |
| "unit": {"type": "string", "minLength": 1, "maxLength": 64} |
| } |
| }, |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["kind", "dimension", "row_major_covariance", "unit"], |
| "properties": { |
| "kind": {"const": "covariance"}, |
| "dimension": {"type": "integer", "minimum": 1, "maximum": 64}, |
| "row_major_covariance": { |
| "type": "array", |
| "minItems": 1, |
| "maxItems": 4096, |
| "items": {"type": "number"} |
| }, |
| "unit": {"type": "string", "minLength": 1, "maxLength": 64} |
| }, |
| "$comment": "The semantic validator enforces dimension squared entries." |
| } |
| ] |
| }, |
| "visibility": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["state", "visible_fraction"], |
| "properties": { |
| "state": { |
| "enum": ["visible", "partially_occluded", "fully_occluded", "truncated", "not_observable", "unknown"] |
| }, |
| "visible_fraction": { |
| "oneOf": [{"$ref": "#/$defs/probability"}, {"type": "null"}] |
| } |
| } |
| }, |
| "point2d": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["keypoint_id", "x", "y", "confidence", "visibility"], |
| "properties": { |
| "keypoint_id": {"$ref": "#/$defs/identifier"}, |
| "x": {"type": "number"}, |
| "y": {"type": "number"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "point3d": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["keypoint_id", "x", "y", "z", "confidence", "visibility"], |
| "properties": { |
| "keypoint_id": {"$ref": "#/$defs/identifier"}, |
| "x": {"type": "number"}, |
| "y": {"type": "number"}, |
| "z": {"type": "number"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "poseSample": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["timestamp_ns", "translation_m", "quaternion_xyzw"], |
| "properties": { |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "translation_m": { |
| "type": "array", |
| "minItems": 3, |
| "maxItems": 3, |
| "items": {"type": "number"} |
| }, |
| "quaternion_xyzw": { |
| "type": "array", |
| "minItems": 4, |
| "maxItems": 4, |
| "items": {"type": "number"} |
| } |
| }, |
| "$comment": "The semantic validator rejects zero and non-unit quaternions and non-monotone trajectories." |
| }, |
| "textClassLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "text_class"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "temporalSpanLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "interval", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "temporal_span"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "interval": {"$ref": "#/$defs/interval"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "box2dLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "clock_id", "timestamp_ns", "coordinate_frame_id", "coordinate_unit", "xyxy", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "box_2d"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "coordinate_unit": {"enum": ["pixels", "normalized_0_1"]}, |
| "xyxy": { |
| "type": "array", |
| "minItems": 4, |
| "maxItems": 4, |
| "items": {"type": "number"} |
| }, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "maskRefLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "clock_id", "timestamp_ns", "coordinate_frame_id", "encoding", "mask_artifact", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "mask_ref"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "encoding": {"enum": ["png_binary", "png_indexed", "coco_rle_json", "polygons_json"]}, |
| "mask_artifact": {"$ref": "#/$defs/artifactPointer"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "keypoints2dLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "clock_id", "timestamp_ns", "coordinate_frame_id", "coordinate_unit", "points", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "keypoints_2d"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "coordinate_unit": {"enum": ["pixels", "normalized_0_1"]}, |
| "points": {"type": "array", "minItems": 1, "maxItems": 256, "items": {"$ref": "#/$defs/point2d"}}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "keypoints3dLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "class_id", "clock_id", "timestamp_ns", "coordinate_frame_id", "coordinate_unit", "points", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "keypoints_3d"}, |
| "class_id": {"$ref": "#/$defs/identifier"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "coordinate_unit": {"enum": ["meters", "millimeters"]}, |
| "points": {"type": "array", "minItems": 1, "maxItems": 256, "items": {"$ref": "#/$defs/point3d"}}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "pose3dLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "clock_id", "parent_frame_id", "child_frame_id", "pose", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "pose_3d"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "parent_frame_id": {"$ref": "#/$defs/identifier"}, |
| "child_frame_id": {"$ref": "#/$defs/identifier"}, |
| "pose": {"$ref": "#/$defs/poseSample"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "trajectory3dLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "clock_id", "parent_frame_id", "child_frame_id", "samples", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "trajectory_3d"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "parent_frame_id": {"$ref": "#/$defs/identifier"}, |
| "child_frame_id": {"$ref": "#/$defs/identifier"}, |
| "samples": {"type": "array", "minItems": 2, "maxItems": 4096, "items": {"$ref": "#/$defs/poseSample"}}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "audioEventLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "event_class_id", "channel_id", "interval", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "audio_event"}, |
| "event_class_id": {"$ref": "#/$defs/identifier"}, |
| "channel_id": {"$ref": "#/$defs/identifier"}, |
| "interval": {"$ref": "#/$defs/interval"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "objectRelationLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "subject_entity_id", "relation_class_id", "object_entity_id", "interval", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "object_relation"}, |
| "subject_entity_id": {"$ref": "#/$defs/identifier"}, |
| "relation_class_id": {"$ref": "#/$defs/identifier"}, |
| "object_entity_id": {"$ref": "#/$defs/identifier"}, |
| "interval": {"$ref": "#/$defs/interval"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "stateTransitionLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "entity_id", "state_axis_id", "before_state_id", "after_state_id", "clock_id", "transition_ns", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "state_transition"}, |
| "entity_id": {"$ref": "#/$defs/identifier"}, |
| "state_axis_id": {"$ref": "#/$defs/identifier"}, |
| "before_state_id": {"$ref": "#/$defs/identifier"}, |
| "after_state_id": {"$ref": "#/$defs/identifier"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "transition_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "proprioSample": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["timestamp_ns", "values"], |
| "properties": { |
| "timestamp_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "values": {"type": "array", "minItems": 1, "maxItems": 4096, "items": {"type": "number"}} |
| } |
| }, |
| "actionChunkLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "clock_id", "coordinate_frame_id", "action_layout_id", "start_ns", "step_period_ns", "actions", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "action_chunk"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "action_layout_id": {"$ref": "#/$defs/identifier"}, |
| "start_ns": {"$ref": "#/$defs/nonNegativeNanoseconds"}, |
| "step_period_ns": {"$ref": "#/$defs/positiveNanoseconds"}, |
| "actions": { |
| "type": "array", |
| "minItems": 1, |
| "maxItems": 4096, |
| "items": {"type": "array", "minItems": 1, "maxItems": 4096, "items": {"type": "number"}} |
| }, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "proprioSeriesLabel": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["label_key", "kind", "clock_id", "coordinate_frame_id", "proprio_layout_id", "samples", "confidence", "uncertainty", "visibility"], |
| "properties": { |
| "label_key": {"$ref": "#/$defs/identifier"}, |
| "kind": {"const": "proprio_series"}, |
| "clock_id": {"$ref": "#/$defs/identifier"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/identifier"}, |
| "proprio_layout_id": {"$ref": "#/$defs/identifier"}, |
| "samples": {"type": "array", "minItems": 1, "maxItems": 4096, "items": {"$ref": "#/$defs/proprioSample"}}, |
| "confidence": {"$ref": "#/$defs/probability"}, |
| "uncertainty": {"$ref": "#/$defs/uncertainty"}, |
| "visibility": {"$ref": "#/$defs/visibility"} |
| } |
| }, |
| "label": { |
| "oneOf": [ |
| {"$ref": "#/$defs/textClassLabel"}, |
| {"$ref": "#/$defs/temporalSpanLabel"}, |
| {"$ref": "#/$defs/box2dLabel"}, |
| {"$ref": "#/$defs/maskRefLabel"}, |
| {"$ref": "#/$defs/keypoints2dLabel"}, |
| {"$ref": "#/$defs/keypoints3dLabel"}, |
| {"$ref": "#/$defs/pose3dLabel"}, |
| {"$ref": "#/$defs/trajectory3dLabel"}, |
| {"$ref": "#/$defs/audioEventLabel"}, |
| {"$ref": "#/$defs/objectRelationLabel"}, |
| {"$ref": "#/$defs/stateTransitionLabel"}, |
| {"$ref": "#/$defs/actionChunkLabel"}, |
| {"$ref": "#/$defs/proprioSeriesLabel"} |
| ] |
| }, |
| "inputView": { |
| "oneOf": [ |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["view_id", "view_kind", "instruction"], |
| "properties": { |
| "view_id": {"$ref": "#/$defs/identifier"}, |
| "view_kind": {"const": "text_prompt"}, |
| "instruction": {"type": "string", "minLength": 1, "maxLength": 8192} |
| } |
| }, |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["view_id", "view_kind", "modality", "artifact_id", "interval", "sampling_policy"], |
| "properties": { |
| "view_id": {"$ref": "#/$defs/identifier"}, |
| "view_kind": {"const": "artifact_window"}, |
| "modality": {"enum": ["rgb", "depth", "audio", "proprioception", "imu", "derived_features"]}, |
| "artifact_id": {"$ref": "#/$defs/artifactId"}, |
| "interval": {"$ref": "#/$defs/interval"}, |
| "sampling_policy": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["kind"], |
| "properties": { |
| "kind": {"enum": ["all", "uniform", "keyframes", "native"]}, |
| "sample_count": {"type": "integer", "minimum": 1, "maximum": 4096} |
| } |
| } |
| } |
| }, |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["view_id", "view_kind", "artifact_ids", "timestamps_ns", "clock_id"], |
| "properties": { |
| "view_id": {"$ref": "#/$defs/identifier"}, |
| "view_kind": {"const": "frame_set"}, |
| "artifact_ids": {"type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": {"$ref": "#/$defs/artifactId"}}, |
| "timestamps_ns": {"type": "array", "minItems": 1, "maxItems": 128, "items": {"$ref": "#/$defs/nonNegativeNanoseconds"}}, |
| "clock_id": {"$ref": "#/$defs/identifier"} |
| } |
| }, |
| { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["view_id", "view_kind", "artifact_id", "feature_contract_id", "interval"], |
| "properties": { |
| "view_id": {"$ref": "#/$defs/identifier"}, |
| "view_kind": {"const": "derived_feature_window"}, |
| "artifact_id": {"$ref": "#/$defs/artifactId"}, |
| "feature_contract_id": {"$ref": "#/$defs/identifier"}, |
| "interval": {"$ref": "#/$defs/interval"} |
| } |
| } |
| ] |
| }, |
| "outputContract": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["allowed_label_kinds", "minimum_labels", "maximum_labels", "coordinate_contract_ids"], |
| "properties": { |
| "allowed_label_kinds": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/labelKind"}}, |
| "minimum_labels": {"type": "integer", "minimum": 0, "maximum": 4096}, |
| "maximum_labels": {"type": "integer", "minimum": 1, "maximum": 4096}, |
| "coordinate_contract_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/identifier"}} |
| }, |
| "$comment": "The semantic validator enforces minimum_labels <= maximum_labels and every prediction kind/frame against this contract." |
| }, |
| "metricDefinition": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["metric_id", "metric_kind", "compatible_label_kinds", "direction", "value_range", "matching_policy", "threshold"], |
| "properties": { |
| "metric_id": {"$ref": "#/$defs/identifier"}, |
| "metric_kind": { |
| "enum": ["exact_match", "macro_f1", "temporal_iou", "box_iou", "mask_iou", "pck", "mpjpe", "pose_error", "trajectory_ade_fde", "audio_event_f1", "relation_f1", "transition_accuracy", "action_l1", "proprio_l1"] |
| }, |
| "compatible_label_kinds": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/labelKind"}}, |
| "direction": {"enum": ["maximize", "minimize"]}, |
| "value_range": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["minimum", "maximum"], |
| "properties": {"minimum": {"type": "number"}, "maximum": {"type": ["number", "null"]}} |
| }, |
| "matching_policy": {"enum": ["ordered", "class_aware_bipartite", "timestamp_nearest", "identity_keyed"]}, |
| "threshold": {"type": ["number", "null"]} |
| } |
| }, |
| "aggregationDefinition": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["aggregation_id", "method", "metric_ids", "group_by", "missing_policy"], |
| "properties": { |
| "aggregation_id": {"$ref": "#/$defs/identifier"}, |
| "method": {"const": "macro_mean"}, |
| "metric_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/identifier"}}, |
| "group_by": {"const": "none"}, |
| "missing_policy": {"const": "fail"} |
| }, |
| "$comment": "Evaluation contract v1 defines one replayable aggregate: the macro mean over normalized selected metric observations, without grouping or missing-value substitution." |
| }, |
| "traceRef": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["trace_id", "content_digest", "format", "artifact"], |
| "properties": { |
| "trace_id": {"$ref": "#/$defs/traceId"}, |
| "content_digest": {"$ref": "#/$defs/sha256"}, |
| "format": {"enum": ["egobowwow_trace_v1", "prime_verifiers_trace_jsonl_v1", "custom_jsonl"]}, |
| "artifact": {"$ref": "#/$defs/artifactPointer"} |
| }, |
| "$comment": "Semantic validation requires trace_id = eval-trace: + content_digest and requires the artifact ID/content digest to bind that same digest." |
| }, |
| "producerProvenance": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["producer_kind", "implementation_digest", "configuration_digest", "environment_digest"], |
| "properties": { |
| "producer_kind": {"enum": ["model", "deterministic_program", "human", "adjudication_panel"]}, |
| "implementation_digest": {"$ref": "#/$defs/sha256"}, |
| "configuration_digest": {"$ref": "#/$defs/sha256"}, |
| "environment_digest": {"$ref": "#/$defs/sha256"} |
| } |
| }, |
| "prediction": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["task_id", "attempt_index", "outputs", "trace_ref"], |
| "properties": { |
| "task_id": {"$ref": "#/$defs/taskId"}, |
| "attempt_index": {"type": "integer", "minimum": 0, "maximum": 1023}, |
| "outputs": {"type": "array", "maxItems": 4096, "items": {"$ref": "#/$defs/label"}}, |
| "trace_ref": {"$ref": "#/$defs/traceRef"} |
| } |
| } |
| } |
| } |
|
|