{
  "completed_local": "2026-09-10T16:38:11.427744-07:00",
  "base": "/private/tmp/smartgrid-ipad-midi-retest-20260910",
  "recording": {
    "started_local": "2026-09-10T16:14:25.249392-07:00",
    "started_epoch_ns": 1789082065249392000,
    "started_monotonic_ns": 3569072115828291,
    "device": "K-Mix",
    "input_channels": [
      3,
      4
    ],
    "rate": 48000,
    "bits": 24,
    "maximum_seconds": 960,
    "command": [
      "/opt/homebrew/bin/sox",
      "--buffer",
      "131072",
      "-q",
      "-t",
      "coreaudio",
      "-r",
      "48000",
      "-c",
      "8",
      "K-Mix",
      "-b",
      "24",
      "/private/tmp/smartgrid-ipad-midi-retest-20260910.wav",
      "remix",
      "3",
      "4",
      "trim",
      "0",
      "960"
    ],
    "wrapper_pid": 29458,
    "source": "Same-binary redeployment and hot restart with MIDI worker enabled; normal UI/DSP, JUCE8.0.15, actual MAYA48k/512, zero app inputs/four outputs. iPad serious thermal2 at startup, no thermal override. User reported absent WRLD.BLDR LED output before restart; post-restart physical LED verification pending.",
    "status": "recorded",
    "sox_pid": 29465,
    "system_log_pid": 29463,
    "keep_awake_pid": 29464,
    "returncode": 0,
    "ended_local": "2026-09-10T16:30:25.249392-07:00",
    "ended_epoch_ns": 1789083025249392000,
    "wrapper_ended_local": "2026-09-10T16:30:25.659962-07:00",
    "wrapper_started_epoch_ns": 1789082065249420000,
    "wrapper_ended_epoch_ns": 1789083025660092000,
    "measured_wav_seconds": 960.0,
    "timing_note": "Window local and epoch boundaries are derived from the same ISO timestamps at microsecond precision. End is nominal recorder start plus exact WAVE data-frame duration. Original separately sampled wrapper epoch timestamps and completion time are retained in wrapper_* fields and the raw recorder JSON. Independent audio clocks/start latency mean this is not sample-accurate device-log alignment."
  },
  "callbacks": {
    "app_log": "/private/tmp/smartgrid-ipad-midi-retest-20260910.app.log",
    "recording_metadata": "/private/tmp/smartgrid-ipad-midi-retest-20260910.window.json",
    "callbacks": 89998,
    "sample_rates": [
      48000.0
    ],
    "frame_sizes": [
      512.0
    ],
    "thermal_states": [
      2.0
    ],
    "low_power_states": [
      0.0
    ],
    "muted_states": [
      0.0
    ],
    "sequence_holes": 0,
    "logger_miss_lines_entire_log": [],
    "dsp_ms_p50_p99_max": [
      4.33,
      5.131,
      5.231
    ],
    "gap_ms_p50_p99_max": [
      10.666,
      10.675,
      10.69
    ],
    "measured_dsp_overruns": 0,
    "xrun_start_end": [
      2,
      2
    ],
    "callback_gaps_gt20ms": [],
    "xrun_increments": [],
    "clock_offset_fit_slope": 4.1141136612882354e-05,
    "clock_fit_max_residual_ms": 6.992101669311523,
    "limit": "dsp_us measures the instrumented processing region; it excludes subsequent callback logging and outer JUCE/native work. xr is the native device counter."
  },
  "correlation": {
    "base": "/private/tmp/smartgrid-ipad-midi-retest-20260910",
    "recording_start": "2026-09-10T16:14:25.249392-07:00",
    "recording_end": "2026-09-10T16:30:25.249392-07:00",
    "recording_seconds": 960.0,
    "kernel_maya_transaction_failures": 0,
    "audio_restart_records": 0,
    "near_silence_wave_intervals": 0,
    "native_callback_gaps_gt100ms": 0,
    "matched_usb_error_messages": 0,
    "matched_interruption_episodes": 0,
    "unique_matched_callbacks": 0,
    "unique_matched_wave_intervals": 0,
    "zero_length_reports": 0,
    "zero_length_transfers_reported": 0,
    "io_drift_records": 0,
    "callback_resume_minus_wav_end_ms_range": [],
    "correlation_limit": "Wave event matching uses a conservative 750 ms neighborhood and reports unique callback/wave episodes. Multiple USB failure messages can belong to one interruption. Recorder/CoreAudio startup latency and independent audio clocks shift WAV timing relative to app logs; offsets are not causal transport latency measurements.",
    "rows": [],
    "zlp_events": [],
    "drift_events": []
  },
  "midi": {
    "base": "/private/tmp/smartgrid-ipad-midi-retest-20260910",
    "samples": 954,
    "malformed_samples": [],
    "all_enabled_running": true,
    "all_sysex_depth_bounded": true,
    "all_fault_discard_counts_zero": true,
    "monotonic_counters": {
      "discarded": true,
      "sysex_enqueued": true,
      "sysex_submitted": true,
      "sysex_full": true,
      "sysex_discarded": true,
      "sysex_invalid": true
    },
    "first": {
      "enabled": 1,
      "running": 1,
      "queued": 2,
      "discarded": 0,
      "sysex_queued": 0,
      "sysex_enqueued": 1667,
      "sysex_submitted": 1667,
      "sysex_full": 0,
      "sysex_discarded": 0,
      "sysex_invalid": 0,
      "local_time": "16:14:25"
    },
    "last": {
      "enabled": 1,
      "running": 1,
      "queued": 3,
      "discarded": 0,
      "sysex_queued": 0,
      "sysex_enqueued": 41759,
      "sysex_submitted": 41759,
      "sysex_full": 0,
      "sysex_discarded": 0,
      "sysex_invalid": 0,
      "local_time": "16:30:25"
    },
    "ranges": {
      "enabled": [
        1,
        1
      ],
      "running": [
        1,
        1
      ],
      "queued": [
        1,
        5
      ],
      "discarded": [
        0,
        0
      ],
      "sysex_queued": [
        0,
        2
      ],
      "sysex_enqueued": [
        1667,
        41759
      ],
      "sysex_submitted": [
        1667,
        41759
      ],
      "sysex_full": [
        0,
        0
      ],
      "sysex_discarded": [
        0,
        0
      ],
      "sysex_invalid": [
        0,
        0
      ]
    },
    "totals_between_samples": {
      "sysex_enqueued": 40092,
      "sysex_submitted": 40092
    },
    "time_selection": "App wall-clock seconds within nominal recording interval; edge observations may differ by less than one second. Counters/depth are independently sampled. Submissions are handler calls, not hardware acknowledgments; depth is approximate."
  },
  "periodic": {
    "base": "/private/tmp/smartgrid-ipad-midi-retest-20260910",
    "seconds": 960.0,
    "short_candidates": 3,
    "episodes": [],
    "method": "Consecutive 1-second bins with at least 10 short flat candidates form dense episodes. Same criterion as the earlier UI comparison. Natural quiet/smooth music can produce candidates; inspect waveform and cadence to attribute periodic blanking. Analog settling affects widths. No claim against subtle clicks."
  },
  "startup_callback_failures": [
    {
      "cb": 1026.0,
      "t_us": 175498004996.0,
      "gap_us": 218831.0,
      "prev_budget_us": 10667.0,
      "dsp_us": 3754.0,
      "n": 512.0,
      "sr": 48000.0,
      "xr": 1.0,
      "thermal": 2.0,
      "lp": 0.0,
      "muted": 0.0,
      "time": "16:13:56"
    },
    {
      "cb": 1187.0,
      "t_us": 175499928645.0,
      "gap_us": 217049.0,
      "prev_budget_us": 10667.0,
      "dsp_us": 4906.0,
      "n": 512.0,
      "sr": 48000.0,
      "xr": 2.0,
      "thermal": 2.0,
      "lp": 0.0,
      "muted": 0.0,
      "time": "16:13:58"
    }
  ],
  "startup_usb_failures": [
    "2026-09-10T16:13:56.119352-07:00",
    "2026-09-10T16:13:58.046592-07:00"
  ],
  "startup_limit": "Two matching MAYA transaction errors/restarts and217\u2013219ms callback gaps at11\u201313seconds after playback began, thermal2. Occurred during startup verification before K-Mix recording; no analog coverage there. First callback also had17.296ms DSP time and470frames, a separate startup event.",
  "physical_midi_output": "User confirmed LEDs work in this build after redeployment; confirmation received during analysis. Does not retrospectively establish physical MIDI delivery throughout preceding15:08 session.",
  "waveform_inspection": "Three isolated0.417\u20130.500ms low-variation candidates have smooth transitions and nonzero channel offsets; no abrupt zero-filled block or dense cadence established. Not evidence of prior sustained periodic blanking, and subtle clicks are not excluded.",
  "outcome": "No long analog interruption, native callback stall, USB transaction failure/restart, drift report or dense periodic episode in the measured960seconds. Two early USB/callback failures before recording show serious thermal does not prevent all failures.",
  "next": "User requested only five additional minutes, then stop app to cool and repeat same build after nominal is verified if the extension remains clean."
}
