{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$ref": "#/$defs/SegmentView", "$defs": { "UV": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 }, "Span": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 }, "InputRef": { "type": "object", "additionalProperties": false, "required": [ "path", "sha256", "artifact" ], "properties": { "path": { "type": "string" }, "sha256": { "type": "string" }, "artifact": { "type": "boolean" } } }, "Provenance": { "type": "object", "additionalProperties": false, "required": [ "artifact_sha256", "script_content_sha256", "capability_fingerprint", "generator_version", "inputs" ], "properties": { "artifact_sha256": { "type": "string" }, "script_content_sha256": { "type": "string" }, "capability_fingerprint": { "type": [ "string", "null" ] }, "generator_version": { "type": "string" }, "inputs": { "type": "object", "additionalProperties": { "$ref": "#/$defs/InputRef" } } } }, "Frame": { "type": "object", "additionalProperties": true, "required": [ "uv_axes", "units", "yaw_zero", "yaw_positive" ], "properties": { "uv_axes": { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2 }, "units": { "const": "m" }, "yaw_zero": { "enum": [ "+u", "+v" ] }, "yaw_positive": { "enum": [ "clockwise", "counterclockwise" ] } } }, "Segment": { "type": "object", "additionalProperties": false, "required": [ "id", "script_id", "world_id", "duration_tier", "span_s", "duration_s", "control_hz" ], "properties": { "id": { "type": "string" }, "script_id": { "type": "string" }, "world_id": { "type": "string" }, "duration_tier": { "type": ["string", "number"] }, "span_s": { "$ref": "#/$defs/Span" }, "duration_s": { "type": "number", "exclusiveMinimum": 0 }, "control_hz": { "type": "number", "exclusiveMinimum": 0 } } }, "Room": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "polygon_uv", "label_uv", "semantics_verified" ], "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "polygon_uv": { "type": "array", "items": { "$ref": "#/$defs/UV" }, "minItems": 3 }, "label_uv": { "$ref": "#/$defs/UV" }, "semantics_verified": { "type": "boolean" } } }, "Doorway": { "type": "object", "additionalProperties": false, "required": [ "id", "segment_uv" ], "properties": { "id": { "type": "string" }, "segment_uv": { "type": "array", "items": { "$ref": "#/$defs/UV" }, "minItems": 2, "maxItems": 2 } } }, "StopPoint": { "type": "object", "additionalProperties": false, "required": [ "id", "position_uv", "region_id" ], "properties": { "id": { "type": "string" }, "position_uv": { "$ref": "#/$defs/UV" }, "region_id": { "type": "string" } } }, "Raster": { "type": "object", "additionalProperties": false, "required": [ "url", "width_px", "height_px", "pixel_to_uv", "navigation_profile" ], "properties": { "url": { "type": "string" }, "width_px": { "type": "integer", "minimum": 1 }, "height_px": { "type": "integer", "minimum": 1 }, "pixel_to_uv": { "type": "array", "items": { "type": "number" }, "minItems": 6, "maxItems": 6 }, "navigation_profile": { "type": "string" } } }, "Basemap": { "type": "object", "additionalProperties": false, "required": [ "bounds_uv", "rooms", "doorways", "stop_points", "occluder_contours_uv", "occluder_height_m", "raster" ], "properties": { "bounds_uv": { "type": "array", "items": { "$ref": "#/$defs/UV" }, "minItems": 2, "maxItems": 2 }, "rooms": { "type": "array", "items": { "$ref": "#/$defs/Room" } }, "doorways": { "type": "array", "items": { "$ref": "#/$defs/Doorway" } }, "stop_points": { "type": "array", "items": { "$ref": "#/$defs/StopPoint" } }, "occluder_contours_uv": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/$defs/UV" }, "minItems": 3 } }, "occluder_height_m": { "type": "number" }, "raster": { "$ref": "#/$defs/Raster" } } }, "Actor": { "type": "object", "additionalProperties": false, "required": [ "order", "id", "kind", "virtual", "radius_m", "profile" ], "properties": { "order": { "type": "integer", "minimum": 0 }, "id": { "type": "string" }, "kind": { "type": "string" }, "virtual": { "type": "boolean" }, "radius_m": { "type": [ "number", "null" ], "minimum": 0 }, "profile": { "type": "string" } } }, "Track": { "type": "object", "additionalProperties": false, "required": [ "t_s", "u_m", "v_m", "yaw_rad", "distance_m", "speed_mps" ], "properties": { "t_s": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "u_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "v_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "yaw_rad": { "anyOf": [ { "type": "array", "items": { "type": "number" }, "minItems": 2 }, { "type": "null" } ] }, "distance_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "speed_mps": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "cam_yaw_rad": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "cam_pitch_rad": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "cam_u_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "cam_v_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 }, "cam_z_m": { "type": "array", "items": { "type": "number" }, "minItems": 2 } } }, "StateName": { "enum": [ "moving", "turning", "yield_wait", "planned_stay", "station", "idle_remainder", "unclassified", "uncovered", "forced_idle", "retargeting" ] }, "State": { "type": "object", "additionalProperties": false, "required": [ "start_s", "end_s", "state", "reason", "intent_index", "forced", "waiting_for" ], "properties": { "start_s": { "type": "number" }, "end_s": { "type": "number" }, "state": { "$ref": "#/$defs/StateName" }, "reason": { "type": "string" }, "intent_index": { "type": [ "integer", "null" ] }, "forced": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ] }, "waiting_for": { "type": "array", "items": { "type": "string" } } } }, "Target": { "type": "object", "additionalProperties": true, "properties": { "position_uv": { "$ref": "#/$defs/UV" }, "region_id": { "type": "string" }, "id": { "type": "string" }, "stop_id": { "type": "string" } } }, "Intent": { "type": "object", "additionalProperties": false, "required": [ "intent_index", "kind", "target", "start_s", "end_s", "status", "reason", "discard_reason", "target_stages", "discard_class" ], "properties": { "intent_index": { "type": "integer" }, "kind": { "type": "string" }, "target": { "anyOf": [ { "$ref": "#/$defs/Target" }, { "type": "null" } ] }, "start_s": { "type": "number" }, "end_s": { "type": "number" }, "status": { "enum": [ "completed", "discarded", "truncated", "retreat" ] }, "reason": { "type": [ "string", "null" ] }, "discard_reason": { "type": [ "string", "null" ] }, "target_stages": { "type": "array", "items": { "$ref": "#/$defs/TargetStage" } }, "discard_class": { "enum": [ "A", "B", null ] }, "requested_duration_s": { "type": "number", "minimum": 0 }, "planned_duration_s": { "type": "number", "minimum": 0 }, "requested_shortfall_s": { "type": "number", "minimum": 0 }, "duration_adjustment": { "type": "string", "enum": [ "control_quantization", "pause_budget", "activity_end" ] } } }, "Discard": { "type": "object", "additionalProperties": false, "required": [ "time_s", "actor_id", "intent_index", "target_uv", "reason", "discard_class", "event_kind" ], "properties": { "time_s": { "type": "number" }, "actor_id": { "type": "string" }, "intent_index": { "type": "integer" }, "target_uv": { "$ref": "#/$defs/UV" }, "reason": { "type": "string" }, "discard_class": { "enum": [ "A", "B", null ] }, "event_kind": { "enum": [ "discard", "proposal_failure" ] } } }, "ObserverTurn": { "type": "object", "additionalProperties": true, "required": [ "start_s", "duration_s", "target_yaw_rad", "source" ], "properties": { "start_s": { "type": "number" }, "duration_s": { "type": "number" }, "target_yaw_rad": { "type": "number" }, "source": { "type": "string" }, "target_actor": { "type": [ "string", "null" ] }, "first_seen_s": { "type": [ "number", "null" ] }, "static_wall_safe_at_start": { "type": "boolean" } } }, "CameraMount": { "type": "object", "properties": { "kind": { "const": "rigid" }, "offset_body_m": { "type": "array", "items": { "type": "number" }, "minItems": 3, "maxItems": 3 }, "yaw_offset_rad": { "type": "number" }, "pitch_rad": { "type": "number" }, "source": { "type": "string" }, "provisional": { "type": "boolean" } }, "required": [ "kind", "offset_body_m", "yaw_offset_rad", "pitch_rad", "source", "provisional" ], "additionalProperties": false }, "Observer": { "type": "object", "additionalProperties": false, "required": [ "hfov_rad", "eye_height_m", "mount", "first_seen_s", "turns", "actual_visibility", "causal" ], "properties": { "hfov_rad": { "type": "number", "exclusiveMinimum": 0 }, "eye_height_m": { "type": "number" }, "mount": { "anyOf": [ { "type": "string" }, { "$ref": "#/$defs/CameraMount" } ] }, "first_seen_s": { "type": "object", "additionalProperties": { "type": "number" } }, "turns": { "type": "array", "items": { "$ref": "#/$defs/ObserverTurn" } }, "actual_visibility": { "type": "string" }, "causal": { "type": [ "boolean", "null" ] }, "recording_span_s": { "$ref": "#/$defs/Span" }, "split": { "$ref": "#/$defs/ObserverSplit" } } }, "ObserverSplit": { "type": "object", "description": "生成器 observers[].split(两层):time 按时间错开,none 不错开(drawn:抽中了错开但排不开)", "additionalProperties": false, "required": ["layer"], "properties": { "layer": { "enum": ["time", "none"] }, "drawn": { "type": "boolean" }, "mover": { "type": ["string", "null"] }, "first_s": { "type": ["number", "null"] }, "second_s": { "type": ["number", "null"] }, "early_view": { "type": ["string", "null"] } } }, "DiscardGroup": { "type": "object", "additionalProperties": false, "required": [ "actor_id", "row_indices", "count", "start_s", "end_s", "reason_counts" ], "properties": { "actor_id": { "type": "string" }, "row_indices": { "type": "array", "items": { "type": "integer", "minimum": 0 }, "minItems": 2 }, "count": { "type": "integer", "minimum": 2 }, "start_s": { "type": "number" }, "end_s": { "type": "number" }, "reason_counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 1 } } } }, "Construction": { "type": "object", "additionalProperties": false, "required": [ "priority_order", "retries", "discard_reason_counts", "discard_groups" ], "properties": { "priority_order": { "type": "array", "items": { "type": "string" } }, "retries": { "type": [ "integer", "null" ], "minimum": 0 }, "discard_groups": { "type": "array", "items": { "$ref": "#/$defs/DiscardGroup" } }, "discard_reason_counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } } } }, "Warning": { "type": "object", "additionalProperties": false, "required": [ "code", "message" ], "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "actor_id": { "type": "string" }, "start_s": { "type": "number" }, "end_s": { "type": "number" } } }, "SegmentView": { "type": "object", "additionalProperties": false, "required": [ "schema", "builder_version", "provenance", "frame", "segment", "basemap", "actors", "tracks", "tracks_max_error_m", "states", "intents", "discards", "observers", "construction", "warnings", "visibility", "visibility_builder_version", "generation", "metric_units" ], "properties": { "schema": { "const": "segment-view/6" }, "builder_version": { "const": "review-import/2" }, "provenance": { "$ref": "#/$defs/Provenance" }, "frame": { "$ref": "#/$defs/Frame" }, "segment": { "$ref": "#/$defs/Segment" }, "basemap": { "$ref": "#/$defs/Basemap" }, "actors": { "type": "array", "items": { "$ref": "#/$defs/Actor" }, "minItems": 1 }, "tracks": { "type": "object", "additionalProperties": { "$ref": "#/$defs/Track" } }, "tracks_max_error_m": { "type": "number", "minimum": 0, "maximum": 0.02 }, "states": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/$defs/State" }, "minItems": 1 } }, "intents": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/$defs/Intent" } } }, "discards": { "type": "array", "items": { "$ref": "#/$defs/Discard" } }, "observers": { "type": "object", "additionalProperties": { "$ref": "#/$defs/Observer" } }, "construction": { "$ref": "#/$defs/Construction" }, "warnings": { "type": "array", "items": { "$ref": "#/$defs/Warning" } }, "visibility": { "anyOf": [ { "$ref": "#/$defs/Visibility" }, { "type": "null" } ] }, "visibility_builder_version": { "const": "review-evidence/2" }, "generation": { "$ref": "#/$defs/GenerationRecords" }, "metric_units": { "$ref": "#/$defs/MetricUnits" }, "media": { "$ref": "#/$defs/RenderMedia" }, "media_ref": { "$ref": "#/$defs/MediaReference" }, "review": { "$ref": "#/$defs/ScriptReview" } } }, "VisibilityRun": { "type": "object", "additionalProperties": false, "required": [ "start_s", "end_s", "value" ], "properties": { "start_s": { "type": "number" }, "end_s": { "type": "number" }, "value": { "type": "array", "items": { "type": "string" } } } }, "SharedRun": { "type": "object", "additionalProperties": false, "required": [ "start_s", "end_s", "value" ], "properties": { "start_s": { "type": "number" }, "end_s": { "type": "number" }, "value": { "type": "boolean" } } }, "VisibilityObserver": { "type": "object", "additionalProperties": false, "required": [ "moving_visible", "bodies_visible", "region_indices", "timeline" ], "properties": { "moving_visible": { "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "bodies_visible": { "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "region_indices": { "type": "array", "items": { "type": "integer", "minimum": 0 } }, "timeline": { "type": "array", "items": { "$ref": "#/$defs/VisibilityRun" } }, "recorded": { "type": "array", "items": { "type": "boolean" } }, "raw_row_indices": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } } } }, "NearestDistance": { "type": "object", "additionalProperties": false, "required": [ "mean", "min", "max_of_nearest" ], "properties": { "mean": { "type": "number" }, "min": { "type": "number" }, "max_of_nearest": { "type": "number" } } }, "PairDistance": { "type": "object", "additionalProperties": false, "required": [ "mean", "min", "max" ], "properties": { "mean": { "type": "number" }, "min": { "type": "number" }, "max": { "type": "number" } } }, "ObserverMetric": { "type": "object", "additionalProperties": false, "required": [ "kind", "intent", "eye_height_m", "frac_any_moving_visible", "frac_any_moving_in_fov_ignoring_walls", "mean_visible_count", "per_actor_visible_frac", "longest_no_actor_s", "nearest_actor_dist_m", "path_length_m" ], "properties": { "kind": { "type": "string" }, "intent": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "eye_height_m": { "type": "number" }, "frac_any_moving_visible": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "frac_any_moving_in_fov_ignoring_walls": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "mean_visible_count": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "per_actor_visible_frac": { "type": "object", "additionalProperties": { "type": "number" } }, "longest_no_actor_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "nearest_actor_dist_m": { "anyOf": [ { "$ref": "#/$defs/NearestDistance" }, { "type": "null" } ] }, "path_length_m": { "type": "number" }, "recording_span_s": { "$ref": "#/$defs/Span" }, "denominator_frames": { "type": "integer" }, "denominator_s": { "type": "number" } } }, "SharedRegionMetric": { "type": "object", "additionalProperties": false, "required": [ "frac_ticks_overlap_ge_2m2", "mean_overlap_m2", "max_overlap_m2" ], "properties": { "frac_ticks_overlap_ge_2m2": { "type": "number" }, "mean_overlap_m2": { "type": "number" }, "max_overlap_m2": { "type": "number" } } }, "PairMetric": { "type": "object", "additionalProperties": false, "required": [ "pair", "frac_covisible_motion_same_time", "actors_seen_by_both_any_time", "body_seen_frac", "shared_region", "observer_distance_m" ], "properties": { "pair": { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2 }, "frac_covisible_motion_same_time": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "actors_seen_by_both_any_time": { "type": "array", "items": { "type": "string" } }, "body_seen_frac": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "number" }, { "type": "null" } ] } }, "shared_region": { "anyOf": [ { "$ref": "#/$defs/SharedRegionMetric" }, { "type": "null" } ] }, "observer_distance_m": { "anyOf": [ { "$ref": "#/$defs/PairDistance" }, { "type": "null" } ] } } }, "VisibilityMetrics": { "type": "object", "additionalProperties": false, "required": [ "case", "world_id", "span_s", "moving", "observers", "pairs" ], "properties": { "case": { "type": "string" }, "world_id": { "type": "string" }, "span_s": { "$ref": "#/$defs/Span" }, "moving": { "type": "array", "items": { "type": "string" } }, "observers": { "type": "object", "additionalProperties": { "$ref": "#/$defs/ObserverMetric" } }, "pairs": { "type": "array", "items": { "$ref": "#/$defs/PairMetric" } } } }, "VisibilityPair": { "type": "object", "additionalProperties": false, "required": [ "pair", "moving_visible_by_both", "shared_area_m2", "same_actor_duration_s", "shared_region_duration_s", "timeline" ], "properties": { "pair": { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2 }, "moving_visible_by_both": { "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "shared_area_m2": { "type": "array", "items": { "type": "number" } }, "same_actor_duration_s": { "type": "number" }, "shared_region_duration_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "timeline": { "type": "array", "items": { "$ref": "#/$defs/SharedRun" } }, "denominator_s": { "type": "number" } } }, "VisibilityCue": { "type": "object", "additionalProperties": false, "required": [ "longest_no_actor_span_s" ], "properties": { "longest_no_actor_span_s": { "$ref": "#/$defs/Span" } } }, "Visibility": { "type": "object", "additionalProperties": false, "required": [ "schema", "builder_version", "artifact_sha256", "scope", "actor_step_s", "mask_step_s", "region_min_m2", "sample_weighting", "actor_t_s", "mask_t_s", "actor_spans_s", "mask_spans_s", "regions_uv", "observers", "pairs", "metrics", "cues" ], "properties": { "schema": { "enum": [ "plan-visibility/1", "recording-visibility/2" ] }, "builder_version": { "type": "string" }, "artifact_sha256": { "type": "string" }, "scope": { "const": "private_plan_geometry_not_rendered" }, "actor_step_s": { "type": "number" }, "mask_step_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "region_min_m2": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "sample_weighting": { "enum": [ "midpoint", "frame_half_open" ] }, "actor_t_s": { "type": "array", "items": { "type": "number" } }, "mask_t_s": { "type": "array", "items": { "type": "number" } }, "actor_spans_s": { "type": "array", "items": { "$ref": "#/$defs/Span" } }, "mask_spans_s": { "type": "array", "items": { "$ref": "#/$defs/Span" } }, "regions_uv": { "type": "array", "items": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/$defs/UV" } } } }, "observers": { "type": "object", "additionalProperties": { "$ref": "#/$defs/VisibilityObserver" } }, "pairs": { "type": "array", "items": { "$ref": "#/$defs/VisibilityPair" } }, "metrics": { "$ref": "#/$defs/VisibilityMetrics" }, "cues": { "type": "object", "additionalProperties": { "$ref": "#/$defs/VisibilityCue" } }, "raw_table": { "$ref": "#/$defs/RawPlanTable" }, "not_provided": { "type": "array", "items": { "type": "string" } }, "measurement_scope": { "type": "string" } } }, "VisibilityJob": { "type": "object", "additionalProperties": false, "required": [ "schema", "artifact_sha256", "builder_version", "status", "completed_steps", "total_steps", "progress_percent", "stage" ], "properties": { "schema": { "const": "visibility-job/1" }, "artifact_sha256": { "type": "string" }, "builder_version": { "type": "string" }, "status": { "enum": [ "queued", "running" ] }, "completed_steps": { "type": "integer", "minimum": 0 }, "total_steps": { "type": "integer", "minimum": 0 }, "progress_percent": { "type": "integer", "minimum": 0, "maximum": 100 }, "stage": { "type": "string" } } }, "RegionChunkRef": { "type": "object", "additionalProperties": false, "required": [ "url", "start_index", "count", "sha256" ], "properties": { "url": { "type": "string" }, "start_index": { "type": "integer", "minimum": 0 }, "count": { "type": "integer", "minimum": 1 }, "sha256": { "type": "string" } } }, "RegionChunk": { "type": "object", "additionalProperties": false, "required": [ "schema", "artifact_sha256", "builder_version", "start_index", "regions_uv" ], "properties": { "schema": { "const": "visibility-regions/1" }, "artifact_sha256": { "type": "string" }, "builder_version": { "type": "string" }, "start_index": { "type": "integer", "minimum": 0 }, "regions_uv": { "type": "array", "items": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/$defs/UV" } } } } } }, "VisibilityIndex": { "type": "object", "additionalProperties": false, "required": [ "schema", "builder_version", "artifact_sha256", "scope", "actor_step_s", "mask_step_s", "region_min_m2", "sample_weighting", "actor_t_s", "mask_t_s", "actor_spans_s", "mask_spans_s", "observers", "pairs", "metrics", "cues", "region_chunks" ], "properties": { "schema": { "enum": [ "plan-visibility-index/1", "recording-visibility-index/2" ] }, "builder_version": { "type": "string" }, "artifact_sha256": { "type": "string" }, "scope": { "const": "private_plan_geometry_not_rendered" }, "actor_step_s": { "type": "number" }, "mask_step_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "region_min_m2": { "anyOf": [ { "type": "number" }, { "type": "null" } ] }, "sample_weighting": { "enum": [ "midpoint", "frame_half_open" ] }, "actor_t_s": { "type": "array", "items": { "type": "number" } }, "mask_t_s": { "type": "array", "items": { "type": "number" } }, "actor_spans_s": { "type": "array", "items": { "$ref": "#/$defs/Span" } }, "mask_spans_s": { "type": "array", "items": { "$ref": "#/$defs/Span" } }, "observers": { "type": "object", "additionalProperties": { "$ref": "#/$defs/VisibilityObserver" } }, "pairs": { "type": "array", "items": { "$ref": "#/$defs/VisibilityPair" } }, "metrics": { "$ref": "#/$defs/VisibilityMetrics" }, "cues": { "type": "object", "additionalProperties": { "$ref": "#/$defs/VisibilityCue" } }, "region_chunks": { "type": "array", "items": { "$ref": "#/$defs/RegionChunkRef" } }, "raw_table": { "$ref": "#/$defs/RawPlanTable" }, "not_provided": { "type": "array", "items": { "type": "string" } }, "measurement_scope": { "type": "string" }, "table_chunks": { "type": "array", "items": { "$ref": "#/$defs/RegionChunkRef" } } } }, "TargetStage": { "type": "object", "additionalProperties": false, "required": [ "start_s", "end_s", "target" ], "properties": { "start_s": { "type": "number" }, "end_s": { "type": "number" }, "target": { "anyOf": [ { "$ref": "#/$defs/Target" }, { "type": "null" } ] } } }, "DetourDetail": { "type": "object", "additionalProperties": false, "required": [ "status", "parameterization_result", "cost_cells", "final_points_in_avoidance", "same_route", "route_geometry_failed", "hausdorff_m" ], "properties": { "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "parameterization_result": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "cost_cells": { "anyOf": [ { "type": "integer", "minimum": 0 }, { "type": "null" } ] }, "final_points_in_avoidance": { "anyOf": [ { "type": "integer", "minimum": 0 }, { "type": "null" } ] }, "same_route": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ] }, "route_geometry_failed": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ] }, "hausdorff_m": { "type": "array", "items": { "type": "number" } } } }, "TokenDetail": { "type": "object", "additionalProperties": false, "required": [ "sequence", "tick", "phase", "anchor_flag" ], "properties": { "sequence": { "type": "integer", "minimum": 0 }, "tick": { "type": "integer", "minimum": 0 }, "phase": { "type": "string" }, "anchor_flag": { "type": "integer", "minimum": 0 } } }, "GenerationEvent": { "type": "object", "additionalProperties": false, "required": [ "kind", "actor_id", "intent_index", "time_s", "end_s", "reason", "waiting_for", "blocked_by", "forced", "original_target", "new_target", "discard_class", "no_route_mechanism", "failed_step", "detour", "token", "state" ], "properties": { "kind": { "enum": [ "waiting", "detour", "retargeting", "discard", "token", "proposal_failure" ] }, "actor_id": { "type": "string" }, "intent_index": { "anyOf": [ { "type": "integer", "minimum": 0 }, { "type": "null" } ] }, "time_s": { "type": "number" }, "end_s": { "type": "number" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "waiting_for": { "type": "array", "items": { "type": "string" } }, "blocked_by": { "type": "array", "items": { "type": "string" } }, "forced": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ] }, "original_target": { "anyOf": [ { "$ref": "#/$defs/Target" }, { "type": "null" } ] }, "new_target": { "anyOf": [ { "$ref": "#/$defs/Target" }, { "type": "null" } ] }, "discard_class": { "enum": [ "A", "B", null ] }, "no_route_mechanism": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "failed_step": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "detour": { "anyOf": [ { "$ref": "#/$defs/DetourDetail" }, { "type": "null" } ] }, "token": { "anyOf": [ { "$ref": "#/$defs/TokenDetail" }, { "type": "null" } ] }, "state": { "anyOf": [ { "$ref": "#/$defs/StateName" }, { "type": "null" } ] } } }, "IntentBudget": { "type": "object", "additionalProperties": false, "required": [ "actor_id", "intent_index", "limit", "used", "attempts_count" ], "properties": { "actor_id": { "type": "string" }, "intent_index": { "type": "integer", "minimum": 0 }, "limit": { "type": "integer", "minimum": 0 }, "used": { "type": "integer", "minimum": 0 }, "attempts_count": { "type": "integer", "minimum": 0 } } }, "GenerationRecords": { "type": "object", "additionalProperties": false, "required": [ "method", "events", "budgets", "event_counts", "observer_generation" ], "properties": { "method": { "type": "string" }, "events": { "type": "array", "items": { "$ref": "#/$defs/GenerationEvent" } }, "budgets": { "type": "array", "items": { "$ref": "#/$defs/IntentBudget" } }, "event_counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "observer_generation": { "$ref": "#/$defs/ObserverGeneration" } } }, "OmittedObserver": { "type": "object", "additionalProperties": false, "required": [ "actor_id", "status", "reason", "time_s", "residual_counts" ], "properties": { "actor_id": { "type": "string" }, "status": { "type": "string" }, "reason": { "type": "string" }, "time_s": { "type": "number" }, "residual_counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } } } }, "ObserverGeneration": { "type": "object", "additionalProperties": false, "required": [ "requested_observers", "generated_observers", "omitted" ], "properties": { "requested_observers": { "type": [ "integer", "null" ], "minimum": 0 }, "generated_observers": { "type": [ "integer", "null" ], "minimum": 0 }, "omitted": { "type": "array", "items": { "$ref": "#/$defs/OmittedObserver" } } } }, "MetricUnits": { "type": "object", "additionalProperties": { "type": "string", "enum": [ "count", "s", "ratio" ] } }, "ReviewProgress": { "type": "object", "additionalProperties": false, "required": [ "total", "generated", "not_generated", "ready", "pending", "failed" ], "properties": { "total": { "type": "integer", "minimum": 0 }, "generated": { "type": "integer", "minimum": 0 }, "not_generated": { "type": "integer", "minimum": 0 }, "ready": { "type": "integer", "minimum": 0 }, "pending": { "type": "integer", "minimum": 0 }, "failed": { "type": "integer", "minimum": 0 } } }, "RawPlanColumns": { "type": "object", "additionalProperties": false, "properties": { "observer_id": { "type": "array", "items": { "type": "string" } }, "target_id": { "type": "array", "items": { "type": "string" } }, "frame": { "type": "array", "items": { "type": "integer" } }, "tick": { "type": "array", "items": { "type": "integer" } }, "center_visible": { "type": "array", "items": { "type": "boolean" } }, "projected_height": { "type": "array", "items": { "anyOf": [ { "type": "number" }, { "type": "null" } ] } }, "occlusion_fraction": { "type": "array", "items": { "type": "number" } }, "occluder_kind": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "occluder_object_id": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "center_edge_margin_deg": { "type": "array", "items": { "type": "number" } }, "bbox_edge_margin_deg": { "type": "array", "items": { "type": "number" } }, "distance_m": { "type": "array", "items": { "type": "number" } } }, "required": [] }, "RawPlanTable": { "type": "object", "additionalProperties": false, "properties": { "schema": { "const": "plan-visibility/2" }, "header": { "$ref": "#/$defs/RawPlanHeader" }, "columns": { "$ref": "#/$defs/RawPlanColumns" }, "null_encoding": { "type": "string" } }, "required": [ "schema", "header", "columns", "null_encoding" ] }, "RawTableChunk": { "type": "object", "additionalProperties": false, "properties": { "schema": { "const": "visibility-table-columns/2" }, "artifact_sha256": { "type": "string" }, "builder_version": { "type": "string" }, "start_index": { "type": "integer" }, "columns": { "$ref": "#/$defs/RawPlanColumns" } }, "required": [ "schema", "artifact_sha256", "builder_version", "start_index", "columns" ] }, "RawPlanHeader": { "type": "object", "additionalProperties": true, "properties": {} }, "MediaFrame": { "type": "object", "additionalProperties": false, "properties": { "frame_index": { "type": "integer" }, "control_tick": { "type": "integer" }, "local_s": { "type": "number" }, "world_s": { "type": "number" } }, "required": [ "frame_index", "control_tick", "local_s", "world_s" ] }, "MediaRoute": { "type": "object", "additionalProperties": false, "properties": { "observer_id": { "type": "string" }, "url": { "type": "string" }, "fps": { "type": "number" }, "frame_count": { "type": "integer" }, "width": { "type": "integer" }, "height": { "type": "integer" }, "world_start_s": { "type": "number" }, "window_world_span": { "$ref": "#/$defs/Span" }, "color_tags": { "type": "object", "additionalProperties": {} }, "frames": { "type": "array", "items": { "$ref": "#/$defs/MediaFrame" } }, "provisional_mount": { "type": "object", "additionalProperties": {} }, "rgb_audit": { "type": "object", "additionalProperties": {} } }, "required": [ "observer_id", "url", "fps", "frame_count", "width", "height", "world_start_s", "window_world_span", "color_tags", "frames", "provisional_mount", "rgb_audit" ] }, "RenderMedia": { "type": "object", "additionalProperties": false, "properties": { "schema": { "const": "render-media/1" }, "access": { "const": "private_evidence" }, "obs_id": { "type": "string" }, "source_group_id": { "type": "string" }, "routes": { "type": "array", "items": { "$ref": "#/$defs/MediaRoute" } }, "readback_summary": { "type": "object", "additionalProperties": {} }, "quality": { "type": "object", "additionalProperties": {} }, "synchronization": { "type": "string" }, "browser_display": { "type": "string" }, "public_answerability": { "type": "string" }, "ground_sampling_resolution": { "type": "object", "additionalProperties": {} }, "known_display_limit": { "type": "object", "additionalProperties": {} } }, "required": [ "schema", "access", "obs_id", "source_group_id", "routes", "readback_summary", "quality", "synchronization", "browser_display", "public_answerability", "ground_sampling_resolution", "known_display_limit" ] }, "MediaFrameSelection": { "type": "object", "additionalProperties": false, "properties": { "status": { "enum": [ "recording", "not_recording" ] }, "observer_id": { "type": "string" }, "world_s": { "type": "number" }, "frame_index": { "type": "integer" }, "control_tick": { "type": "integer" }, "local_s": { "type": "number" }, "seek_local_s": { "type": "number" } }, "required": [ "status", "observer_id", "world_s" ] }, "MediaFrameResponse": { "type": "object", "additionalProperties": false, "properties": { "schema": { "const": "render-media-frames/1" }, "obs_id": { "type": "string" }, "world_s": { "type": "number" }, "routes": { "type": "array", "items": { "$ref": "#/$defs/MediaFrameSelection" } } }, "required": [ "schema", "obs_id", "world_s", "routes" ] }, "MediaReference": { "type": "object", "additionalProperties": false, "required": [ "schema", "obs_id", "source_group_id", "url", "payload_bytes", "routes" ], "properties": { "schema": { "const": "render-media-reference/1" }, "obs_id": { "type": "string" }, "source_group_id": { "type": "string" }, "url": { "type": "string" }, "payload_bytes": { "type": "integer" }, "routes": { "type": "array", "items": { "$ref": "#/$defs/MediaReferenceRoute" } } } }, "MediaReferenceRoute": { "type": "object", "additionalProperties": false, "required": [ "observer_id", "width", "height" ], "properties": { "observer_id": { "type": "string" }, "width": { "type": "integer" }, "height": { "type": "integer" } } }, "ReviewEvent": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string" }, "label": { "type": "string" }, "entity_ids": { "type": "array", "items": { "type": "string" } }, "span_s": { "anyOf": [ { "$ref": "#/$defs/Span" }, { "type": "null" } ] }, "status": { "enum": [ "effective", "deviated", "ineffective", "NOT_CHECKED" ] }, "source": { "type": "string" }, "basis": { "type": "string" }, "regions_uv": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/$defs/UV" } } } }, "required": [ "id", "kind", "label", "entity_ids", "span_s", "status", "source", "basis", "regions_uv" ], "additionalProperties": false }, "ReviewQuestion": { "type": "object", "properties": { "id": { "type": "string" }, "version_id": { "type": "string" }, "decision": { "enum": [ "PASS", "FAIL", "UNKNOWN" ] }, "text": { "type": "string" }, "span_s": { "anyOf": [ { "$ref": "#/$defs/Span" }, { "type": "null" } ] }, "entity_ids": { "type": "array", "items": { "type": "string" } }, "proof_url": { "type": "string" } }, "required": [ "id", "version_id", "decision", "text", "span_s", "entity_ids", "proof_url" ], "additionalProperties": false }, "ScriptReview": { "type": "object", "properties": { "schema": { "const": "script-review/1" }, "batch": { "type": "string" }, "scope": { "type": "string" }, "planned": { "type": "array", "items": { "$ref": "#/$defs/ReviewEvent" } }, "actual_arrangements": { "anyOf": [ { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/ReviewEvent" } } ] }, "actual_arrangements_status": { "enum": [ "generator_not_emitted", "generator_plan" ] }, "body_yaw": { "type": "string" }, "situations": { "type": "array", "items": { "$ref": "#/$defs/ReviewEvent" } }, "situation_source": { "type": "string" }, "situation_missing": { "type": "array", "items": { "type": "string" } }, "questions": { "type": "array", "items": { "$ref": "#/$defs/ReviewQuestion" } }, "question_counts": { "$ref": "#/$defs/ReviewQuestionCounts" }, "unavailable": { "type": "array", "items": { "type": "string" } } }, "required": [ "schema", "batch", "scope", "planned", "actual_arrangements", "actual_arrangements_status", "situations", "situation_source", "situation_missing", "questions", "question_counts", "unavailable" ], "additionalProperties": false }, "ReviewQuestionCounts": { "type": "object", "properties": { "PASS": { "type": "integer", "minimum": 0 }, "FAIL": { "type": "integer", "minimum": 0 }, "UNKNOWN": { "type": "integer", "minimum": 0 } }, "required": [ "PASS", "FAIL", "UNKNOWN" ], "additionalProperties": false } } }