{
  "schema_version": "camera24.live-offline-comparison.v1",
  "comparison_scope": "Non-paired descriptive comparison. No scene/time alignment established. No engine replay.",
  "effective_fight": {
    "enabled": true,
    "person_score": 0.25,
    "joint_score": 0.1,
    "pair_distance_ratio": 1.8,
    "pair_close_hold_seconds": 0.1,
    "arm_motion_window_seconds": 1.0,
    "arm_motion_ratio": 0.1,
    "toward_opponent_ratio": 0.01,
    "fight_window_seconds": 1.5,
    "required_bursts": 1,
    "burst_min_interval_seconds": 0.25,
    "rearm_quiet_seconds": 2.0,
    "pair_retention_seconds": 5.0,
    "max_people": 32,
    "max_pairs": 128,
    "history_capacity": 64,
    "roi_id": "primary",
    "roi_name": "Fight ROI",
    "debug_roi": true,
    "roi": [
      [
        0.0,
        0.0
      ],
      [
        1.0,
        0.0
      ],
      [
        1.0,
        1.0
      ],
      [
        0.0,
        1.0
      ]
    ],
    "engine": "r5",
    "r5": {
      "schema_version": 1,
      "window_seconds": 1.0,
      "min_samples": 2,
      "contact_min_samples": 3
    }
  },
  "live": {
    "start_kst": "2026-11-01T14:13:28.650+09:00",
    "end_kst": "2026-11-01T14:14:13.680+09:00",
    "duration_seconds": 45.030419727321714,
    "observations": 452,
    "metadata_rate": 10.037659047751534,
    "pose": {
      "observations": 452,
      "objects": {
        "N": 452,
        "mean": 4.657079646017699,
        "p5": 2.0,
        "p50": 5.0,
        "p95": 7.0
      },
      "person_score": {
        "N": 2105,
        "mean": 0.5595117151961996,
        "p5": 0.30243011680000004,
        "p50": 0.594708025,
        "p95": 0.7129161002000001
      },
      "person_slots": 2105,
      "untracked_slots": 395,
      "untracked_percent": 18.764845605700714,
      "joints": {
        "priority8": {
          "slots": 16840,
          "coordinate_invalid": 0,
          "score_ge010_valid": 16664,
          "score_ge030_valid": 15683
        },
        "wrists2": {
          "slots": 4210,
          "coordinate_invalid": 0,
          "score_ge010_valid": 4115,
          "score_ge030_valid": 3575
        },
        "ankles2": {
          "slots": 4210,
          "coordinate_invalid": 0,
          "score_ge010_valid": 4210,
          "score_ge030_valid": 4210
        }
      }
    },
    "display_observations": 50,
    "display_percent": 11.061946902654867,
    "current_hit_observations": null,
    "events_in_window": [],
    "intervals": [
      {
        "first_frame_seq": 6096,
        "last_frame_seq": 6120,
        "first_pts_ns": 255030878015,
        "last_pts_ns": 256039878015,
        "observations": 11,
        "first_observed_kst": "2026-11-01T14:13:28.790+09:00",
        "last_observed_kst": "2026-11-01T14:13:29.766+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6283,
        "last_frame_seq": 6298,
        "first_pts_ns": 262833878015,
        "last_pts_ns": 263442878015,
        "observations": 7,
        "first_observed_kst": "2026-11-01T14:13:36.578+09:00",
        "last_observed_kst": "2026-11-01T14:13:37.194+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6451,
        "last_frame_seq": 6451,
        "first_pts_ns": 269835878015,
        "last_pts_ns": 269835878015,
        "observations": 1,
        "first_observed_kst": "2026-11-01T14:13:43.556+09:00",
        "last_observed_kst": "2026-11-01T14:13:43.556+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6524,
        "last_frame_seq": 6540,
        "first_pts_ns": 272864878015,
        "last_pts_ns": 273535878015,
        "observations": 8,
        "first_observed_kst": "2026-11-01T14:13:46.610+09:00",
        "last_observed_kst": "2026-11-01T14:13:47.269+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6766,
        "last_frame_seq": 6780,
        "first_pts_ns": 282946878015,
        "last_pts_ns": 283521878015,
        "observations": 7,
        "first_observed_kst": "2026-11-01T14:13:56.703+09:00",
        "last_observed_kst": "2026-11-01T14:13:57.263+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6821,
        "last_frame_seq": 6842,
        "first_pts_ns": 285234878015,
        "last_pts_ns": 286119878015,
        "observations": 10,
        "first_observed_kst": "2026-11-01T14:13:58.989+09:00",
        "last_observed_kst": "2026-11-01T14:13:59.852+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6934,
        "last_frame_seq": 6934,
        "first_pts_ns": 289943878015,
        "last_pts_ns": 289943878015,
        "observations": 1,
        "first_observed_kst": "2026-11-01T14:14:03.677+09:00",
        "last_observed_kst": "2026-11-01T14:14:03.677+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 6962,
        "last_frame_seq": 6962,
        "first_pts_ns": 291121878015,
        "last_pts_ns": 291121878015,
        "observations": 1,
        "first_observed_kst": "2026-11-01T14:14:04.912+09:00",
        "last_observed_kst": "2026-11-01T14:14:04.912+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 7015,
        "last_frame_seq": 7020,
        "first_pts_ns": 293320878015,
        "last_pts_ns": 293541878015,
        "observations": 3,
        "first_observed_kst": "2026-11-01T14:14:07.051+09:00",
        "last_observed_kst": "2026-11-01T14:14:07.263+09:00",
        "left_censored": false,
        "right_censored": false
      },
      {
        "first_frame_seq": 7174,
        "last_frame_seq": 7174,
        "first_pts_ns": 299933878015,
        "last_pts_ns": 299933878015,
        "observations": 1,
        "first_observed_kst": "2026-11-01T14:14:13.680+09:00",
        "last_observed_kst": "2026-11-01T14:14:13.680+09:00",
        "left_censored": false,
        "right_censored": true
      }
    ],
    "pts_gap_seconds": {
      "N": 451,
      "mean": 0.10000665188470066,
      "p5": 0.066,
      "p50": 0.099,
      "p95": 0.137
    },
    "gaps_gt_015": 3,
    "source_dimensions": [
      [
        1920,
        1080
      ]
    ],
    "run_id": "f750a06a-51d7-4401-a106-be1ff413e499",
    "run_generation": 4,
    "recent_same_run_events": [
      {
        "event_id": "bb075d3f-d1a7-4521-8976-c8b9b8451714",
        "created_kst": "2026-11-01T14:09:15.533+09:00",
        "frame_seq": 17,
        "pts_ns": 1720878015,
        "state": "SENT",
        "artifact": "READY",
        "http_status": 200
      }
    ],
    "tracking": {
      "activation": 0.25,
      "lost_buffer": 30,
      "matching": 0.8,
      "frame_rate": 30,
      "consecutive": 1,
      "enabled": true
    },
    "read_errors": []
  },
  "offline": {
    "observations": 201,
    "source_frame_range": [
      242,
      722
    ],
    "source_seconds": [
      10.031,
      29.998
    ],
    "pose": {
      "observations": 201,
      "objects": {
        "N": 201,
        "mean": 4.208955223880597,
        "p5": 2,
        "p50": 4,
        "p95": 5
      },
      "person_score": {
        "N": 846,
        "mean": 0.6098514319639387,
        "p5": 0.31116833608965017,
        "p50": 0.6552257113757178,
        "p95": 0.7993639862357098
      },
      "person_slots": 846,
      "untracked_slots": 61,
      "untracked_percent": 7.210401891252955,
      "joints": {
        "priority8": {
          "slots": 6768,
          "coordinate_invalid": 0,
          "score_ge010_valid": 6715,
          "score_ge030_valid": 6431
        },
        "wrists2": {
          "slots": 1692,
          "coordinate_invalid": 0,
          "score_ge010_valid": 1665,
          "score_ge030_valid": 1500
        },
        "ankles2": {
          "slots": 1692,
          "coordinate_invalid": 0,
          "score_ge010_valid": 1692,
          "score_ge030_valid": 1692
        }
      }
    },
    "current_hit_observations": 7,
    "current_hit_percent": 3.482587064676617,
    "active_group_display_observations": 31,
    "active_group_display_percent": 15.422885572139304,
    "global_episode_display_observations": 65,
    "events_in_shown_range": [],
    "events_in_preparation": [
      211
    ],
    "pose_extraction": {
      "status": "PASS",
      "fps": 10,
      "sampling": "nearest actual PTS to 0.1s grid; unique source frames",
      "person_threshold": 0.15,
      "joint_threshold": 0.3,
      "nms_iou": 0.85,
      "tracking": {
        "activation": 0.25,
        "lost_buffer": 30,
        "matching": 0.8,
        "frame_rate": 10,
        "consecutive": 1,
        "enabled": true
      },
      "preprocess": "CPU OpenCV bilinear stretch RGB576, ImageNet mean/std, FP32 arithmetic -> FP16 NCHW; GPU resize bit-equivalence not claimed",
      "model": "RFDETRKeypointPreview",
      "engine_sha256": "952464a98eca457dd15006f30444f44455261f5bcd210ad7a9d1b3c9677e84de",
      "production_queue_used": false,
      "experiment_instances": 1,
      "source_files": {
        "rfdetr_postprocess.py": "c0f1dfaa03028f30373f9de39e2bc1fb4d827dd1a50c5e96951144f1a3ba69d7",
        "byte_tracking.py": "4e083b18d069ec44b41fe95185af5a0f820874cb5225ddff0527c0cf79cb6c8c",
        "tracking_kernel.py": "058a465b11080b486b74e4e31bb6ea5a68bdf22fecf5934c300b150731417a75",
        "pose_nms.py": "d21b33ef7eec93f8a699b665e7008f8c9d980bbcfe8b9530ee593399743744fe"
      },
      "samples": 400,
      "people_min": 2,
      "people_max": 9,
      "untracked_observations": 227,
      "max_sampling_error_seconds": 0.031000000000000583,
      "wall_seconds": 60.458
    }
  },
  "previous_joint030_observation": {
    "camera": 24,
    "start_kst": "2026-11-01T13:47:35.206+09:00",
    "end_kst": "2026-11-01T13:48:20.281+09:00",
    "duration_seconds": 45.07428141403943,
    "metadata_observations": 452,
    "observed_metadata_rate": 10.02789142322775,
    "provider_models": {
      "RFDETRKeypointPreview": 452
    },
    "run_count": 1,
    "run_generation": 2,
    "settings_unchanged": true,
    "containers_unchanged": true,
    "read_errors": [],
    "display_fight_observations": 28,
    "display_fight_percent": 6.1946902654867255,
    "display_intervals": [
      {
        "first_frame_seq": 12656,
        "last_frame_seq": 12666,
        "first_observed_kst": "2026-11-01T13:47:36.657+09:00",
        "last_observed_kst": "2026-11-01T13:47:37.048+09:00",
        "observations": 5,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 12743,
        "last_frame_seq": 12755,
        "first_observed_kst": "2026-11-01T13:47:40.283+09:00",
        "last_observed_kst": "2026-11-01T13:47:40.763+09:00",
        "observations": 6,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 12980,
        "last_frame_seq": 12995,
        "first_observed_kst": "2026-11-01T13:47:50.131+09:00",
        "last_observed_kst": "2026-11-01T13:47:50.765+09:00",
        "observations": 7,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 13149,
        "last_frame_seq": 13149,
        "first_observed_kst": "2026-11-01T13:47:57.176+09:00",
        "last_observed_kst": "2026-11-01T13:47:57.176+09:00",
        "observations": 1,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 13388,
        "last_frame_seq": 13388,
        "first_observed_kst": "2026-11-01T13:48:07.150+09:00",
        "last_observed_kst": "2026-11-01T13:48:07.150+09:00",
        "observations": 1,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 13463,
        "last_frame_seq": 13478,
        "first_observed_kst": "2026-11-01T13:48:10.264+09:00",
        "last_observed_kst": "2026-11-01T13:48:10.919+09:00",
        "observations": 7,
        "right_censored_by_capture_end": false
      },
      {
        "first_frame_seq": 13703,
        "last_frame_seq": 13703,
        "first_observed_kst": "2026-11-01T13:48:20.281+09:00",
        "last_observed_kst": "2026-11-01T13:48:20.281+09:00",
        "observations": 1,
        "right_censored_by_capture_end": true
      }
    ],
    "new_events": [
      {
        "event_id": "7da55541-7109-4bd8-a577-419dad502542",
        "frame_seq": 13703,
        "pts_ns": 574148734431,
        "ai_recorded_kst": "2026-11-01T13:48:20.277+09:00",
        "artifact_state": "READY",
        "delivery_state": "SENT",
        "http_status": 200,
        "media": {
          "clip": true,
          "audio": false,
          "frames": 60,
          "resize": "SOURCE_ASPECT_PRESERVED_WITH_PADDING",
          "endPtsNs": 577066734431,
          "selection": "EXACT_PTS_METADATA",
          "thumbnail": true,
          "durationMs": 6033.666666,
          "nativeDrop": 4,
          "preShortMs": 0.0,
          "startPtsNs": 571148734431,
          "postShortMs": 0.0,
          "captureReason": "COMPLETE",
          "metadataQueueDrop": 0,
          "requestedEndPtsNs": 577148734431,
          "requestedStartPtsNs": 571148734431,
          "metadataMissingFrames": 85,
          "thumbnailMissingReason": null,
          "omittedFramesWithoutMetadata": 85
        }
      }
    ],
    "color_state_mismatches": 0,
    "objects_per_observation": {
      "6": 53,
      "7": 21,
      "5": 177,
      "4": 114,
      "8": 8,
      "2": 38,
      "3": 40,
      "9": 1
    },
    "fight_objects_per_positive_observation": {
      "2": 28
    },
    "pts_gap_seconds": {
      "min": 0.039,
      "median": 0.099,
      "max": 0.155
    },
    "ingest_to_observe_ms": {
      "median": 20.0,
      "max": 62
    },
    "source_time_to_observe_ms": {
      "median": 19678,
      "max": 19753,
      "interpretation": "External source anchor is ESTIMATED; not proven processing latency."
    },
    "time_sync_states": {
      "ESTIMATED": 447,
      "UNAVAILABLE": 5
    },
    "priority_joint_slots": 16600,
    "priority_joint_score_ge030": 15459,
    "priority_joint_score_ge010": 16437,
    "joint_score_counts_note": "Available published object slots only; not person recall or a rerun of R5 at another threshold.",
    "effective": {
      "fight": {
        "enabled": true,
        "person_score": 0.25,
        "joint_score": 0.3,
        "pair_distance_ratio": 1.8,
        "pair_close_hold_seconds": 0.1,
        "arm_motion_window_seconds": 1.0,
        "arm_motion_ratio": 0.1,
        "toward_opponent_ratio": 0.01,
        "fight_window_seconds": 1.5,
        "required_bursts": 1,
        "burst_min_interval_seconds": 0.25,
        "rearm_quiet_seconds": 2.0,
        "pair_retention_seconds": 5.0,
        "max_people": 32,
        "max_pairs": 128,
        "history_capacity": 64,
        "roi_id": "primary",
        "roi_name": "Fight ROI",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "engine": "r5",
        "r5": {
          "schema_version": 1,
          "window_seconds": 1.0,
          "min_samples": 2,
          "contact_min_samples": 3
        }
      },
      "pose": {
        "enabled": false,
        "show_bbox": true,
        "show_joints": false,
        "show_edges": false,
        "person_score": 0.25,
        "joint_score": 0.15,
        "min_joints": 10,
        "nms_enabled": true,
        "nms_iou_threshold": 0.85,
        "detail_track_id": null,
        "detail_object_ref": null,
        "detail_frame_seq": null,
        "show_joint_names": false,
        "show_joint_scores": false,
        "capture_interval_s": 3.0
      },
      "tracking": {
        "activation": 0.25,
        "lost_buffer": 30,
        "matching": 0.8,
        "frame_rate": 30,
        "consecutive": 1,
        "enabled": true
      },
      "analysisFpsTarget": 10.0,
      "display_categories": [
        "person"
      ]
    },
    "saved_event_cooldowns": {
      "FIRE": 10.0,
      "FALL": 10.0,
      "INTRUSION": 10.0,
      "LOITERING": 10.0,
      "FIGHT": 10.0,
      "CROWD": 10.0
    },
    "web_fight_item": {
      "scenarioCode": "FIGHT",
      "enabled": true,
      "rois": [],
      "parameters": {
        "person_confidence": 0.15,
        "cooldown_seconds": 10,
        "pair_distance_ratio": 1.8,
        "required_bursts": 1,
        "pose_confidence": 0.3,
        "arm_motion_ratio": 0.1,
        "pair_close_hold_seconds": 0.1
      }
    },
    "request_evidence": "Reconstructed from current Web DB and source assembly/catalog; no raw HTTP request packet captured.",
    "limits": [
      "FIGHT color/state includes display hold; not exact current-rule-positive count.",
      "Only existing event clip/thumbnail samples inspected, not a full 45-second RGB recording.",
      "No model/Pose/Tracking/rule rerun or config changes; no browser pixel capture.",
      "New event is at observation end; initial ledger SELECT was before asynchronous acceptance. Follow-up confirms READY/SENT."
    ]
  },
  "verified": {
    "settings_stable": true,
    "configured_effective_joint010": true,
    "same_run": true,
    "source_hashes_unchanged": true,
    "container_identities_unchanged": true,
    "pts_strict": true,
    "color_state_mismatches": 0,
    "offline_pose_and_trace_hashes_match": true
  },
  "limitations": [
    "No common source-frame or PTS mapping between live RTSP and old offline recording.",
    "Published live FIGHT state includes hold, not the current rule decision trace.",
    "Offline active group display and live contributor bbox display are different presentation units.",
    "Model provider name matches, but CPU resize versus live GPU preprocessing is not bit-equivalent evidence.",
    "No inference, rule replay, runtime patch or parameter adjustment performed.",
    "An unbounded recent-event SELECT exceeded its 2.5-second timeout; a bounded 10-minute read-only query succeeded."
  ]
}
