{
  "recorded": "2026-09-15",
  "mode": "Offline local-rule software replay",
  "cases": [
    {
      "id": "pitch_001",
      "label": "Pitch",
      "instruction": "Transpose measure 1 of staff 1 up by a major second while preserving rhythm.",
      "scope": {
        "measures": [
          1
        ],
        "parts": [],
        "staffs": [
          "right_hand"
        ],
        "voices": [],
        "event_ids": [],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": false
      },
      "status": "generated",
      "reason": null,
      "operations": [
        {
          "operation_id": "op_001",
          "type": "transpose",
          "selector": {
            "event_ids": [
              "m1_rh_1",
              "m1_rh_2",
              "m1_rh_3",
              "m1_rh_4"
            ]
          },
          "arguments": {
            "semitones": 2
          },
          "preconditions": [],
          "expected_change_count": 4
        }
      ],
      "diff": {
        "added": [],
        "deleted": [],
        "changed": [
          {
            "event_id": "m1_rh_1",
            "before_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_1",
              "offset": "0"
            },
            "after_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_1",
              "offset": "0"
            },
            "changed_fields": [
              "pitch"
            ],
            "before": {
              "event_id": "m1_rh_1",
              "type": "note",
              "pitch": "C4",
              "duration": "quarter",
              "offset": 0.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "m1_rh_1",
              "type": "note",
              "pitch": "D4",
              "duration": "quarter",
              "offset": 0.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "m1_rh_2",
            "before_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_2",
              "offset": "1"
            },
            "after_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_2",
              "offset": "1"
            },
            "changed_fields": [
              "pitch"
            ],
            "before": {
              "event_id": "m1_rh_2",
              "type": "note",
              "pitch": "D4",
              "duration": "quarter",
              "offset": 1.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "m1_rh_2",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 1.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "m1_rh_3",
            "before_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_3",
              "offset": "2"
            },
            "after_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_3",
              "offset": "2"
            },
            "changed_fields": [
              "pitch"
            ],
            "before": {
              "event_id": "m1_rh_3",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "m1_rh_3",
              "type": "note",
              "pitch": "F#4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "m1_rh_4",
            "before_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_4",
              "offset": "3"
            },
            "after_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_4",
              "offset": "3"
            },
            "changed_fields": [
              "pitch"
            ],
            "before": {
              "event_id": "m1_rh_4",
              "type": "note",
              "pitch": "G4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "m1_rh_4",
              "type": "note",
              "pitch": "A4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          }
        ],
        "global_changes": {},
        "changed_element_count": 4
      },
      "checks": {
        "schema_version": "1.0.0",
        "operation_count": 1,
        "structural": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "event_count": 16,
            "measure_count": 2,
            "operation_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "preconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "precondition_count": 0
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "duration": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_quarters": "4",
            "voice_end_positions": {
              "m1:left_hand:v1": "4",
              "m1:right_hand:v1": "4",
              "m2:left_hand:v1": "4",
              "m2:right_hand:v1": "4"
            },
            "voice_coverage": {
              "m1:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m1:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              }
            },
            "pickup_first_measure_allowed": false
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "notation_relations": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "open_ties": 0,
            "open_slurs": 0,
            "chord_onsets_checked": 0,
            "malformed_chords": [],
            "event_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "protected_scope": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "unexpected_changed_elements": 0,
            "protected_element_count": 12,
            "preservation_rate": 1.0,
            "violation_details": []
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "postconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_effect_count": 1
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "musicxml_roundtrip": {
          "exported": true,
          "reimported": true,
          "validator_valid": true,
          "issues": [],
          "warnings": [],
          "metrics": {
            "valid_musicxml": true,
            "musicxml_parseable": true,
            "music21_parseable": true,
            "musicxml_exportable": true,
            "measure_count": 2,
            "expected_measure_count": null,
            "measure_count_match": true,
            "bar_completeness": 1.0,
            "bar_completeness_score": 1.0,
            "pitch_range_valid": true,
            "pitch_count": 16,
            "empty_measure_count": 0,
            "rest_only_measure_count": 0,
            "midi_export_success": true,
            "pdf_export_success": true
          }
        },
        "roundtrip_fidelity": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "source_event_count": 16,
            "imported_event_count": 16,
            "missing_event_ids": [],
            "added_event_ids": [],
            "field_mismatches": [],
            "global_mismatches": [],
            "fidelity_rate": 1.0
          },
          "repairable": false,
          "suggested_repairs": []
        }
      },
      "sourceFingerprint": "sha256:ad33e5ab9d9e04650ee8b18587f965e1a03288415d4e5fa076c1d9a1a8aef6c4",
      "download": "/assets/demo/pitch_001.musicxml"
    },
    {
      "id": "dynamics_001",
      "label": "Dynamics",
      "instruction": "Change only the third note in measure 1 to forte, preserving pitch and duration.",
      "scope": {
        "measures": [
          1
        ],
        "parts": [],
        "staffs": [
          "right_hand"
        ],
        "voices": [],
        "event_ids": [
          "m1_rh_3"
        ],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": false
      },
      "status": "generated",
      "reason": null,
      "operations": [
        {
          "operation_id": "op_001",
          "type": "set_dynamic",
          "selector": {
            "event_ids": [
              "m1_rh_3"
            ]
          },
          "arguments": {
            "dynamic": "f"
          },
          "preconditions": [],
          "expected_change_count": 1
        }
      ],
      "diff": {
        "added": [],
        "deleted": [],
        "changed": [
          {
            "event_id": "m1_rh_3",
            "before_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_3",
              "offset": "2"
            },
            "after_location": {
              "measure": 1,
              "measure_id": "m1",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "m1_rh_3",
              "offset": "2"
            },
            "changed_fields": [
              "dynamic"
            ],
            "before": {
              "event_id": "m1_rh_3",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "m1_rh_3",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "f",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          }
        ],
        "global_changes": {},
        "changed_element_count": 1
      },
      "checks": {
        "schema_version": "1.0.0",
        "operation_count": 1,
        "structural": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "event_count": 16,
            "measure_count": 2,
            "operation_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "preconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "precondition_count": 0
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "duration": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_quarters": "4",
            "voice_end_positions": {
              "m1:left_hand:v1": "4",
              "m1:right_hand:v1": "4",
              "m2:left_hand:v1": "4",
              "m2:right_hand:v1": "4"
            },
            "voice_coverage": {
              "m1:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m1:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              }
            },
            "pickup_first_measure_allowed": false
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "notation_relations": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "open_ties": 0,
            "open_slurs": 0,
            "chord_onsets_checked": 0,
            "malformed_chords": [],
            "event_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "protected_scope": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "unexpected_changed_elements": 0,
            "protected_element_count": 15,
            "preservation_rate": 1.0,
            "violation_details": []
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "postconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_effect_count": 2
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "musicxml_roundtrip": {
          "exported": true,
          "reimported": true,
          "validator_valid": true,
          "issues": [],
          "warnings": [],
          "metrics": {
            "valid_musicxml": true,
            "musicxml_parseable": true,
            "music21_parseable": true,
            "musicxml_exportable": true,
            "measure_count": 2,
            "expected_measure_count": null,
            "measure_count_match": true,
            "bar_completeness": 1.0,
            "bar_completeness_score": 1.0,
            "pitch_range_valid": true,
            "pitch_count": 16,
            "empty_measure_count": 0,
            "rest_only_measure_count": 0,
            "midi_export_success": true,
            "pdf_export_success": true
          }
        },
        "roundtrip_fidelity": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "source_event_count": 16,
            "imported_event_count": 16,
            "missing_event_ids": [],
            "added_event_ids": [],
            "field_mismatches": [],
            "global_mismatches": [],
            "fidelity_rate": 1.0
          },
          "repairable": false,
          "suggested_repairs": []
        }
      },
      "sourceFingerprint": "sha256:1c6a4d6e5e473ff92e511ec1b6dca79c13324fd959a88f1372175ddfbf6553c3",
      "download": "/assets/demo/dynamics_001.musicxml"
    },
    {
      "id": "key_001",
      "label": "Key signature",
      "instruction": "Change the score key signature to G major without transposing notes.",
      "scope": {
        "measures": [],
        "parts": [],
        "staffs": [],
        "voices": [],
        "event_ids": [],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": true
      },
      "status": "generated",
      "reason": null,
      "operations": [
        {
          "operation_id": "op_001",
          "type": "change_key_signature",
          "selector": {},
          "arguments": {
            "key": "G major"
          },
          "preconditions": [],
          "expected_change_count": null
        }
      ],
      "diff": {
        "added": [],
        "deleted": [],
        "changed": [],
        "global_changes": {
          "key": {
            "before": "C major",
            "after": "G major"
          }
        },
        "changed_element_count": 1
      },
      "checks": {
        "schema_version": "1.0.0",
        "operation_count": 1,
        "structural": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "event_count": 16,
            "measure_count": 2,
            "operation_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "preconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "precondition_count": 0
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "duration": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_quarters": "4",
            "voice_end_positions": {
              "m1:left_hand:v1": "4",
              "m1:right_hand:v1": "4",
              "m2:left_hand:v1": "4",
              "m2:right_hand:v1": "4"
            },
            "voice_coverage": {
              "m1:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m1:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              }
            },
            "pickup_first_measure_allowed": false
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "notation_relations": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "open_ties": 0,
            "open_slurs": 0,
            "chord_onsets_checked": 0,
            "malformed_chords": [],
            "event_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "protected_scope": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "unexpected_changed_elements": 0,
            "protected_element_count": 0,
            "preservation_rate": 1.0,
            "violation_details": []
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "postconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_effect_count": 2
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "musicxml_roundtrip": {
          "exported": true,
          "reimported": true,
          "validator_valid": true,
          "issues": [],
          "warnings": [],
          "metrics": {
            "valid_musicxml": true,
            "musicxml_parseable": true,
            "music21_parseable": true,
            "musicxml_exportable": true,
            "measure_count": 2,
            "expected_measure_count": null,
            "measure_count_match": true,
            "bar_completeness": 1.0,
            "bar_completeness_score": 1.0,
            "pitch_range_valid": true,
            "pitch_count": 16,
            "empty_measure_count": 0,
            "rest_only_measure_count": 0,
            "midi_export_success": true,
            "pdf_export_success": true
          }
        },
        "roundtrip_fidelity": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "source_event_count": 16,
            "imported_event_count": 16,
            "missing_event_ids": [],
            "added_event_ids": [],
            "field_mismatches": [],
            "global_mismatches": [],
            "fidelity_rate": 1.0
          },
          "repairable": false,
          "suggested_repairs": []
        }
      },
      "sourceFingerprint": "sha256:76870a85e1d2b89bfad835e8e3c3d5b70ff14a1623c1dcd968ec389cf8b24c16",
      "download": "/assets/demo/key_001.musicxml"
    },
    {
      "id": "meter_001",
      "label": "Meter",
      "instruction": "Rebar the three-measure excerpt from 4/4 to 3/4 by removing the final quarter-note event from each staff in every measure; preserve every remaining pitch and duration.",
      "scope": {
        "measures": [],
        "parts": [],
        "staffs": [],
        "voices": [],
        "event_ids": [],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": true
      },
      "status": "generated",
      "reason": null,
      "operations": [
        {
          "operation_id": "op_001",
          "type": "change_time_signature",
          "selector": {},
          "arguments": {
            "meter": "3/4"
          },
          "preconditions": [],
          "expected_change_count": null
        },
        {
          "operation_id": "op_002",
          "type": "delete_event",
          "selector": {
            "event_ids": [
              "s007_m1_lh_4",
              "s007_m1_rh_4",
              "s007_m2_lh_4",
              "s007_m2_rh_4",
              "s007_m3_lh_4",
              "s007_m3_rh_4"
            ]
          },
          "arguments": {},
          "preconditions": [],
          "expected_change_count": 6
        }
      ],
      "diff": {
        "added": [],
        "deleted": [
          {
            "measure": 1,
            "measure_id": "m1",
            "part_id": "piano",
            "staff": "left_hand",
            "voice": 1,
            "event_id": "s007_m1_lh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m1_lh_4",
              "type": "note",
              "pitch": "D3",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "left_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "measure": 1,
            "measure_id": "m1",
            "part_id": "piano",
            "staff": "right_hand",
            "voice": 1,
            "event_id": "s007_m1_rh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m1_rh_4",
              "type": "note",
              "pitch": "A4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "measure": 2,
            "measure_id": "m2",
            "part_id": "piano",
            "staff": "left_hand",
            "voice": 1,
            "event_id": "s007_m2_lh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m2_lh_4",
              "type": "note",
              "pitch": "C3",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "left_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "measure": 2,
            "measure_id": "m2",
            "part_id": "piano",
            "staff": "right_hand",
            "voice": 1,
            "event_id": "s007_m2_rh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m2_rh_4",
              "type": "note",
              "pitch": "B4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "measure": 3,
            "measure_id": "m3",
            "part_id": "piano",
            "staff": "left_hand",
            "voice": 1,
            "event_id": "s007_m3_lh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m3_lh_4",
              "type": "note",
              "pitch": "A2",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "left_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "measure": 3,
            "measure_id": "m3",
            "part_id": "piano",
            "staff": "right_hand",
            "voice": 1,
            "event_id": "s007_m3_rh_4",
            "offset": "3",
            "before": {
              "event_id": "s007_m3_rh_4",
              "type": "note",
              "pitch": "C5",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          }
        ],
        "changed": [],
        "global_changes": {
          "meter": {
            "before": "4/4",
            "after": "3/4"
          }
        },
        "changed_element_count": 7
      },
      "checks": {
        "schema_version": "1.0.0",
        "operation_count": 2,
        "structural": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "event_count": 25,
            "measure_count": 3,
            "operation_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "preconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "precondition_count": 0
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "duration": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_quarters": "3",
            "voice_end_positions": {
              "m1:left_hand:v1": "3",
              "m1:right_hand:v1": "3",
              "m2:left_hand:v1": "3",
              "m2:right_hand:v1": "3",
              "m3:left_hand:v1": "3",
              "m3:right_hand:v1": "3"
            },
            "voice_coverage": {
              "m1:left_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              },
              "m1:right_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              },
              "m2:left_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              },
              "m2:right_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              },
              "m3:left_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              },
              "m3:right_hand:v1": {
                "covered": "3",
                "gaps": [],
                "collisions": []
              }
            },
            "pickup_first_measure_allowed": false
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "notation_relations": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "open_ties": 0,
            "open_slurs": 0,
            "chord_onsets_checked": 1,
            "malformed_chords": [],
            "event_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "protected_scope": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "unexpected_changed_elements": 0,
            "protected_element_count": 0,
            "preservation_rate": 1.0,
            "violation_details": []
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "postconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_effect_count": 2
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "musicxml_roundtrip": {
          "exported": true,
          "reimported": true,
          "validator_valid": true,
          "issues": [],
          "warnings": [],
          "metrics": {
            "valid_musicxml": true,
            "musicxml_parseable": true,
            "music21_parseable": true,
            "musicxml_exportable": true,
            "measure_count": 3,
            "expected_measure_count": null,
            "measure_count_match": true,
            "bar_completeness": 1.0,
            "bar_completeness_score": 1.0,
            "pitch_range_valid": true,
            "pitch_count": 19,
            "empty_measure_count": 0,
            "rest_only_measure_count": 0,
            "midi_export_success": true,
            "pdf_export_success": true
          }
        },
        "roundtrip_fidelity": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "source_event_count": 19,
            "imported_event_count": 19,
            "missing_event_ids": [],
            "added_event_ids": [],
            "field_mismatches": [],
            "global_mismatches": [],
            "fidelity_rate": 1.0
          },
          "repairable": false,
          "suggested_repairs": []
        }
      },
      "sourceFingerprint": "sha256:17249fc88afc0227dd7079b2ba1635380945d9ba8470ad5aa9fd11a459644e24",
      "download": "/assets/demo/meter_001.musicxml"
    },
    {
      "id": "voice_010",
      "label": "Voice",
      "instruction": "Move all notes in measure 3 staff 1 from voice 1 to voice 2, preserving pitch and rhythm.",
      "scope": {
        "measures": [
          3
        ],
        "parts": [],
        "staffs": [
          "right_hand"
        ],
        "voices": [],
        "event_ids": [],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": false
      },
      "status": "generated",
      "reason": null,
      "operations": [
        {
          "operation_id": "op_001",
          "type": "move_to_voice",
          "selector": {
            "event_ids": [
              "s017_m3_rh_1",
              "s017_m3_rh_2",
              "s017_m3_rh_3",
              "s017_m3_rh_4"
            ]
          },
          "arguments": {
            "voice": 2
          },
          "preconditions": [],
          "expected_change_count": 4
        }
      ],
      "diff": {
        "added": [],
        "deleted": [],
        "changed": [
          {
            "event_id": "s017_m3_rh_1",
            "before_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "s017_m3_rh_1",
              "offset": "0"
            },
            "after_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 2,
              "event_id": "s017_m3_rh_1",
              "offset": "0"
            },
            "changed_fields": [
              "voice"
            ],
            "before": {
              "event_id": "s017_m3_rh_1",
              "type": "note",
              "pitch": "C5",
              "duration": "quarter",
              "offset": 0.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "s017_m3_rh_1",
              "type": "note",
              "pitch": "C5",
              "duration": "quarter",
              "offset": 0.0,
              "voice": 2,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "s017_m3_rh_2",
            "before_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "s017_m3_rh_2",
              "offset": "1"
            },
            "after_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 2,
              "event_id": "s017_m3_rh_2",
              "offset": "1"
            },
            "changed_fields": [
              "voice"
            ],
            "before": {
              "event_id": "s017_m3_rh_2",
              "type": "note",
              "pitch": "C4",
              "duration": "quarter",
              "offset": 1.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "s017_m3_rh_2",
              "type": "note",
              "pitch": "C4",
              "duration": "quarter",
              "offset": 1.0,
              "voice": 2,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "s017_m3_rh_3",
            "before_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "s017_m3_rh_3",
              "offset": "2"
            },
            "after_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 2,
              "event_id": "s017_m3_rh_3",
              "offset": "2"
            },
            "changed_fields": [
              "voice"
            ],
            "before": {
              "event_id": "s017_m3_rh_3",
              "type": "note",
              "pitch": "D4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "s017_m3_rh_3",
              "type": "note",
              "pitch": "D4",
              "duration": "quarter",
              "offset": 2.0,
              "voice": 2,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          },
          {
            "event_id": "s017_m3_rh_4",
            "before_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 1,
              "event_id": "s017_m3_rh_4",
              "offset": "3"
            },
            "after_location": {
              "measure": 3,
              "measure_id": "m3",
              "part_id": "piano",
              "staff": "right_hand",
              "voice": 2,
              "event_id": "s017_m3_rh_4",
              "offset": "3"
            },
            "changed_fields": [
              "voice"
            ],
            "before": {
              "event_id": "s017_m3_rh_4",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 1,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            },
            "after": {
              "event_id": "s017_m3_rh_4",
              "type": "note",
              "pitch": "E4",
              "duration": "quarter",
              "offset": 3.0,
              "voice": 2,
              "staff": "right_hand",
              "tie": null,
              "slur": null,
              "accidental": "",
              "dynamic": "mf",
              "articulations": [],
              "grace": false,
              "is_chord_tone": false,
              "chord_group_id": null
            }
          }
        ],
        "global_changes": {},
        "changed_element_count": 4
      },
      "checks": {
        "schema_version": "1.0.0",
        "operation_count": 1,
        "structural": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "event_count": 24,
            "measure_count": 3,
            "operation_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "preconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "precondition_count": 0
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "duration": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_quarters": "4",
            "voice_end_positions": {
              "m1:left_hand:v1": "4",
              "m1:right_hand:v1": "4",
              "m2:left_hand:v1": "4",
              "m2:right_hand:v1": "4",
              "m3:left_hand:v1": "4",
              "m3:right_hand:v2": "4"
            },
            "voice_coverage": {
              "m1:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m1:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m2:right_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m3:left_hand:v1": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              },
              "m3:right_hand:v2": {
                "covered": "4",
                "gaps": [],
                "collisions": []
              }
            },
            "pickup_first_measure_allowed": false
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "notation_relations": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "open_ties": 0,
            "open_slurs": 0,
            "chord_onsets_checked": 0,
            "malformed_chords": [],
            "event_ids_unique": true
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "protected_scope": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "unexpected_changed_elements": 0,
            "protected_element_count": 20,
            "preservation_rate": 1.0,
            "violation_details": []
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "postconditions": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "expected_effect_count": 2
          },
          "repairable": false,
          "suggested_repairs": []
        },
        "musicxml_roundtrip": {
          "exported": true,
          "reimported": true,
          "validator_valid": true,
          "issues": [],
          "warnings": [],
          "metrics": {
            "valid_musicxml": true,
            "musicxml_parseable": true,
            "music21_parseable": true,
            "musicxml_exportable": true,
            "measure_count": 3,
            "expected_measure_count": null,
            "measure_count_match": true,
            "bar_completeness": 1.0,
            "bar_completeness_score": 1.0,
            "pitch_range_valid": true,
            "pitch_count": 24,
            "empty_measure_count": 0,
            "rest_only_measure_count": 0,
            "midi_export_success": true,
            "pdf_export_success": true
          }
        },
        "roundtrip_fidelity": {
          "status": "valid",
          "errors": [],
          "warnings": [],
          "checks": {
            "source_event_count": 24,
            "imported_event_count": 24,
            "missing_event_ids": [],
            "added_event_ids": [],
            "field_mismatches": [],
            "global_mismatches": [],
            "fidelity_rate": 1.0
          },
          "repairable": false,
          "suggested_repairs": []
        }
      },
      "sourceFingerprint": "sha256:ed4fc7bff036a4c5dc7d6e655bf51b20e65b05abf61d03aa6819ddaa9850d21a",
      "download": "/assets/demo/voice_010.musicxml"
    },
    {
      "id": "conflict_001",
      "label": "Safe refusal",
      "instruction": "Change measure 1 to 5/8 while preserving every note duration and leaving no rests.",
      "scope": {
        "measures": [
          1
        ],
        "parts": [],
        "staffs": [
          "right_hand"
        ],
        "voices": [],
        "event_ids": [],
        "exclude_measures": [],
        "exclude_event_ids": [],
        "time_range": null,
        "whole_score": false
      },
      "status": "refused",
      "reason": "Changing meter while requiring all durations to remain unchanged is outside the safe local rule subset.",
      "operations": [],
      "diff": null,
      "checks": null,
      "sourceFingerprint": null
    }
  ],
  "results": {
    "tasks": 6,
    "passed": 6,
    "failed": 0,
    "pass_rate": 1.0,
    "constraint_satisfaction": 1.0,
    "complete_preservation_rate": 1.0,
    "musicxml_validity": 1.0,
    "correct_refusals": 1,
    "unsafe_executions": 0,
    "source_preserving_host_export": {
      "expected": 5,
      "succeeded": 5,
      "failed": 0,
      "rate": 1.0
    },
    "median_latency_ms": 65.09760000017195,
    "p95_latency_ms": 1874.3017999997846,
    "generation_statuses": {
      "generated": 5,
      "refused": 1
    },
    "reproducibility": {
      "repeated_task_language_groups": 0,
      "identical_patch_and_output_groups": 0,
      "rate": null
    },
    "cross_language_equivalence": {
      "task_groups": 0,
      "semantic_patch_equivalent_groups": 0,
      "output_equivalent_groups": 0,
      "semantic_patch_rate": null,
      "output_rate": null
    },
    "categories": {
      "conflicting_or_unsupported": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      },
      "dynamics_articulation": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      },
      "key_harmony": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      },
      "meter_measure_structure": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      },
      "pitch_transposition": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      },
      "voice_texture": {
        "tasks": 1,
        "passed": 1,
        "failed": 0,
        "pass_rate": 1.0
      }
    },
    "unique_tasks": 6,
    "scope_stress": {
      "mode": "exact",
      "runs_applied": 0,
      "runs_passed": 0
    }
  },
  "claimBoundary": "This demonstration verifies offline product-path behavior and MusicXML round trips; it is not a remote-LLM accuracy or musical-aesthetics experiment."
}
