[
  {
    "name": "identify_audio",
    "description": "Return stable byte identity and decoded metadata, without inferring quality.",
    "inputSchema": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Path"
        }
      },
      "required": [
        "path"
      ],
      "title": "identify_audioArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "baste",
    "description": "baste: Read the currently open Live session once; no save, mutation or cached result.\n\nInstall/load the Baste device first. Runtime object IDs describe this read only.\nA sequential observation is neither atomic nor valid evidence of later state.",
    "inputSchema": {
      "properties": {
        "timeout_seconds": {
          "default": 35,
          "title": "Timeout Seconds",
          "type": "number"
        },
        "bridge_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bridge Dir"
        }
      },
      "title": "observe_liveArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "baste_build_device",
    "description": "baste_build_device: Build an editable Baste audio-effect device in a new directory; does not load it.\n\nKeep the .amxd and all adjacent scripts together. Live/Max supplies node.script\nand max-api; no npm installation, model or remote service is required.",
    "inputSchema": {
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        }
      },
      "required": [
        "output_dir"
      ],
      "title": "build_baste_deviceArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "pipette",
    "description": "pipette: Promote one explicit keep decision into a new collected, sealed saved project.\n\nRequires the unchanged saved parent, trial, selected render and collected files.\nRebinds only collected dependency hints, proving other saved XML unchanged.\nDoes not Save As in Live, merge unsaved changes, interpret a Baste observation\nas durable, or replace the parent.",
    "inputSchema": {
      "$defs": {
        "PromotionDecision": {
          "properties": {
            "action": {
              "const": "keep",
              "title": "Action",
              "type": "string"
            },
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "reason": {
              "title": "Reason",
              "type": "string"
            }
          },
          "required": [
            "action",
            "actor",
            "actor_kind",
            "reason"
          ],
          "title": "PromotionDecision",
          "type": "object"
        }
      },
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "attachment_relative_path": {
          "title": "Attachment Relative Path",
          "type": "string"
        },
        "expected_trial_manifest_sha256": {
          "title": "Expected Trial Manifest Sha256",
          "type": "string"
        },
        "expected_candidate_sha256": {
          "title": "Expected Candidate Sha256",
          "type": "string"
        },
        "expected_attachment_sha256": {
          "title": "Expected Attachment Sha256",
          "type": "string"
        },
        "decision": {
          "$ref": "#/$defs/PromotionDecision"
        }
      },
      "required": [
        "trial_dir",
        "output_dir",
        "attachment_relative_path",
        "expected_trial_manifest_sha256",
        "expected_candidate_sha256",
        "expected_attachment_sha256",
        "decision"
      ],
      "title": "promote_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "pipette_validate",
    "description": "pipette_validate: Verify a promoted project's seal, copied evidence and normal Thread handle.\n\nRelocation does not require the old trial/parent paths. No native loading or\nlistening verdict is inferred, and no Live session is opened or changed.",
    "inputSchema": {
      "properties": {
        "promotion_dir": {
          "title": "Promotion Dir",
          "type": "string"
        },
        "expected_lineage_sha256": {
          "title": "Expected Lineage Sha256",
          "type": "string"
        }
      },
      "required": [
        "promotion_dir",
        "expected_lineage_sha256"
      ],
      "title": "validate_promotionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "peek",
    "description": "peek: Analyze a bounded source crop without changing media or authorizing edits.\n\nSeconds limits round inward; paired start_frame/frames address exact frames\nand require default seconds arguments. A BPM hint\nselects among measured candidate pulse rates; it is not evidence of tempo.",
    "inputSchema": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Path"
        },
        "start_seconds": {
          "default": 0,
          "title": "Start Seconds",
          "type": "number"
        },
        "duration_seconds": {
          "default": 30,
          "title": "Duration Seconds",
          "type": "number"
        },
        "bpm_hint": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bpm Hint"
        },
        "beats_per_bar": {
          "default": 4,
          "title": "Beats Per Bar",
          "type": "integer"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "frames": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Frames"
        }
      },
      "required": [
        "path"
      ],
      "title": "analyze_regionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "thread",
    "description": "thread: Create a new immutable disk snapshot and return a small cross-process handle.\n\nFull source hashing is opt-in. Every subsequent query verifies ALS bytes and\nall active/unclassified reference versions (device/inode/size/mtime/ctime,\nsymlink target and missing paths). Any version change invalidates the handle;\nit never silently reuses a changed source, even if its mtime is restored.",
    "inputSchema": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Path"
        },
        "cache_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Dir"
        },
        "hash_sources": {
          "default": false,
          "title": "Hash Sources",
          "type": "boolean"
        }
      },
      "required": [
        "path"
      ],
      "title": "inspect_set_summaryArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "thread_region",
    "description": "thread_region: Query a half-open Arrangement time interval, returning explicit truncation.\n\nKnown clip intersections are not requested source crop expansion. Each source\ninterval reports inward complete frames and raw coordinates. Curved tempo\ncannot establish a seconds-based region and returns unknown, never a guess.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "start_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ],
          "title": "Start Seconds"
        },
        "duration_seconds": {
          "default": 32,
          "title": "Duration Seconds",
          "type": "number"
        },
        "max_clips": {
          "default": 16,
          "title": "Max Clips",
          "type": "integer"
        },
        "clip_offset": {
          "default": 0,
          "title": "Clip Offset",
          "type": "integer"
        },
        "max_events_per_lane": {
          "default": 12,
          "title": "Max Events Per Lane",
          "type": "integer"
        },
        "max_bytes": {
          "default": 16000,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "handle",
        "start_seconds"
      ],
      "title": "query_set_regionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "thread_find_clips",
    "description": "thread_find_clips: Find canonical clip instances by case-insensitive name, ID or track name.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "query": {
          "default": "",
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 20,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "handle"
      ],
      "title": "find_clipsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "thread_export",
    "description": "thread_export: Export full raw inventory to a new explicit path, without echoing it.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "output_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Output Path"
        }
      },
      "required": [
        "handle",
        "output_path"
      ],
      "title": "export_threadArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "thread_source_position",
    "description": "thread_source_position: Map one in-clip Arrangement beat to original seconds, or explicit unknown.\n\nIncludes the exact endpoint for inspection/inversion. This is a saved\ncoordinate model, not a sample-exact promise about rendered warp DSP.",
    "inputSchema": {
      "properties": {
        "set_map": {
          "additionalProperties": true,
          "title": "Set Map",
          "type": "object"
        },
        "clip_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "additionalProperties": true,
              "type": "object"
            }
          ],
          "title": "Clip Id"
        },
        "arrangement_beat": {
          "title": "Arrangement Beat",
          "type": "number"
        }
      },
      "required": [
        "set_map",
        "clip_id",
        "arrangement_beat"
      ],
      "title": "source_positionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "thread_arrangement_position",
    "description": "thread_arrangement_position: Inverse supported source mapping; reject out-of-instance source positions.",
    "inputSchema": {
      "properties": {
        "set_map": {
          "additionalProperties": true,
          "title": "Set Map",
          "type": "object"
        },
        "clip_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "additionalProperties": true,
              "type": "object"
            }
          ],
          "title": "Clip Id"
        },
        "source_seconds": {
          "title": "Source Seconds",
          "type": "number"
        }
      },
      "required": [
        "set_map",
        "clip_id",
        "source_seconds"
      ],
      "title": "arrangement_positionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch",
    "description": "stitch: Create immutable, exact-window DOUBLE WAV variants from existing audio.\n\nFrame coordinates are source-file frames, end-exclusive. Per-variant frame\nbounds override the shared bounds and are explicitly recorded. No resampling,\ndownmix, normalization, or fades are performed. Outputs over full scale remain\nfloating point and are flagged, never silently limited.",
    "inputSchema": {
      "$defs": {
        "TrialVariant": {
          "description": "One exact source window; omitted fields use the shared explicit window.",
          "properties": {
            "source_path": {
              "title": "Source Path",
              "type": "string"
            },
            "label": {
              "title": "Label",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "gain_db": {
              "title": "Gain Db",
              "type": "number"
            }
          },
          "required": [
            "source_path",
            "label"
          ],
          "title": "TrialVariant",
          "type": "object"
        }
      },
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/TrialVariant"
          },
          "title": "Variants",
          "type": "array"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "frames": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Frames"
        },
        "title": {
          "default": "Transition trial",
          "title": "Title",
          "type": "string"
        },
        "allow_duration_mismatch": {
          "default": false,
          "title": "Allow Duration Mismatch",
          "type": "boolean"
        }
      },
      "required": [
        "output_dir",
        "variants"
      ],
      "title": "create_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch_prepare_native",
    "description": "stitch_prepare_native: Duplicate a set and translate one warped Audio Arrangement clip only.\n\nHost automation is fixed. Source/warp/clip-fade fields are unchanged; attached\nclip content travels with its clip. The named export range is an instruction,\nnot an automated export or a change to the project's saved loop range.",
    "inputSchema": {
      "properties": {
        "source_als": {
          "title": "Source Als",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "clip_id": {
          "title": "Clip Id",
          "type": "string"
        },
        "shift_beats": {
          "title": "Shift Beats",
          "type": "number"
        },
        "export_start_beat": {
          "title": "Export Start Beat",
          "type": "number"
        },
        "export_length_beats": {
          "title": "Export Length Beats",
          "type": "number"
        },
        "expected_als_sha256": {
          "title": "Expected Als Sha256",
          "type": "string"
        },
        "range_name": {
          "default": "Trial",
          "title": "Range Name",
          "type": "string"
        },
        "signal_expectation": {
          "default": "music",
          "enum": [
            "music",
            "intentional_silence"
          ],
          "title": "Signal Expectation",
          "type": "string"
        },
        "expectation_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expectation Note"
        }
      },
      "required": [
        "source_als",
        "output_dir",
        "clip_id",
        "shift_beats",
        "export_start_beat",
        "export_length_beats",
        "expected_als_sha256"
      ],
      "title": "prepare_native_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch_feedback",
    "description": "stitch_feedback: Append human feedback bound to one output hash and an exact local time span.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "variant_id": {
          "title": "Variant Id",
          "type": "string"
        },
        "output_sha256": {
          "title": "Output Sha256",
          "type": "string"
        },
        "note": {
          "title": "Note",
          "type": "string"
        },
        "start_frame": {
          "title": "Start Frame",
          "type": "integer"
        },
        "end_frame": {
          "title": "End Frame",
          "type": "integer"
        },
        "scope": {
          "default": "timing",
          "enum": [
            "timing",
            "bar_phase",
            "flow",
            "tonal_overlap",
            "level",
            "preference",
            "other"
          ],
          "title": "Scope",
          "type": "string"
        },
        "listener": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Listener"
        }
      },
      "required": [
        "trial_dir",
        "variant_id",
        "output_sha256",
        "note",
        "start_frame",
        "end_frame"
      ],
      "title": "record_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch_feedback_list",
    "description": "stitch_feedback_list: Return sealed listener notes overlapping an exact output-local frame range.\n\nAll notes retain their original interval and wording, including contradictory\nclaims. A range filter selects overlap; it does not rewrite note applicability.\nThis is evidence retrieval, never an algorithmic or new listening verdict.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "variant_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Variant Id"
        },
        "output_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Output Sha256"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "end_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "End Frame"
        },
        "scope": {
          "anyOf": [
            {
              "enum": [
                "timing",
                "bar_phase",
                "flow",
                "tonal_overlap",
                "level",
                "preference",
                "other"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Scope"
        },
        "limit": {
          "default": 20,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "trial_dir"
      ],
      "title": "query_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch_attach_render",
    "description": "stitch_attach_render: Attach actual completed audio; export attribution remains user-supplied.\n\nCompletion, range and settings are declarations, not proof that Live rendered\nthe candidate. Audio/header/hash/readability checks are measured independently.",
    "inputSchema": {
      "$defs": {
        "NativeExportSettings": {
          "description": "Declared export settings, independently checked against the WAV header.",
          "properties": {
            "rendered_track": {
              "const": "Main",
              "title": "Rendered Track",
              "type": "string"
            },
            "sample_rate": {
              "title": "Sample Rate",
              "type": "integer"
            },
            "channels": {
              "const": 2,
              "title": "Channels",
              "type": "integer"
            },
            "normalization": {
              "const": false,
              "title": "Normalization",
              "type": "boolean"
            },
            "mono": {
              "const": false,
              "title": "Mono",
              "type": "boolean"
            },
            "loop_render": {
              "const": false,
              "title": "Loop Render",
              "type": "boolean"
            },
            "dither": {
              "const": "none",
              "title": "Dither",
              "type": "string"
            }
          },
          "required": [
            "rendered_track",
            "sample_rate",
            "channels",
            "normalization",
            "mono",
            "loop_render",
            "dither"
          ],
          "title": "NativeExportSettings",
          "type": "object"
        },
        "NativeObservation": {
          "description": "Operator-reported observation; Pocket cannot independently observe Live.",
          "properties": {
            "observer": {
              "title": "Observer",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "candidate_sha256": {
              "title": "Candidate Sha256",
              "type": "string"
            },
            "no_missing_media": {
              "title": "No Missing Media",
              "type": "boolean"
            },
            "export_completed": {
              "title": "Export Completed",
              "type": "boolean"
            }
          },
          "required": [
            "observer",
            "observed_at",
            "candidate_sha256",
            "no_missing_media",
            "export_completed"
          ],
          "title": "NativeObservation",
          "type": "object"
        }
      },
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "rendered_audio": {
          "title": "Rendered Audio",
          "type": "string"
        },
        "expected_candidate_sha256": {
          "title": "Expected Candidate Sha256",
          "type": "string"
        },
        "rendered_start_beat": {
          "title": "Rendered Start Beat",
          "type": "number"
        },
        "rendered_length_beats": {
          "title": "Rendered Length Beats",
          "type": "number"
        },
        "expected_frames": {
          "title": "Expected Frames",
          "type": "integer"
        },
        "settings": {
          "$ref": "#/$defs/NativeExportSettings"
        },
        "export_completed": {
          "default": false,
          "title": "Export Completed",
          "type": "boolean"
        },
        "native_observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/NativeObservation"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "trial_dir",
        "rendered_audio",
        "expected_candidate_sha256",
        "rendered_start_beat",
        "rendered_length_beats",
        "expected_frames",
        "settings"
      ],
      "title": "attach_completed_renderArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "stitch_validate_native",
    "description": "stitch_validate_native: Reopen and verify collected files after relocation; does not observe Live.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "expected_candidate_sha256": {
          "title": "Expected Candidate Sha256",
          "type": "string"
        }
      },
      "required": [
        "trial_dir",
        "expected_candidate_sha256"
      ],
      "title": "validate_native_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "create_record_bag",
    "description": "Preserve input catalogue/profile fields; derive only verified local identity.",
    "inputSchema": {
      "$defs": {
        "BagTrackInput": {
          "additionalProperties": false,
          "properties": {
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "title": {
              "title": "Title",
              "type": "string"
            },
            "artists": {
              "items": {
                "type": "string"
              },
              "title": "Artists",
              "type": "array"
            },
            "spotify_uri": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Spotify Uri"
            },
            "album": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Album"
            },
            "duration_seconds": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Duration Seconds"
            },
            "explicit": {
              "title": "Explicit",
              "type": "boolean"
            },
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "catalog_source": {
              "enum": [
                "spotify_ui",
                "spotify_api",
                "user_list",
                "local_manifest"
              ],
              "title": "Catalog Source",
              "type": "string"
            },
            "local_path": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Local Path"
            },
            "expected_audio_sha256": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Audio Sha256"
            },
            "version_note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version Note"
            },
            "profile": {
              "anyOf": [
                {
                  "$ref": "#/$defs/MusicalProfile"
                },
                {
                  "type": "null"
                }
              ]
            },
            "regions": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/$defs/SourceRegion"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Regions"
            }
          },
          "required": [
            "track_id",
            "title",
            "artists"
          ],
          "title": "BagTrackInput",
          "type": "object"
        },
        "MusicalProfile": {
          "additionalProperties": false,
          "properties": {
            "tags": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tags"
            },
            "roles": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Roles"
            },
            "energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Energy"
            },
            "bpm": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm"
            },
            "bpm_candidates": {
              "anyOf": [
                {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Candidates"
            },
            "key": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Key"
            },
            "vocal_density": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vocal Density"
            },
            "notes": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Notes"
            },
            "provenance": {
              "enum": [
                "user",
                "agent_hypothesis",
                "measured"
              ],
              "title": "Provenance",
              "type": "string"
            }
          },
          "title": "MusicalProfile",
          "type": "object"
        },
        "SourceRegion": {
          "additionalProperties": false,
          "properties": {
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "role": {
              "title": "Role",
              "type": "string"
            },
            "note": {
              "title": "Note",
              "type": "string"
            }
          },
          "required": [
            "start_frame",
            "frames",
            "role"
          ],
          "title": "SourceRegion",
          "type": "object"
        }
      },
      "properties": {
        "tracks": {
          "items": {
            "$ref": "#/$defs/BagTrackInput"
          },
          "title": "Tracks",
          "type": "array"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "type": "string"
        }
      },
      "required": [
        "tracks",
        "output_dir",
        "title"
      ],
      "title": "create_record_bagArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "query_record_bag",
    "description": "Search a sealed record bag by ID/title/artist/tag; default20 records, explicit paging. Validates local source stamps.",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "query": {
          "default": "",
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 20,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "handle"
      ],
      "title": "query_record_bagArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "revise_record_bag",
    "description": "",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        },
        "BagTrackInput": {
          "additionalProperties": false,
          "properties": {
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "title": {
              "title": "Title",
              "type": "string"
            },
            "artists": {
              "items": {
                "type": "string"
              },
              "title": "Artists",
              "type": "array"
            },
            "spotify_uri": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Spotify Uri"
            },
            "album": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Album"
            },
            "duration_seconds": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Duration Seconds"
            },
            "explicit": {
              "title": "Explicit",
              "type": "boolean"
            },
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "catalog_source": {
              "enum": [
                "spotify_ui",
                "spotify_api",
                "user_list",
                "local_manifest"
              ],
              "title": "Catalog Source",
              "type": "string"
            },
            "local_path": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Local Path"
            },
            "expected_audio_sha256": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Audio Sha256"
            },
            "version_note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version Note"
            },
            "profile": {
              "anyOf": [
                {
                  "$ref": "#/$defs/MusicalProfile"
                },
                {
                  "type": "null"
                }
              ]
            },
            "regions": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/$defs/SourceRegion"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Regions"
            }
          },
          "required": [
            "track_id",
            "title",
            "artists"
          ],
          "title": "BagTrackInput",
          "type": "object"
        },
        "MusicalProfile": {
          "additionalProperties": false,
          "properties": {
            "tags": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tags"
            },
            "roles": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Roles"
            },
            "energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Energy"
            },
            "bpm": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm"
            },
            "bpm_candidates": {
              "anyOf": [
                {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Candidates"
            },
            "key": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Key"
            },
            "vocal_density": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vocal Density"
            },
            "notes": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Notes"
            },
            "provenance": {
              "enum": [
                "user",
                "agent_hypothesis",
                "measured"
              ],
              "title": "Provenance",
              "type": "string"
            }
          },
          "title": "MusicalProfile",
          "type": "object"
        },
        "SourceRegion": {
          "additionalProperties": false,
          "properties": {
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "role": {
              "title": "Role",
              "type": "string"
            },
            "note": {
              "title": "Note",
              "type": "string"
            }
          },
          "required": [
            "start_frame",
            "frames",
            "role"
          ],
          "title": "SourceRegion",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "tracks": {
          "items": {
            "$ref": "#/$defs/BagTrackInput"
          },
          "title": "Tracks",
          "type": "array"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Title"
        }
      },
      "required": [
        "handle",
        "tracks",
        "output_dir"
      ],
      "title": "revise_record_bagArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "weave",
    "description": "weave: Save distinct constrained routes, with explicit estimates and uncertainty.",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        },
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        },
        "SetBrief": {
          "additionalProperties": false,
          "properties": {
            "title": {
              "title": "Title",
              "type": "string"
            },
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "target_minutes": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Minutes"
            },
            "track_count": {
              "title": "Track Count",
              "type": "integer"
            },
            "anchor_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Anchor Track Ids",
              "type": "array"
            },
            "excluded_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Excluded Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            },
            "intent": {
              "$ref": "#/$defs/SelectionIntent"
            },
            "performance_fraction": {
              "title": "Performance Fraction",
              "type": "number"
            },
            "overlap_seconds": {
              "title": "Overlap Seconds",
              "type": "number"
            }
          },
          "title": "SetBrief",
          "type": "object"
        }
      },
      "properties": {
        "bag_handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "brief": {
          "$ref": "#/$defs/SetBrief"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "seed": {
          "default": 0,
          "title": "Seed",
          "type": "integer"
        },
        "route_count": {
          "default": 3,
          "title": "Route Count",
          "type": "integer"
        },
        "parent_plan": {
          "anyOf": [
            {
              "$ref": "#/$defs/PlanHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "bag_handle",
        "brief",
        "output_dir"
      ],
      "title": "plan_set_routesArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "weave_feedback",
    "description": "weave_feedback: Save feedback as a new plan revision, bound to the exact route or pair.",
    "inputSchema": {
      "$defs": {
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        }
      },
      "properties": {
        "plan_handle": {
          "$ref": "#/$defs/PlanHandle"
        },
        "route_id": {
          "title": "Route Id",
          "type": "string"
        },
        "disposition": {
          "enum": [
            "prefer",
            "avoid"
          ],
          "title": "Disposition",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "from_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "From Track Id"
        },
        "to_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "To Track Id"
        },
        "note": {
          "default": "",
          "title": "Note",
          "type": "string"
        }
      },
      "required": [
        "plan_handle",
        "route_id",
        "disposition",
        "output_dir"
      ],
      "title": "record_plan_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "weave_replan",
    "description": "weave_replan: Create new seeded alternatives from a saved plan. Feedback stays bound to the same bag and brief; originals remain unchanged.",
    "inputSchema": {
      "$defs": {
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        },
        "SetBrief": {
          "additionalProperties": false,
          "properties": {
            "title": {
              "title": "Title",
              "type": "string"
            },
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "target_minutes": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Minutes"
            },
            "track_count": {
              "title": "Track Count",
              "type": "integer"
            },
            "anchor_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Anchor Track Ids",
              "type": "array"
            },
            "excluded_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Excluded Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            },
            "intent": {
              "$ref": "#/$defs/SelectionIntent"
            },
            "performance_fraction": {
              "title": "Performance Fraction",
              "type": "number"
            },
            "overlap_seconds": {
              "title": "Overlap Seconds",
              "type": "number"
            }
          },
          "title": "SetBrief",
          "type": "object"
        }
      },
      "properties": {
        "plan_handle": {
          "$ref": "#/$defs/PlanHandle"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "seed": {
          "title": "Seed",
          "type": "integer"
        },
        "brief": {
          "anyOf": [
            {
              "$ref": "#/$defs/SetBrief"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "route_count": {
          "default": 3,
          "title": "Route Count",
          "type": "integer"
        }
      },
      "required": [
        "plan_handle",
        "output_dir",
        "seed"
      ],
      "title": "replan_setArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "whisker_prepare",
    "description": "whisker_prepare: Create an offline Whisker session from a sealed bag. Optional cached embedding index is copied; no inference or deck control.",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        },
        "EmbeddingIndexHandle": {
          "properties": {
            "schema": {
              "const": "pocket.embedding-index-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "EmbeddingIndexHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        }
      },
      "properties": {
        "bag_handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "current_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Current Track Id"
        },
        "intent": {
          "anyOf": [
            {
              "$ref": "#/$defs/SelectionIntent"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "embedding_index": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmbeddingIndexHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "bag_handle",
        "output_dir"
      ],
      "title": "prepare_sessionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "whisker_snapshot",
    "description": "whisker_snapshot: Read the current session revision, SHA and exact decision history. Use revision+SHA for subsequent updates.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "session_snapshotArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "whisker",
    "description": "whisker: Read up to limit next-track proposals (default6, maximum128) from the current sealed session. Excludes current/played/skipped records; no inference.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "limit": {
          "default": 6,
          "title": "Limit",
          "type": "integer"
        },
        "expected_revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Revision"
        },
        "expected_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Sha256"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "session_optionsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "whisker_update",
    "description": "whisker_update: Record an explicit manual choose/skip/intent action. Requires current revision+SHA; stale writes fail. Never controls a deck.",
    "inputSchema": {
      "$defs": {
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        }
      },
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "expected_sha256": {
          "title": "Expected Sha256",
          "type": "string"
        },
        "action": {
          "enum": [
            "choose",
            "skip",
            "intent"
          ],
          "title": "Action",
          "type": "string"
        },
        "track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Track Id"
        },
        "intent": {
          "anyOf": [
            {
              "$ref": "#/$defs/SelectionIntent"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Note"
        }
      },
      "required": [
        "session_dir",
        "expected_revision",
        "expected_sha256",
        "action"
      ],
      "title": "update_sessionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "import_spotify_items",
    "description": "Seal catalog order without resolving editions or inventing musical features.",
    "inputSchema": {
      "$defs": {
        "SpotifyCatalogItem": {
          "description": "A human/API catalog row. Missing version information stays unknown.",
          "properties": {
            "uri": {
              "title": "Uri",
              "type": "string"
            },
            "title": {
              "title": "Title",
              "type": "string"
            },
            "artists": {
              "items": {
                "type": "string"
              },
              "title": "Artists",
              "type": "array"
            },
            "album": {
              "title": "Album",
              "type": "string"
            },
            "duration_seconds": {
              "title": "Duration Seconds",
              "type": "number"
            },
            "explicit": {
              "title": "Explicit",
              "type": "boolean"
            },
            "is_local": {
              "title": "Is Local",
              "type": "boolean"
            },
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "version_note": {
              "title": "Version Note",
              "type": "string"
            },
            "isrc": {
              "title": "Isrc",
              "type": "string"
            },
            "position": {
              "title": "Position",
              "type": "integer"
            }
          },
          "required": [
            "uri"
          ],
          "title": "SpotifyCatalogItem",
          "type": "object"
        }
      },
      "properties": {
        "items": {
          "items": {
            "$ref": "#/$defs/SpotifyCatalogItem"
          },
          "title": "Items",
          "type": "array"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "title": {
          "default": "Spotify selection",
          "title": "Title",
          "type": "string"
        },
        "catalog_source": {
          "default": "spotify_ui",
          "enum": [
            "spotify_api",
            "spotify_ui"
          ],
          "title": "Catalog Source",
          "type": "string"
        }
      },
      "required": [
        "items",
        "output_dir"
      ],
      "title": "import_spotify_itemsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "plan_spotify_playlist",
    "description": "Create an immutable plan for a NEW private, non-collaborative playlist.",
    "inputSchema": {
      "properties": {
        "uris": {
          "items": {
            "type": "string"
          },
          "title": "Uris",
          "type": "array"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "description": {
          "default": "",
          "title": "Description",
          "type": "string"
        }
      },
      "required": [
        "uris",
        "output_dir",
        "name"
      ],
      "title": "plan_spotify_playlistArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "execute_spotify_playlist",
    "description": "Execute/reconcile a fresh plan. Token comes only from the named environment variable.",
    "inputSchema": {
      "properties": {
        "plan_dir": {
          "title": "Plan Dir",
          "type": "string"
        },
        "expected_plan_sha256": {
          "title": "Expected Plan Sha256",
          "type": "string"
        },
        "token_env": {
          "default": "POCKET_SPOTIFY_ACCESS_TOKEN",
          "title": "Token Env",
          "type": "string"
        }
      },
      "required": [
        "plan_dir",
        "expected_plan_sha256"
      ],
      "title": "execute_spotify_playlistArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": true
    }
  },
  {
    "name": "verify_spotify_playlist_ui",
    "description": "Record exact human-observed order; this is not independent API verification.",
    "inputSchema": {
      "properties": {
        "plan_dir": {
          "title": "Plan Dir",
          "type": "string"
        },
        "expected_plan_sha256": {
          "title": "Expected Plan Sha256",
          "type": "string"
        },
        "playlist_url": {
          "title": "Playlist Url",
          "type": "string"
        },
        "observed_uris": {
          "items": {
            "type": "string"
          },
          "title": "Observed Uris",
          "type": "array"
        },
        "observed_private": {
          "title": "Observed Private",
          "type": "boolean"
        },
        "observer": {
          "title": "Observer",
          "type": "string"
        }
      },
      "required": [
        "plan_dir",
        "expected_plan_sha256",
        "playlist_url",
        "observed_uris",
        "observed_private",
        "observer"
      ],
      "title": "verify_spotify_playlist_uiArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "discover_sources",
    "description": "Return bounded YouTube metadata candidates. Never download or choose an edition.",
    "inputSchema": {
      "properties": {
        "query": {
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 5,
          "title": "Limit",
          "type": "integer"
        },
        "executable": {
          "default": "yt-dlp",
          "title": "Executable",
          "type": "string"
        }
      },
      "required": [
        "query"
      ],
      "title": "discover_sourcesArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "inspect_source_formats",
    "description": "Inspect bounded audio formats for an explicit retry; expose no signed media URLs.",
    "inputSchema": {
      "properties": {
        "source_url": {
          "title": "Source Url",
          "type": "string"
        },
        "executable": {
          "default": "yt-dlp",
          "title": "Executable",
          "type": "string"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "source_url"
      ],
      "title": "inspect_source_formatsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": true
    }
  },
  {
    "name": "plan_acquisition",
    "description": "Seal an explicitly selected URL. None rate/channels preserves decoded source format.",
    "inputSchema": {
      "properties": {
        "source_url": {
          "title": "Source Url",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "version_note": {
          "title": "Version Note",
          "type": "string"
        },
        "authorization_note": {
          "title": "Authorization Note",
          "type": "string"
        },
        "expected_source_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Source Id"
        },
        "sample_rate": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Sample Rate"
        },
        "channels": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Channels"
        },
        "format_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Format Id"
        }
      },
      "required": [
        "source_url",
        "output_dir",
        "version_note",
        "authorization_note"
      ],
      "title": "plan_acquisitionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "acquire_source",
    "description": "Download one approved URL, retain bytes, fully decode and publish an honest receipt.",
    "inputSchema": {
      "properties": {
        "plan_dir": {
          "title": "Plan Dir",
          "type": "string"
        },
        "expected_plan_sha256": {
          "title": "Expected Plan Sha256",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "yt_dlp_executable": {
          "default": "yt-dlp",
          "title": "Yt Dlp Executable",
          "type": "string"
        },
        "ffmpeg_executable": {
          "default": "ffmpeg",
          "title": "Ffmpeg Executable",
          "type": "string"
        },
        "ffprobe_executable": {
          "default": "ffprobe",
          "title": "Ffprobe Executable",
          "type": "string"
        }
      },
      "required": [
        "plan_dir",
        "expected_plan_sha256",
        "output_dir"
      ],
      "title": "acquire_sourceArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": true
    }
  },
  {
    "name": "model_preflight",
    "description": "Check the prepared optional model cache against pinned hashes. Does not download, import torch or claim successful inference.",
    "inputSchema": {
      "properties": {
        "model_dir": {
          "title": "Model Dir",
          "type": "string"
        }
      },
      "required": [
        "model_dir"
      ],
      "title": "model_preflightArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "build_embedding_index",
    "description": "Build a new sealed local index from already-computed eligible audio receipts. Preserves provenance; no model inference.",
    "inputSchema": {
      "$defs": {
        "EmbeddingAsset": {
          "additionalProperties": true,
          "properties": {
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "sha256"
          ],
          "title": "EmbeddingAsset",
          "type": "object"
        },
        "EmbeddingReceipt": {
          "additionalProperties": true,
          "description": "Already-computed receipt; submitting one does not run model inference.",
          "properties": {
            "schema": {
              "const": "pocket.music-embedding/v1",
              "title": "Schema",
              "type": "string"
            },
            "model_id": {
              "title": "Model Id",
              "type": "string"
            },
            "model_revision": {
              "title": "Model Revision",
              "type": "string"
            },
            "checkpoint_sha256": {
              "title": "Checkpoint Sha256",
              "type": "string"
            },
            "dimension": {
              "title": "Dimension",
              "type": "integer"
            },
            "vector": {
              "items": {
                "type": "number"
              },
              "title": "Vector",
              "type": "array"
            },
            "modality": {
              "enum": [
                "audio",
                "text"
              ],
              "title": "Modality",
              "type": "string"
            },
            "asset": {
              "$ref": "#/$defs/EmbeddingAsset"
            },
            "source_region": {
              "$ref": "#/$defs/EmbeddingSourceRegion"
            },
            "text_origin": {
              "const": "user_authored",
              "title": "Text Origin",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "model_id",
            "model_revision",
            "checkpoint_sha256",
            "dimension",
            "vector",
            "modality"
          ],
          "title": "EmbeddingReceipt",
          "type": "object"
        },
        "EmbeddingSourceRegion": {
          "additionalProperties": true,
          "properties": {
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            },
            "source_start_frame": {
              "title": "Source Start Frame",
              "type": "integer"
            },
            "source_frames": {
              "title": "Source Frames",
              "type": "integer"
            }
          },
          "required": [
            "source_origin",
            "source_start_frame",
            "source_frames"
          ],
          "title": "EmbeddingSourceRegion",
          "type": "object"
        }
      },
      "properties": {
        "receipts": {
          "items": {
            "$ref": "#/$defs/EmbeddingReceipt"
          },
          "title": "Receipts",
          "type": "array"
        },
        "output_path": {
          "title": "Output Path",
          "type": "string"
        }
      },
      "required": [
        "receipts",
        "output_path"
      ],
      "title": "build_embedding_indexArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "rank_embedding_query",
    "description": "Retrieve bounded semantic matches from a prepared index and user-text receipt; no inference or musical approval.",
    "inputSchema": {
      "$defs": {
        "EmbeddingAsset": {
          "additionalProperties": true,
          "properties": {
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "sha256"
          ],
          "title": "EmbeddingAsset",
          "type": "object"
        },
        "EmbeddingIndexHandle": {
          "properties": {
            "schema": {
              "const": "pocket.embedding-index-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "EmbeddingIndexHandle",
          "type": "object"
        },
        "EmbeddingReceipt": {
          "additionalProperties": true,
          "description": "Already-computed receipt; submitting one does not run model inference.",
          "properties": {
            "schema": {
              "const": "pocket.music-embedding/v1",
              "title": "Schema",
              "type": "string"
            },
            "model_id": {
              "title": "Model Id",
              "type": "string"
            },
            "model_revision": {
              "title": "Model Revision",
              "type": "string"
            },
            "checkpoint_sha256": {
              "title": "Checkpoint Sha256",
              "type": "string"
            },
            "dimension": {
              "title": "Dimension",
              "type": "integer"
            },
            "vector": {
              "items": {
                "type": "number"
              },
              "title": "Vector",
              "type": "array"
            },
            "modality": {
              "enum": [
                "audio",
                "text"
              ],
              "title": "Modality",
              "type": "string"
            },
            "asset": {
              "$ref": "#/$defs/EmbeddingAsset"
            },
            "source_region": {
              "$ref": "#/$defs/EmbeddingSourceRegion"
            },
            "text_origin": {
              "const": "user_authored",
              "title": "Text Origin",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "model_id",
            "model_revision",
            "checkpoint_sha256",
            "dimension",
            "vector",
            "modality"
          ],
          "title": "EmbeddingReceipt",
          "type": "object"
        },
        "EmbeddingSourceRegion": {
          "additionalProperties": true,
          "properties": {
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            },
            "source_start_frame": {
              "title": "Source Start Frame",
              "type": "integer"
            },
            "source_frames": {
              "title": "Source Frames",
              "type": "integer"
            }
          },
          "required": [
            "source_origin",
            "source_start_frame",
            "source_frames"
          ],
          "title": "EmbeddingSourceRegion",
          "type": "object"
        }
      },
      "properties": {
        "query_receipt": {
          "$ref": "#/$defs/EmbeddingReceipt"
        },
        "index_handle": {
          "$ref": "#/$defs/EmbeddingIndexHandle"
        },
        "limit": {
          "default": 10,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "query_receipt",
        "index_handle"
      ],
      "title": "rank_embedding_queryArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "analyze_region",
    "description": "Compatibility alias for peek. Analyze a bounded source crop without changing media or authorizing edits.\n\nSeconds limits round inward; paired start_frame/frames address exact frames\nand require default seconds arguments. A BPM hint\nselects among measured candidate pulse rates; it is not evidence of tempo.",
    "inputSchema": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Path"
        },
        "start_seconds": {
          "default": 0,
          "title": "Start Seconds",
          "type": "number"
        },
        "duration_seconds": {
          "default": 30,
          "title": "Duration Seconds",
          "type": "number"
        },
        "bpm_hint": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bpm Hint"
        },
        "beats_per_bar": {
          "default": 4,
          "title": "Beats Per Bar",
          "type": "integer"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "frames": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Frames"
        }
      },
      "required": [
        "path"
      ],
      "title": "analyze_regionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "inspect_set",
    "description": "Compatibility alias for thread. Create a new immutable disk snapshot and return a small cross-process handle.\n\nFull source hashing is opt-in. Every subsequent query verifies ALS bytes and\nall active/unclassified reference versions (device/inode/size/mtime/ctime,\nsymlink target and missing paths). Any version change invalidates the handle;\nit never silently reuses a changed source, even if its mtime is restored.",
    "inputSchema": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Path"
        },
        "cache_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Dir"
        },
        "hash_sources": {
          "default": false,
          "title": "Hash Sources",
          "type": "boolean"
        }
      },
      "required": [
        "path"
      ],
      "title": "inspect_set_summaryArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "query_set_region",
    "description": "Compatibility alias for thread_region. Query a half-open Arrangement time interval, returning explicit truncation.\n\nKnown clip intersections are not requested source crop expansion. Each source\ninterval reports inward complete frames and raw coordinates. Curved tempo\ncannot establish a seconds-based region and returns unknown, never a guess.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "start_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ],
          "title": "Start Seconds"
        },
        "duration_seconds": {
          "default": 32,
          "title": "Duration Seconds",
          "type": "number"
        },
        "max_clips": {
          "default": 16,
          "title": "Max Clips",
          "type": "integer"
        },
        "clip_offset": {
          "default": 0,
          "title": "Clip Offset",
          "type": "integer"
        },
        "max_events_per_lane": {
          "default": 12,
          "title": "Max Events Per Lane",
          "type": "integer"
        },
        "max_bytes": {
          "default": 16000,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "handle",
        "start_seconds"
      ],
      "title": "query_set_regionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "find_clips",
    "description": "Compatibility alias for thread_find_clips. Find canonical clip instances by case-insensitive name, ID or track name.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "query": {
          "default": "",
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 20,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "handle"
      ],
      "title": "find_clipsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "export_set_map",
    "description": "Compatibility alias for thread_export. Export full raw inventory to a new explicit path, without echoing it.",
    "inputSchema": {
      "$defs": {
        "SetHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "cache_path": {
              "title": "Cache Path",
              "type": "string"
            },
            "cache_sha256": {
              "title": "Cache Sha256",
              "type": "string"
            },
            "set_sha256": {
              "title": "Set Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "cache_path",
            "cache_sha256",
            "set_sha256"
          ],
          "title": "SetHandle",
          "type": "object"
        }
      },
      "properties": {
        "handle": {
          "$ref": "#/$defs/SetHandle"
        },
        "output_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "format": "path",
              "type": "string"
            }
          ],
          "title": "Output Path"
        }
      },
      "required": [
        "handle",
        "output_path"
      ],
      "title": "export_threadArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "source_position",
    "description": "Compatibility alias for thread_source_position. Map one in-clip Arrangement beat to original seconds, or explicit unknown.\n\nIncludes the exact endpoint for inspection/inversion. This is a saved\ncoordinate model, not a sample-exact promise about rendered warp DSP.",
    "inputSchema": {
      "properties": {
        "set_map": {
          "additionalProperties": true,
          "title": "Set Map",
          "type": "object"
        },
        "clip_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "additionalProperties": true,
              "type": "object"
            }
          ],
          "title": "Clip Id"
        },
        "arrangement_beat": {
          "title": "Arrangement Beat",
          "type": "number"
        }
      },
      "required": [
        "set_map",
        "clip_id",
        "arrangement_beat"
      ],
      "title": "source_positionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "arrangement_position",
    "description": "Compatibility alias for thread_arrangement_position. Inverse supported source mapping; reject out-of-instance source positions.",
    "inputSchema": {
      "properties": {
        "set_map": {
          "additionalProperties": true,
          "title": "Set Map",
          "type": "object"
        },
        "clip_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "additionalProperties": true,
              "type": "object"
            }
          ],
          "title": "Clip Id"
        },
        "source_seconds": {
          "title": "Source Seconds",
          "type": "number"
        }
      },
      "required": [
        "set_map",
        "clip_id",
        "source_seconds"
      ],
      "title": "arrangement_positionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "create_trial",
    "description": "Compatibility alias for stitch. Create immutable, exact-window DOUBLE WAV variants from existing audio.\n\nFrame coordinates are source-file frames, end-exclusive. Per-variant frame\nbounds override the shared bounds and are explicitly recorded. No resampling,\ndownmix, normalization, or fades are performed. Outputs over full scale remain\nfloating point and are flagged, never silently limited.",
    "inputSchema": {
      "$defs": {
        "TrialVariant": {
          "description": "One exact source window; omitted fields use the shared explicit window.",
          "properties": {
            "source_path": {
              "title": "Source Path",
              "type": "string"
            },
            "label": {
              "title": "Label",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "gain_db": {
              "title": "Gain Db",
              "type": "number"
            }
          },
          "required": [
            "source_path",
            "label"
          ],
          "title": "TrialVariant",
          "type": "object"
        }
      },
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/TrialVariant"
          },
          "title": "Variants",
          "type": "array"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "frames": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Frames"
        },
        "title": {
          "default": "Transition trial",
          "title": "Title",
          "type": "string"
        },
        "allow_duration_mismatch": {
          "default": false,
          "title": "Allow Duration Mismatch",
          "type": "boolean"
        }
      },
      "required": [
        "output_dir",
        "variants"
      ],
      "title": "create_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "prepare_native_trial",
    "description": "Compatibility alias for stitch_prepare_native. Duplicate a set and translate one warped Audio Arrangement clip only.\n\nHost automation is fixed. Source/warp/clip-fade fields are unchanged; attached\nclip content travels with its clip. The named export range is an instruction,\nnot an automated export or a change to the project's saved loop range.",
    "inputSchema": {
      "properties": {
        "source_als": {
          "title": "Source Als",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "clip_id": {
          "title": "Clip Id",
          "type": "string"
        },
        "shift_beats": {
          "title": "Shift Beats",
          "type": "number"
        },
        "export_start_beat": {
          "title": "Export Start Beat",
          "type": "number"
        },
        "export_length_beats": {
          "title": "Export Length Beats",
          "type": "number"
        },
        "expected_als_sha256": {
          "title": "Expected Als Sha256",
          "type": "string"
        },
        "range_name": {
          "default": "Trial",
          "title": "Range Name",
          "type": "string"
        },
        "signal_expectation": {
          "default": "music",
          "enum": [
            "music",
            "intentional_silence"
          ],
          "title": "Signal Expectation",
          "type": "string"
        },
        "expectation_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expectation Note"
        }
      },
      "required": [
        "source_als",
        "output_dir",
        "clip_id",
        "shift_beats",
        "export_start_beat",
        "export_length_beats",
        "expected_als_sha256"
      ],
      "title": "prepare_native_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "record_feedback",
    "description": "Compatibility alias for stitch_feedback. Append human feedback bound to one output hash and an exact local time span.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "variant_id": {
          "title": "Variant Id",
          "type": "string"
        },
        "output_sha256": {
          "title": "Output Sha256",
          "type": "string"
        },
        "note": {
          "title": "Note",
          "type": "string"
        },
        "start_frame": {
          "title": "Start Frame",
          "type": "integer"
        },
        "end_frame": {
          "title": "End Frame",
          "type": "integer"
        },
        "scope": {
          "default": "timing",
          "enum": [
            "timing",
            "bar_phase",
            "flow",
            "tonal_overlap",
            "level",
            "preference",
            "other"
          ],
          "title": "Scope",
          "type": "string"
        },
        "listener": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Listener"
        }
      },
      "required": [
        "trial_dir",
        "variant_id",
        "output_sha256",
        "note",
        "start_frame",
        "end_frame"
      ],
      "title": "record_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "query_feedback",
    "description": "Compatibility alias for stitch_feedback_list. Return sealed listener notes overlapping an exact output-local frame range.\n\nAll notes retain their original interval and wording, including contradictory\nclaims. A range filter selects overlap; it does not rewrite note applicability.\nThis is evidence retrieval, never an algorithmic or new listening verdict.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "variant_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Variant Id"
        },
        "output_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Output Sha256"
        },
        "start_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Start Frame"
        },
        "end_frame": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "End Frame"
        },
        "scope": {
          "anyOf": [
            {
              "enum": [
                "timing",
                "bar_phase",
                "flow",
                "tonal_overlap",
                "level",
                "preference",
                "other"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Scope"
        },
        "limit": {
          "default": 20,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "trial_dir"
      ],
      "title": "query_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "attach_completed_render",
    "description": "Compatibility alias for stitch_attach_render. Attach actual completed audio; export attribution remains user-supplied.\n\nCompletion, range and settings are declarations, not proof that Live rendered\nthe candidate. Audio/header/hash/readability checks are measured independently.",
    "inputSchema": {
      "$defs": {
        "NativeExportSettings": {
          "description": "Declared export settings, independently checked against the WAV header.",
          "properties": {
            "rendered_track": {
              "const": "Main",
              "title": "Rendered Track",
              "type": "string"
            },
            "sample_rate": {
              "title": "Sample Rate",
              "type": "integer"
            },
            "channels": {
              "const": 2,
              "title": "Channels",
              "type": "integer"
            },
            "normalization": {
              "const": false,
              "title": "Normalization",
              "type": "boolean"
            },
            "mono": {
              "const": false,
              "title": "Mono",
              "type": "boolean"
            },
            "loop_render": {
              "const": false,
              "title": "Loop Render",
              "type": "boolean"
            },
            "dither": {
              "const": "none",
              "title": "Dither",
              "type": "string"
            }
          },
          "required": [
            "rendered_track",
            "sample_rate",
            "channels",
            "normalization",
            "mono",
            "loop_render",
            "dither"
          ],
          "title": "NativeExportSettings",
          "type": "object"
        },
        "NativeObservation": {
          "description": "Operator-reported observation; Pocket cannot independently observe Live.",
          "properties": {
            "observer": {
              "title": "Observer",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "candidate_sha256": {
              "title": "Candidate Sha256",
              "type": "string"
            },
            "no_missing_media": {
              "title": "No Missing Media",
              "type": "boolean"
            },
            "export_completed": {
              "title": "Export Completed",
              "type": "boolean"
            }
          },
          "required": [
            "observer",
            "observed_at",
            "candidate_sha256",
            "no_missing_media",
            "export_completed"
          ],
          "title": "NativeObservation",
          "type": "object"
        }
      },
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "rendered_audio": {
          "title": "Rendered Audio",
          "type": "string"
        },
        "expected_candidate_sha256": {
          "title": "Expected Candidate Sha256",
          "type": "string"
        },
        "rendered_start_beat": {
          "title": "Rendered Start Beat",
          "type": "number"
        },
        "rendered_length_beats": {
          "title": "Rendered Length Beats",
          "type": "number"
        },
        "expected_frames": {
          "title": "Expected Frames",
          "type": "integer"
        },
        "settings": {
          "$ref": "#/$defs/NativeExportSettings"
        },
        "export_completed": {
          "default": false,
          "title": "Export Completed",
          "type": "boolean"
        },
        "native_observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/NativeObservation"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "trial_dir",
        "rendered_audio",
        "expected_candidate_sha256",
        "rendered_start_beat",
        "rendered_length_beats",
        "expected_frames",
        "settings"
      ],
      "title": "attach_completed_renderArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "validate_native_trial",
    "description": "Compatibility alias for stitch_validate_native. Reopen and verify collected files after relocation; does not observe Live.",
    "inputSchema": {
      "properties": {
        "trial_dir": {
          "title": "Trial Dir",
          "type": "string"
        },
        "expected_candidate_sha256": {
          "title": "Expected Candidate Sha256",
          "type": "string"
        }
      },
      "required": [
        "trial_dir",
        "expected_candidate_sha256"
      ],
      "title": "validate_native_trialArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "plan_set_routes",
    "description": "Compatibility alias for weave. Save distinct constrained routes, with explicit estimates and uncertainty.",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        },
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        },
        "SetBrief": {
          "additionalProperties": false,
          "properties": {
            "title": {
              "title": "Title",
              "type": "string"
            },
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "target_minutes": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Minutes"
            },
            "track_count": {
              "title": "Track Count",
              "type": "integer"
            },
            "anchor_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Anchor Track Ids",
              "type": "array"
            },
            "excluded_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Excluded Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            },
            "intent": {
              "$ref": "#/$defs/SelectionIntent"
            },
            "performance_fraction": {
              "title": "Performance Fraction",
              "type": "number"
            },
            "overlap_seconds": {
              "title": "Overlap Seconds",
              "type": "number"
            }
          },
          "title": "SetBrief",
          "type": "object"
        }
      },
      "properties": {
        "bag_handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "brief": {
          "$ref": "#/$defs/SetBrief"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "seed": {
          "default": 0,
          "title": "Seed",
          "type": "integer"
        },
        "route_count": {
          "default": 3,
          "title": "Route Count",
          "type": "integer"
        },
        "parent_plan": {
          "anyOf": [
            {
              "$ref": "#/$defs/PlanHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "bag_handle",
        "brief",
        "output_dir"
      ],
      "title": "plan_set_routesArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "record_plan_feedback",
    "description": "Compatibility alias for weave_feedback. Save feedback as a new plan revision, bound to the exact route or pair.",
    "inputSchema": {
      "$defs": {
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        }
      },
      "properties": {
        "plan_handle": {
          "$ref": "#/$defs/PlanHandle"
        },
        "route_id": {
          "title": "Route Id",
          "type": "string"
        },
        "disposition": {
          "enum": [
            "prefer",
            "avoid"
          ],
          "title": "Disposition",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "from_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "From Track Id"
        },
        "to_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "To Track Id"
        },
        "note": {
          "default": "",
          "title": "Note",
          "type": "string"
        }
      },
      "required": [
        "plan_handle",
        "route_id",
        "disposition",
        "output_dir"
      ],
      "title": "record_plan_feedbackArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "replan_set",
    "description": "Compatibility alias for weave_replan. Create new seeded alternatives from a saved plan. Feedback stays bound to the same bag and brief; originals remain unchanged.",
    "inputSchema": {
      "$defs": {
        "PlanHandle": {
          "properties": {
            "schema": {
              "const": "pocket.set-plan-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "PlanHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        },
        "SetBrief": {
          "additionalProperties": false,
          "properties": {
            "title": {
              "title": "Title",
              "type": "string"
            },
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "target_minutes": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Minutes"
            },
            "track_count": {
              "title": "Track Count",
              "type": "integer"
            },
            "anchor_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Anchor Track Ids",
              "type": "array"
            },
            "excluded_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Excluded Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            },
            "intent": {
              "$ref": "#/$defs/SelectionIntent"
            },
            "performance_fraction": {
              "title": "Performance Fraction",
              "type": "number"
            },
            "overlap_seconds": {
              "title": "Overlap Seconds",
              "type": "number"
            }
          },
          "title": "SetBrief",
          "type": "object"
        }
      },
      "properties": {
        "plan_handle": {
          "$ref": "#/$defs/PlanHandle"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "seed": {
          "title": "Seed",
          "type": "integer"
        },
        "brief": {
          "anyOf": [
            {
              "$ref": "#/$defs/SetBrief"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "route_count": {
          "default": 3,
          "title": "Route Count",
          "type": "integer"
        }
      },
      "required": [
        "plan_handle",
        "output_dir",
        "seed"
      ],
      "title": "replan_setArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "prepare_session",
    "description": "Compatibility alias for whisker_prepare. Create an offline Whisker session from a sealed bag. Optional cached embedding index is copied; no inference or deck control.",
    "inputSchema": {
      "$defs": {
        "BagHandle": {
          "properties": {
            "schema": {
              "const": "pocket.record-bag-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "BagHandle",
          "type": "object"
        },
        "EmbeddingIndexHandle": {
          "properties": {
            "schema": {
              "const": "pocket.embedding-index-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "path",
            "sha256"
          ],
          "title": "EmbeddingIndexHandle",
          "type": "object"
        },
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        }
      },
      "properties": {
        "bag_handle": {
          "$ref": "#/$defs/BagHandle"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "current_track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Current Track Id"
        },
        "intent": {
          "anyOf": [
            {
              "$ref": "#/$defs/SelectionIntent"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "embedding_index": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmbeddingIndexHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "bag_handle",
        "output_dir"
      ],
      "title": "prepare_sessionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "session_snapshot",
    "description": "Compatibility alias for whisker_snapshot. Read the current session revision, SHA and exact decision history. Use revision+SHA for subsequent updates.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "session_snapshotArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "session_options",
    "description": "Compatibility alias for whisker. Read up to limit next-track proposals (default6, maximum128) from the current sealed session. Excludes current/played/skipped records; no inference.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "limit": {
          "default": 6,
          "title": "Limit",
          "type": "integer"
        },
        "expected_revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Revision"
        },
        "expected_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Sha256"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "session_optionsArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "update_session",
    "description": "Compatibility alias for whisker_update. Record an explicit manual choose/skip/intent action. Requires current revision+SHA; stale writes fail. Never controls a deck.",
    "inputSchema": {
      "$defs": {
        "SelectionIntent": {
          "additionalProperties": false,
          "properties": {
            "setting": {
              "enum": [
                "warm_up",
                "peak_time",
                "after_hours",
                "open"
              ],
              "title": "Setting",
              "type": "string"
            },
            "direction": {
              "enum": [
                "hold",
                "lift",
                "left_turn",
                "explore"
              ],
              "title": "Direction",
              "type": "string"
            },
            "target_energy": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Energy"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "creativity": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Creativity"
            },
            "max_stretch_percent": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Stretch Percent"
            },
            "require_local_audio": {
              "title": "Require Local Audio",
              "type": "boolean"
            },
            "avoid_track_ids": {
              "items": {
                "type": "string"
              },
              "title": "Avoid Track Ids",
              "type": "array"
            },
            "avoid_pairs": {
              "items": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": "Avoid Pairs",
              "type": "array"
            }
          },
          "title": "SelectionIntent",
          "type": "object"
        }
      },
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "expected_sha256": {
          "title": "Expected Sha256",
          "type": "string"
        },
        "action": {
          "enum": [
            "choose",
            "skip",
            "intent"
          ],
          "title": "Action",
          "type": "string"
        },
        "track_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Track Id"
        },
        "intent": {
          "anyOf": [
            {
              "$ref": "#/$defs/SelectionIntent"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Note"
        }
      },
      "required": [
        "session_dir",
        "expected_revision",
        "expected_sha256",
        "action"
      ],
      "title": "update_sessionArguments",
      "type": "object"
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "capabilities_list",
    "description": "Discover callable tools and explicit closed gates without starting a host.\n\n    Host profiles are supplied context, never authority to enable an unverified\n    native route. Availability of file tools is independent of Live or Serum.\n    ",
    "inputSchema": {
      "properties": {
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Domain"
        },
        "operation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Operation"
        },
        "host_profile": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Host Profile"
        },
        "limit": {
          "default": 12,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        }
      },
      "title": "capabilities_listArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_build_bridge",
    "description": "Build the optional local Serato/FLX4 bridge without starting it.",
    "inputSchema": {
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        }
      },
      "required": [
        "output_dir"
      ],
      "title": "shuttle_build_bridgeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_prepare",
    "description": "Snapshot one local crate and prepare an unordered Whisker session.",
    "inputSchema": {
      "properties": {
        "crate_name": {
          "title": "Crate Name",
          "type": "string"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "runtime_dir": {
          "title": "Runtime Dir",
          "type": "string"
        },
        "library_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Library Path"
        },
        "intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Intent"
        }
      },
      "required": [
        "crate_name",
        "output_dir",
        "runtime_dir"
      ],
      "title": "shuttle_prepareArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_observe",
    "description": "Read fresh supported Serato state and actual master signal; no listening claim.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "shuttle_observeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_options",
    "description": "Propose next records using the crate, history and observed current deck.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "limit": {
          "default": 6,
          "title": "Limit",
          "type": "integer"
        },
        "intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Intent"
        }
      },
      "required": [
        "session_dir"
      ],
      "title": "shuttle_optionsArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_act",
    "description": "One revision-checked bounded move with native observation, replay and FLX4 takeover.",
    "inputSchema": {
      "$defs": {
        "ShuttleAction": {
          "properties": {
            "kind": {
              "enum": [
                "claim",
                "release",
                "load",
                "play",
                "pause",
                "gain",
                "loop",
                "sync"
              ],
              "title": "Kind",
              "type": "string"
            },
            "deck": {
              "enum": [
                "left",
                "right"
              ],
              "title": "Deck",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "duration_seconds": {
              "title": "Duration Seconds",
              "type": "number"
            },
            "beats": {
              "anyOf": [
                {
                  "enum": [
                    8,
                    16
                  ],
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Beats"
            },
            "allow_silence": {
              "title": "Allow Silence",
              "type": "boolean"
            }
          },
          "required": [
            "kind"
          ],
          "title": "ShuttleAction",
          "type": "object"
        }
      },
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "action": {
          "$ref": "#/$defs/ShuttleAction"
        }
      },
      "required": [
        "session_dir",
        "expected_revision",
        "request_id",
        "action"
      ],
      "title": "shuttle_actArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "shuttle_request_status",
    "description": "Inspect a retained native request without redispatch.",
    "inputSchema": {
      "properties": {
        "session_dir": {
          "title": "Session Dir",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "session_dir",
        "request_id"
      ],
      "title": "shuttle_request_statusArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "request_status",
    "description": "Inspect request journals and retained artifact integrity without redispatching.",
    "inputSchema": {
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id"
      ],
      "title": "request_statusArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "material_import",
    "description": "Retain source bytes and project supported MIDI material.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "MaterialSource": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "smf",
                "live_clip",
                "material"
              ],
              "title": "Kind",
              "type": "string"
            },
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "thread_handle": {
              "additionalProperties": true,
              "title": "Thread Handle",
              "type": "object"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "material": {
              "$ref": "#/$defs/MaterialRecord"
            }
          },
          "required": [
            "kind"
          ],
          "title": "MaterialSource",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "source": {
          "$ref": "#/$defs/MaterialSource"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "source",
        "store_root",
        "request_id"
      ],
      "title": "material_importArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "material_query",
    "description": "Bounded summaries, exact selections and semantic differences.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "MaterialSelection": {
          "additionalProperties": false,
          "properties": {
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "voice_ids": {
              "items": {
                "type": "string"
              },
              "title": "Voice Ids",
              "type": "array"
            },
            "clip_ids": {
              "items": {
                "type": "string"
              },
              "title": "Clip Ids",
              "type": "array"
            },
            "span_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Span Qn",
              "type": "array"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "selection_sha256": {
              "title": "Selection Sha256",
              "type": "string"
            }
          },
          "title": "MaterialSelection",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "query": {
          "default": "summary",
          "title": "Query",
          "type": "string"
        },
        "selection": {
          "anyOf": [
            {
              "$ref": "#/$defs/MaterialSelection"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "limit": {
          "default": 64,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16000,
          "title": "Max Bytes",
          "type": "integer"
        },
        "comparison": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Comparison"
        }
      },
      "required": [
        "material",
        "store_root"
      ],
      "title": "material_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "material_sequence",
    "description": "Construct declared whole-clip note occurrences with retained parents and explicit clock/placement.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "SequenceDefinition": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "materials": {
              "items": {
                "$ref": "#/$defs/SequenceMaterial"
              },
              "title": "Materials",
              "type": "array"
            },
            "clock": {
              "$ref": "#/$defs/TimeContext"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Length Qn"
            },
            "occurrences": {
              "items": {
                "$ref": "#/$defs/SequenceOccurrence"
              },
              "title": "Occurrences",
              "type": "array"
            },
            "controller_policy": {
              "const": "reject_present",
              "title": "Controller Policy",
              "type": "string"
            },
            "expression_policy": {
              "const": "reject_present",
              "title": "Expression Policy",
              "type": "string"
            },
            "overlap_policy": {
              "const": "reject_same_channel_pitch",
              "title": "Overlap Policy",
              "type": "string"
            }
          },
          "required": [
            "label",
            "materials",
            "clock",
            "origin",
            "length_qn",
            "occurrences",
            "controller_policy",
            "expression_policy",
            "overlap_policy"
          ],
          "title": "SequenceDefinition",
          "type": "object"
        },
        "SequenceMaterial": {
          "additionalProperties": false,
          "properties": {
            "key": {
              "title": "Key",
              "type": "string"
            },
            "material": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "$ref": "#/$defs/MaterialRecord"
                }
              ],
              "title": "Material"
            }
          },
          "required": [
            "key",
            "material"
          ],
          "title": "SequenceMaterial",
          "type": "object"
        },
        "SequenceOccurrence": {
          "additionalProperties": false,
          "properties": {
            "occurrence_id": {
              "title": "Occurrence Id",
              "type": "string"
            },
            "material_key": {
              "title": "Material Key",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "at_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "At Qn"
            }
          },
          "required": [
            "occurrence_id",
            "material_key",
            "material_revision",
            "clip_id",
            "at_qn"
          ],
          "title": "SequenceOccurrence",
          "type": "object"
        },
        "TimeContext": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.time-context/v1",
              "title": "Schema",
              "type": "string"
            },
            "context_id": {
              "title": "Context Id",
              "type": "string"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "schema",
            "context_id",
            "attribution"
          ],
          "title": "TimeContext",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "definition": {
          "$ref": "#/$defs/SequenceDefinition"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "definition"
      ],
      "title": "material_sequenceArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "material_structure",
    "description": "Attributed phrase and motif relationships bound to exact material revisions.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialBinding": {
          "additionalProperties": false,
          "properties": {
            "key": {
              "title": "Key",
              "type": "string"
            },
            "material": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "$ref": "#/$defs/MaterialRecord"
                }
              ],
              "title": "Material"
            }
          },
          "required": [
            "key",
            "material"
          ],
          "title": "MaterialBinding",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PhraseNode": {
          "additionalProperties": false,
          "properties": {
            "node_id": {
              "title": "Node Id",
              "type": "string"
            },
            "kind": {
              "enum": [
                "phrase",
                "motif_reference"
              ],
              "title": "Kind",
              "type": "string"
            },
            "label": {
              "title": "Label",
              "type": "string"
            },
            "material_key": {
              "title": "Material Key",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "space": {
              "const": "clip_qn",
              "title": "Space",
              "type": "string"
            },
            "span_qn": {
              "$ref": "#/$defs/PhraseSpan"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "attribution": {
              "$ref": "#/$defs/StructureAttribution"
            }
          },
          "required": [
            "node_id",
            "kind",
            "label",
            "material_key",
            "material_revision",
            "clip_id",
            "space",
            "span_qn",
            "note_ids",
            "attribution"
          ],
          "title": "PhraseNode",
          "type": "object"
        },
        "PhraseRelation": {
          "additionalProperties": false,
          "properties": {
            "relation_id": {
              "title": "Relation Id",
              "type": "string"
            },
            "from_node": {
              "title": "From Node",
              "type": "string"
            },
            "to_node": {
              "title": "To Node",
              "type": "string"
            },
            "kind": {
              "enum": [
                "sequence",
                "repeat",
                "variation",
                "withhold",
                "return",
                "call_response",
                "motif_reference",
                "derivation"
              ],
              "title": "Kind",
              "type": "string"
            },
            "identity_claims": {
              "items": {
                "enum": [
                  "exact_events",
                  "rhythm",
                  "pitch_intervals",
                  "accents",
                  "perceptual"
                ],
                "type": "string"
              },
              "title": "Identity Claims",
              "type": "array"
            },
            "attribution": {
              "$ref": "#/$defs/StructureAttribution"
            }
          },
          "required": [
            "relation_id",
            "from_node",
            "to_node",
            "kind",
            "identity_claims",
            "attribution"
          ],
          "title": "PhraseRelation",
          "type": "object"
        },
        "PhraseSpan": {
          "additionalProperties": false,
          "properties": {
            "start": {
              "$ref": "#/$defs/Rational"
            },
            "end": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "start",
            "end"
          ],
          "title": "PhraseSpan",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "StructureAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            },
            "evidence": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Evidence",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty",
            "evidence"
          ],
          "title": "StructureAttribution",
          "type": "object"
        },
        "StructureDefinition": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "materials": {
              "items": {
                "$ref": "#/$defs/MaterialBinding"
              },
              "title": "Materials",
              "type": "array"
            },
            "nodes": {
              "items": {
                "$ref": "#/$defs/PhraseNode"
              },
              "title": "Nodes",
              "type": "array"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/PhraseRelation"
              },
              "title": "Relations",
              "type": "array"
            },
            "attribution": {
              "$ref": "#/$defs/StructureAttribution"
            },
            "cycle_policy": {
              "const": "reject",
              "title": "Cycle Policy",
              "type": "string"
            },
            "parent_structure": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "label",
            "materials",
            "nodes",
            "relations",
            "attribution",
            "cycle_policy"
          ],
          "title": "StructureDefinition",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "operation": {
          "enum": [
            "create",
            "query"
          ],
          "title": "Operation",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Request Id"
        },
        "definition": {
          "anyOf": [
            {
              "$ref": "#/$defs/StructureDefinition"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "structure": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "section": {
          "default": "summary",
          "enum": [
            "summary",
            "nodes",
            "relations",
            "members"
          ],
          "title": "Section",
          "type": "string"
        },
        "node_ids": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Node Ids"
        },
        "limit": {
          "default": 64,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16000,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "operation",
        "store_root"
      ],
      "title": "material_structureArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_analyze",
    "description": "Symbolic statistics, declared-voice intervals and role gate relationships.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "MaterialSelection": {
          "additionalProperties": false,
          "properties": {
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "voice_ids": {
              "items": {
                "type": "string"
              },
              "title": "Voice Ids",
              "type": "array"
            },
            "clip_ids": {
              "items": {
                "type": "string"
              },
              "title": "Clip Ids",
              "type": "array"
            },
            "span_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Span Qn",
              "type": "array"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "selection_sha256": {
              "title": "Selection Sha256",
              "type": "string"
            }
          },
          "title": "MaterialSelection",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "selection": {
          "anyOf": [
            {
              "$ref": "#/$defs/MaterialSelection"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "analyses": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Analyses"
        }
      },
      "required": [
        "material",
        "store_root"
      ],
      "title": "midi_analyzeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_generate",
    "description": "Deterministic explicit patterns, alternatives and no addition.",
    "inputSchema": {
      "$defs": {
        "PatternBrief": {
          "additionalProperties": false,
          "properties": {
            "role": {
              "title": "Role",
              "type": "string"
            },
            "pitch": {
              "title": "Pitch",
              "type": "integer"
            },
            "cell_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Cell Qn"
            },
            "cell": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Cell",
              "type": "array"
            },
            "length_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Length Qn"
            },
            "enter_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Enter Qn"
            },
            "exit_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Exit Qn"
            },
            "gate_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Gate Qn"
            },
            "velocities": {
              "items": {
                "type": "integer"
              },
              "title": "Velocities",
              "type": "array"
            },
            "variation_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Variation Qn"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "intentions": {
              "items": {
                "type": "string"
              },
              "title": "Intentions",
              "type": "array"
            }
          },
          "required": [
            "role",
            "pitch",
            "cell_qn",
            "cell",
            "length_qn"
          ],
          "title": "PatternBrief",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "SeedMap": {
          "additionalProperties": false,
          "properties": {
            "structure": {
              "title": "Structure",
              "type": "integer"
            },
            "timing": {
              "title": "Timing",
              "type": "integer"
            },
            "velocity": {
              "title": "Velocity",
              "type": "integer"
            }
          },
          "title": "SeedMap",
          "type": "object"
        }
      },
      "properties": {
        "brief": {
          "$ref": "#/$defs/PatternBrief"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "seeds": {
          "anyOf": [
            {
              "$ref": "#/$defs/SeedMap"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "alternatives": {
          "default": 2,
          "title": "Alternatives",
          "type": "integer"
        }
      },
      "required": [
        "brief",
        "store_root",
        "request_id"
      ],
      "title": "midi_generateArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_develop",
    "description": "Bounded explicit motif repetitions and seeded endpoint alternatives through public providers.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "DevelopmentDefinition": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "seed": {
              "$ref": "#/$defs/DevelopmentSeed"
            },
            "clock": {
              "$ref": "#/$defs/TimeContext"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Length Qn"
            },
            "occurrences": {
              "items": {
                "$ref": "#/$defs/DevelopmentOccurrence"
              },
              "title": "Occurrences",
              "type": "array"
            },
            "locked_occurrence_id": {
              "title": "Locked Occurrence Id",
              "type": "string"
            },
            "endpoint_note_id": {
              "title": "Endpoint Note Id",
              "type": "string"
            },
            "eligible_occurrence_ids": {
              "items": {
                "type": "string"
              },
              "title": "Eligible Occurrence Ids",
              "type": "array"
            },
            "variation": {
              "$ref": "#/$defs/DevelopmentVariation"
            },
            "seeds": {
              "$ref": "#/$defs/DevelopmentSeeds"
            }
          },
          "required": [
            "label",
            "seed",
            "clock",
            "origin",
            "length_qn",
            "occurrences",
            "locked_occurrence_id",
            "endpoint_note_id",
            "eligible_occurrence_ids",
            "variation",
            "seeds"
          ],
          "title": "DevelopmentDefinition",
          "type": "object"
        },
        "DevelopmentOccurrence": {
          "additionalProperties": false,
          "properties": {
            "occurrence_id": {
              "title": "Occurrence Id",
              "type": "string"
            },
            "at_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "At Qn"
            }
          },
          "required": [
            "occurrence_id",
            "at_qn"
          ],
          "title": "DevelopmentOccurrence",
          "type": "object"
        },
        "DevelopmentSeed": {
          "additionalProperties": false,
          "properties": {
            "material": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "$ref": "#/$defs/MaterialRecord"
                }
              ],
              "title": "Material"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            }
          },
          "required": [
            "material",
            "material_revision",
            "clip_id"
          ],
          "title": "DevelopmentSeed",
          "type": "object"
        },
        "DevelopmentSeeds": {
          "additionalProperties": false,
          "properties": {
            "structure": {
              "title": "Structure",
              "type": "integer"
            },
            "pitch": {
              "title": "Pitch",
              "type": "integer"
            },
            "timing": {
              "title": "Timing",
              "type": "integer"
            }
          },
          "required": [
            "structure",
            "pitch",
            "timing"
          ],
          "title": "DevelopmentSeeds",
          "type": "object"
        },
        "DevelopmentVariation": {
          "additionalProperties": false,
          "properties": {
            "pitch_offsets_semitones": {
              "items": {
                "type": "integer"
              },
              "title": "Pitch Offsets Semitones",
              "type": "array"
            },
            "timing_offsets_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Timing Offsets Qn",
              "type": "array"
            },
            "max_changed_notes": {
              "title": "Max Changed Notes",
              "type": "integer"
            },
            "pitch_min": {
              "title": "Pitch Min",
              "type": "integer"
            },
            "pitch_max": {
              "title": "Pitch Max",
              "type": "integer"
            }
          },
          "required": [
            "pitch_offsets_semitones",
            "timing_offsets_qn",
            "max_changed_notes",
            "pitch_min",
            "pitch_max"
          ],
          "title": "DevelopmentVariation",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "TimeContext": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.time-context/v1",
              "title": "Schema",
              "type": "string"
            },
            "context_id": {
              "title": "Context Id",
              "type": "string"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "schema",
            "context_id",
            "attribution"
          ],
          "title": "TimeContext",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "definition": {
          "$ref": "#/$defs/DevelopmentDefinition"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "definition"
      ],
      "title": "midi_developArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_arrangement_develop",
    "description": "Develop explicit whole-clip sections from an attributed graph, retaining exact locks and unchanged alternatives.",
    "inputSchema": {
      "$defs": {
        "ArrangementDefinition": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "structure": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "expected_structure_revision": {
              "title": "Expected Structure Revision",
              "type": "string"
            },
            "clock": {
              "$ref": "#/$defs/TimeContext"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Length Qn"
            },
            "sections": {
              "items": {
                "$ref": "#/$defs/ArrangementSection"
              },
              "title": "Sections",
              "type": "array"
            },
            "locked_section_ids": {
              "items": {
                "type": "string"
              },
              "title": "Locked Section Ids",
              "type": "array"
            },
            "variations": {
              "items": {
                "$ref": "#/$defs/ArrangementVariation"
              },
              "title": "Variations",
              "type": "array"
            },
            "seeds": {
              "$ref": "#/$defs/DevelopmentSeeds"
            },
            "attribution": {
              "$ref": "#/$defs/StructureAttribution"
            }
          },
          "required": [
            "label",
            "structure",
            "expected_structure_revision",
            "clock",
            "origin",
            "length_qn",
            "sections",
            "locked_section_ids",
            "variations",
            "seeds",
            "attribution"
          ],
          "title": "ArrangementDefinition",
          "type": "object"
        },
        "ArrangementSection": {
          "additionalProperties": false,
          "properties": {
            "section_id": {
              "title": "Section Id",
              "type": "string"
            },
            "node_id": {
              "title": "Node Id",
              "type": "string"
            },
            "at_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "At Qn"
            }
          },
          "required": [
            "section_id",
            "node_id",
            "at_qn"
          ],
          "title": "ArrangementSection",
          "type": "object"
        },
        "ArrangementVariation": {
          "additionalProperties": false,
          "properties": {
            "section_id": {
              "title": "Section Id",
              "type": "string"
            },
            "endpoint_note_id": {
              "title": "Endpoint Note Id",
              "type": "string"
            },
            "pitch_offsets_semitones": {
              "items": {
                "type": "integer"
              },
              "title": "Pitch Offsets Semitones",
              "type": "array"
            },
            "timing_offsets_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Timing Offsets Qn",
              "type": "array"
            },
            "pitch_min": {
              "title": "Pitch Min",
              "type": "integer"
            },
            "pitch_max": {
              "title": "Pitch Max",
              "type": "integer"
            }
          },
          "required": [
            "section_id",
            "endpoint_note_id",
            "pitch_offsets_semitones",
            "timing_offsets_qn",
            "pitch_min",
            "pitch_max"
          ],
          "title": "ArrangementVariation",
          "type": "object"
        },
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "DevelopmentSeeds": {
          "additionalProperties": false,
          "properties": {
            "structure": {
              "title": "Structure",
              "type": "integer"
            },
            "pitch": {
              "title": "Pitch",
              "type": "integer"
            },
            "timing": {
              "title": "Timing",
              "type": "integer"
            }
          },
          "required": [
            "structure",
            "pitch",
            "timing"
          ],
          "title": "DevelopmentSeeds",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "StructureAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            },
            "evidence": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Evidence",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty",
            "evidence"
          ],
          "title": "StructureAttribution",
          "type": "object"
        },
        "TimeContext": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.time-context/v1",
              "title": "Schema",
              "type": "string"
            },
            "context_id": {
              "title": "Context Id",
              "type": "string"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "schema",
            "context_id",
            "attribution"
          ],
          "title": "TimeContext",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "definition": {
          "$ref": "#/$defs/ArrangementDefinition"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "definition"
      ],
      "title": "midi_arrangement_developArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_arrangement_query",
    "description": "Query revision-bound sections and sparse changes with verified source and identity proofs.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "development": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "view": {
          "default": "summary",
          "enum": [
            "summary",
            "sections",
            "changes"
          ],
          "title": "View",
          "type": "string"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16384,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "development"
      ],
      "title": "midi_arrangement_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_timing_alternatives",
    "description": "Compose explicitly matched authored audio evidence and declared clocks through exact public note shifts; retain unchanged music.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AttackPoint": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "annotation_attack",
              "title": "Kind",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "title": "AttackPoint",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "MaterialLocks": {
          "additionalProperties": false,
          "properties": {
            "outside_selection": {
              "const": "all",
              "title": "Outside Selection",
              "type": "string"
            },
            "selected_fields": {
              "items": {
                "type": "string"
              },
              "title": "Selected Fields",
              "type": "array"
            }
          },
          "title": "MaterialLocks",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "MaterialSelection": {
          "additionalProperties": false,
          "properties": {
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "voice_ids": {
              "items": {
                "type": "string"
              },
              "title": "Voice Ids",
              "type": "array"
            },
            "clip_ids": {
              "items": {
                "type": "string"
              },
              "title": "Clip Ids",
              "type": "array"
            },
            "span_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Span Qn",
              "type": "array"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "selection_sha256": {
              "title": "Selection Sha256",
              "type": "string"
            }
          },
          "title": "MaterialSelection",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "PulsePoint": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "declared_pulse_point",
              "title": "Kind",
              "type": "string"
            },
            "original_source_frame_q": {
              "$ref": "#/$defs/Rational"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "original_source_frame_q",
            "statement"
          ],
          "title": "PulsePoint",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "TimingAlignment": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "declared_unwarped_source_clock",
              "title": "Kind",
              "type": "string"
            },
            "original_sha256": {
              "title": "Original Sha256",
              "type": "string"
            },
            "sample_rate": {
              "title": "Sample Rate",
              "type": "integer"
            },
            "source_anchor_frame_q": {
              "$ref": "#/$defs/Rational"
            },
            "host_anchor_seconds_q": {
              "$ref": "#/$defs/Rational"
            },
            "time_map": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "original_sha256",
            "sample_rate",
            "source_anchor_frame_q",
            "host_anchor_seconds_q",
            "time_map",
            "clip_id"
          ],
          "title": "TimingAlignment",
          "type": "object"
        },
        "TimingAlternative": {
          "additionalProperties": false,
          "properties": {
            "alternative_id": {
              "title": "Alternative Id",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            },
            "strength": {
              "$ref": "#/$defs/Rational"
            },
            "maximum_shift_qn": {
              "$ref": "#/$defs/Rational"
            },
            "matches": {
              "items": {
                "$ref": "#/$defs/TimingMatch"
              },
              "title": "Matches",
              "type": "array"
            }
          },
          "required": [
            "alternative_id",
            "statement",
            "uncertainty",
            "strength",
            "maximum_shift_qn",
            "matches"
          ],
          "title": "TimingAlternative",
          "type": "object"
        },
        "TimingMatch": {
          "additionalProperties": false,
          "properties": {
            "note_id": {
              "title": "Note Id",
              "type": "string"
            },
            "annotation_id": {
              "title": "Annotation Id",
              "type": "string"
            },
            "point": {
              "anyOf": [
                {
                  "$ref": "#/$defs/AttackPoint"
                },
                {
                  "$ref": "#/$defs/PulsePoint"
                }
              ],
              "title": "Point"
            }
          },
          "required": [
            "note_id",
            "annotation_id",
            "point"
          ],
          "title": "TimingMatch",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "selection": {
          "$ref": "#/$defs/MaterialSelection"
        },
        "hypotheses": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "expected_hypotheses_revision": {
          "title": "Expected Hypotheses Revision",
          "type": "string"
        },
        "alignment": {
          "$ref": "#/$defs/TimingAlignment"
        },
        "alternatives": {
          "items": {
            "$ref": "#/$defs/TimingAlternative"
          },
          "title": "Alternatives",
          "type": "array"
        },
        "locks": {
          "$ref": "#/$defs/MaterialLocks"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "material",
        "selection",
        "hypotheses",
        "expected_hypotheses_revision",
        "alignment",
        "alternatives",
        "locks",
        "attribution"
      ],
      "title": "midi_timing_alternativesArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_timing_query",
    "description": "Query bounded timing proofs after isolated public-edit replay without source audio or a model runtime.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "manifest": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "view": {
          "default": "summary",
          "enum": [
            "summary",
            "matches",
            "steps"
          ],
          "title": "View",
          "type": "string"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "limit": {
          "default": 16,
          "title": "Limit",
          "type": "integer"
        },
        "max_bytes": {
          "default": 16000,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "manifest"
      ],
      "title": "midi_timing_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_lifecycle",
    "description": "Declared symbolic note/sustain/tail reservations; no receiver or allocation qualification.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "InitialSustain": {
          "additionalProperties": false,
          "properties": {
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "value": {
              "title": "Value",
              "type": "integer"
            }
          },
          "required": [
            "channel",
            "value"
          ],
          "title": "InitialSustain",
          "type": "object"
        },
        "LifecycleInitialState": {
          "additionalProperties": false,
          "properties": {
            "active_notes": {
              "const": "none",
              "title": "Active Notes",
              "type": "string"
            },
            "sustain": {
              "items": {
                "$ref": "#/$defs/InitialSustain"
              },
              "title": "Sustain",
              "type": "array"
            }
          },
          "required": [
            "active_notes",
            "sustain"
          ],
          "title": "LifecycleInitialState",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "clip_id": {
          "title": "Clip Id",
          "type": "string"
        },
        "initial_state": {
          "$ref": "#/$defs/LifecycleInitialState"
        },
        "horizon_qn": {
          "anyOf": [
            {
              "$ref": "#/$defs/Rational"
            },
            {
              "type": "integer"
            }
          ],
          "title": "Horizon Qn"
        },
        "release_tail_qn": {
          "anyOf": [
            {
              "$ref": "#/$defs/Rational"
            },
            {
              "type": "integer"
            }
          ],
          "title": "Release Tail Qn"
        },
        "equal_time_order": {
          "enum": [
            "note_off_cc_note_on",
            "cc_note_off_note_on"
          ],
          "title": "Equal Time Order",
          "type": "string"
        },
        "source_basis": {
          "const": "canonical_notes_retained_cc64",
          "title": "Source Basis",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "material",
        "clip_id",
        "initial_state",
        "horizon_qn",
        "release_tail_qn",
        "equal_time_order",
        "source_basis",
        "store_root",
        "request_id"
      ],
      "title": "midi_lifecycleArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_transform",
    "description": "Literal notes, split/merge, selected edits, explicit grid/groove timing, dynamics and attributed revoicing with exact locks.",
    "inputSchema": {
      "$defs": {
        "AddOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "add",
              "title": "Op",
              "type": "string"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/LiteralNoteSpec"
              },
              "title": "Notes",
              "type": "array"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            }
          },
          "required": [
            "op",
            "clip_id",
            "notes",
            "controller_timeline",
            "time_space"
          ],
          "title": "AddOperation",
          "type": "object"
        },
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "DeleteOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "delete",
              "title": "Op",
              "type": "string"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            }
          },
          "required": [
            "op",
            "controller_timeline"
          ],
          "title": "DeleteOperation",
          "type": "object"
        },
        "DuplicateOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "duplicate",
              "title": "Op",
              "type": "string"
            },
            "delta_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Delta Qn"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            }
          },
          "required": [
            "op",
            "delta_qn",
            "controller_timeline"
          ],
          "title": "DuplicateOperation",
          "type": "object"
        },
        "EditOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "enum": [
                "shift",
                "transpose",
                "repitch",
                "velocity",
                "release_velocity",
                "resize",
                "thin"
              ],
              "title": "Op",
              "type": "string"
            },
            "delta_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Delta Qn"
            },
            "semitones": {
              "title": "Semitones",
              "type": "integer"
            },
            "pitch": {
              "title": "Pitch",
              "type": "integer"
            },
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "duration_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Duration Qn"
            },
            "every": {
              "title": "Every",
              "type": "integer"
            },
            "offset": {
              "title": "Offset",
              "type": "integer"
            }
          },
          "required": [
            "op"
          ],
          "title": "EditOperation",
          "type": "object"
        },
        "GridQuantizeOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "grid_quantize",
              "title": "Op",
              "type": "string"
            },
            "grid_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Grid Qn"
            },
            "phase_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Phase Qn"
            },
            "strength": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Strength"
            },
            "threshold_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Threshold Qn"
            },
            "ties": {
              "enum": [
                "earlier",
                "later"
              ],
              "title": "Ties",
              "type": "string"
            },
            "note_off": {
              "const": "follow_onset",
              "title": "Note Off",
              "type": "string"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            }
          },
          "required": [
            "op",
            "grid_qn",
            "phase_qn",
            "strength",
            "threshold_qn",
            "ties",
            "note_off",
            "controller_timeline",
            "time_space"
          ],
          "title": "GridQuantizeOperation",
          "type": "object"
        },
        "GrooveAnchor": {
          "additionalProperties": false,
          "properties": {
            "nominal_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Nominal Qn"
            },
            "offset_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Offset Qn"
            }
          },
          "required": [
            "nominal_qn",
            "offset_qn"
          ],
          "title": "GrooveAnchor",
          "type": "object"
        },
        "GrooveOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "groove",
              "title": "Op",
              "type": "string"
            },
            "cycle_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Cycle Qn"
            },
            "anchors": {
              "items": {
                "$ref": "#/$defs/GrooveAnchor"
              },
              "title": "Anchors",
              "type": "array"
            },
            "phase_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Phase Qn"
            },
            "strength": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Strength"
            },
            "threshold_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Threshold Qn"
            },
            "ties": {
              "enum": [
                "earlier",
                "later"
              ],
              "title": "Ties",
              "type": "string"
            },
            "note_off": {
              "const": "follow_onset",
              "title": "Note Off",
              "type": "string"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            }
          },
          "required": [
            "op",
            "cycle_qn",
            "anchors",
            "phase_qn",
            "strength",
            "threshold_qn",
            "ties",
            "note_off",
            "controller_timeline",
            "time_space"
          ],
          "title": "GrooveOperation",
          "type": "object"
        },
        "HarmonicHypothesis": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "label",
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "HarmonicHypothesis",
          "type": "object"
        },
        "LiteralNoteSpec": {
          "additionalProperties": false,
          "properties": {
            "onset_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Onset Qn"
            },
            "duration_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Duration Qn"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            }
          },
          "required": [
            "onset_qn",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "voice_id",
            "role_ref"
          ],
          "title": "LiteralNoteSpec",
          "type": "object"
        },
        "MaterialLocks": {
          "additionalProperties": false,
          "properties": {
            "outside_selection": {
              "const": "all",
              "title": "Outside Selection",
              "type": "string"
            },
            "selected_fields": {
              "items": {
                "type": "string"
              },
              "title": "Selected Fields",
              "type": "array"
            }
          },
          "title": "MaterialLocks",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "MaterialSelection": {
          "additionalProperties": false,
          "properties": {
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "voice_ids": {
              "items": {
                "type": "string"
              },
              "title": "Voice Ids",
              "type": "array"
            },
            "clip_ids": {
              "items": {
                "type": "string"
              },
              "title": "Clip Ids",
              "type": "array"
            },
            "span_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Span Qn",
              "type": "array"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            },
            "material_revision": {
              "title": "Material Revision",
              "type": "string"
            },
            "selection_sha256": {
              "title": "Selection Sha256",
              "type": "string"
            }
          },
          "title": "MaterialSelection",
          "type": "object"
        },
        "MergeOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "merge",
              "title": "Op",
              "type": "string"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "time_space": {
              "const": "clip_qn",
              "title": "Time Space",
              "type": "string"
            },
            "articulation": {
              "const": "remove_retriggers",
              "title": "Articulation",
              "type": "string"
            }
          },
          "required": [
            "op",
            "controller_timeline",
            "time_space",
            "articulation"
          ],
          "title": "MergeOperation",
          "type": "object"
        },
        "NotePitchDestination": {
          "additionalProperties": false,
          "properties": {
            "note_id": {
              "title": "Note Id",
              "type": "string"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            }
          },
          "required": [
            "note_id",
            "pitch"
          ],
          "title": "NotePitchDestination",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "RevoiceOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "revoice",
              "title": "Op",
              "type": "string"
            },
            "destinations": {
              "items": {
                "$ref": "#/$defs/NotePitchDestination"
              },
              "title": "Destinations",
              "type": "array"
            },
            "hypothesis": {
              "$ref": "#/$defs/HarmonicHypothesis"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "pitch_expression": {
              "const": "preserve_relative",
              "title": "Pitch Expression",
              "type": "string"
            }
          },
          "required": [
            "op",
            "destinations",
            "hypothesis",
            "controller_timeline",
            "pitch_expression"
          ],
          "title": "RevoiceOperation",
          "type": "object"
        },
        "SplitOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "split",
              "title": "Op",
              "type": "string"
            },
            "offsets_qn": {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Rational"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "title": "Offsets Qn",
              "type": "array"
            },
            "controller_timeline": {
              "const": "preserve_existing",
              "title": "Controller Timeline",
              "type": "string"
            },
            "time_space": {
              "const": "note_relative_qn",
              "title": "Time Space",
              "type": "string"
            },
            "articulation": {
              "const": "retrigger",
              "title": "Articulation",
              "type": "string"
            }
          },
          "required": [
            "op",
            "offsets_qn",
            "controller_timeline",
            "time_space",
            "articulation"
          ],
          "title": "SplitOperation",
          "type": "object"
        },
        "VelocityMapOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "const": "velocity_map",
              "title": "Op",
              "type": "string"
            },
            "field": {
              "enum": [
                "velocity",
                "release_velocity"
              ],
              "title": "Field",
              "type": "string"
            },
            "mapping": {
              "items": {
                "$ref": "#/$defs/VelocityMappingEntry"
              },
              "title": "Mapping",
              "type": "array"
            },
            "unmapped": {
              "enum": [
                "preserve",
                "reject"
              ],
              "title": "Unmapped",
              "type": "string"
            }
          },
          "required": [
            "op",
            "field",
            "mapping",
            "unmapped"
          ],
          "title": "VelocityMapOperation",
          "type": "object"
        },
        "VelocityMappingEntry": {
          "additionalProperties": false,
          "properties": {
            "from_value": {
              "title": "From Value",
              "type": "integer"
            },
            "to_value": {
              "title": "To Value",
              "type": "integer"
            }
          },
          "required": [
            "from_value",
            "to_value"
          ],
          "title": "VelocityMappingEntry",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "selection": {
          "$ref": "#/$defs/MaterialSelection"
        },
        "operations": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/EditOperation"
              },
              {
                "$ref": "#/$defs/DeleteOperation"
              },
              {
                "$ref": "#/$defs/DuplicateOperation"
              },
              {
                "$ref": "#/$defs/GridQuantizeOperation"
              },
              {
                "$ref": "#/$defs/VelocityMapOperation"
              },
              {
                "$ref": "#/$defs/AddOperation"
              },
              {
                "$ref": "#/$defs/SplitOperation"
              },
              {
                "$ref": "#/$defs/MergeOperation"
              },
              {
                "$ref": "#/$defs/GrooveOperation"
              },
              {
                "$ref": "#/$defs/RevoiceOperation"
              }
            ]
          },
          "title": "Operations",
          "type": "array"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "locks": {
          "anyOf": [
            {
              "$ref": "#/$defs/MaterialLocks"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "expression_policy": {
          "default": "reject",
          "title": "Expression Policy",
          "type": "string"
        },
        "overlap_policy": {
          "default": "reject_new",
          "title": "Overlap Policy",
          "type": "string"
        }
      },
      "required": [
        "material",
        "selection",
        "operations",
        "store_root",
        "request_id"
      ],
      "title": "midi_transformArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_export",
    "description": "SMF derivative with explicit fidelity, raw-event policy and optional exact CC1/CC11 steps.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "EmbeddedCCStepBinding": {
          "additionalProperties": false,
          "properties": {
            "curve_id": {
              "title": "Curve Id",
              "type": "string"
            },
            "controller": {
              "enum": [
                1,
                11
              ],
              "title": "Controller",
              "type": "integer"
            },
            "same_tick_order": {
              "const": "before_existing",
              "title": "Same Tick Order",
              "type": "string"
            }
          },
          "required": [
            "curve_id",
            "controller",
            "same_tick_order"
          ],
          "title": "EmbeddedCCStepBinding",
          "type": "object"
        },
        "ExpressionAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "evidence": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Evidence",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "evidence"
          ],
          "title": "ExpressionAttribution",
          "type": "object"
        },
        "ExpressionConfiguration": {
          "additionalProperties": false,
          "properties": {
            "lifecycle": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "$ref": "#/$defs/ExpressionLifecycleRequest"
                }
              ],
              "title": "Lifecycle"
            },
            "receiver_assumption": {
              "$ref": "#/$defs/ReceiverAssumption"
            },
            "encoding": {
              "$ref": "#/$defs/ExpressionEncoding"
            }
          },
          "required": [
            "lifecycle",
            "receiver_assumption",
            "encoding"
          ],
          "title": "ExpressionConfiguration",
          "type": "object"
        },
        "ExpressionEncoding": {
          "additionalProperties": false,
          "properties": {
            "source_channel_policy": {
              "const": "single_source_channel_to_zone",
              "title": "Source Channel Policy",
              "type": "string"
            },
            "sustain_route": {
              "const": "manager_cc64",
              "title": "Sustain Route",
              "type": "string"
            },
            "allocation": {
              "const": "lowest_available_zone_order",
              "title": "Allocation",
              "type": "string"
            },
            "exhaustion": {
              "const": "reject_no_stealing",
              "title": "Exhaustion",
              "type": "string"
            },
            "reservation": {
              "const": "through_symbolic_release_plus_declared_tail",
              "title": "Reservation",
              "type": "string"
            },
            "same_pitch_policy": {
              "const": "new_per_note_channel_realization",
              "title": "Same Pitch Policy",
              "type": "string"
            },
            "tuning": {
              "const": "tuning:12tet-a440",
              "title": "Tuning",
              "type": "string"
            },
            "neutral": {
              "$ref": "#/$defs/ExpressionNeutral"
            },
            "curve_mode": {
              "const": "step_only",
              "title": "Curve Mode",
              "type": "string"
            },
            "rounding": {
              "const": "nearest_ties_even",
              "title": "Rounding",
              "type": "string"
            },
            "max_pitch_error_cents": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Max Pitch Error Cents"
            },
            "max_control_error_normalized": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Max Control Error Normalized"
            },
            "reuse_order": {
              "const": "old_expression_then_declared_off_cc_then_reset_setup_on",
              "title": "Reuse Order",
              "type": "string"
            }
          },
          "required": [
            "source_channel_policy",
            "sustain_route",
            "allocation",
            "exhaustion",
            "reservation",
            "same_pitch_policy",
            "tuning",
            "neutral",
            "curve_mode",
            "rounding",
            "max_pitch_error_cents",
            "max_control_error_normalized",
            "reuse_order"
          ],
          "title": "ExpressionEncoding",
          "type": "object"
        },
        "ExpressionLifecycleRequest": {
          "additionalProperties": false,
          "properties": {
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "initial_state": {
              "$ref": "#/$defs/LifecycleInitialState"
            },
            "horizon_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Horizon Qn"
            },
            "release_tail_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Release Tail Qn"
            },
            "equal_time_order": {
              "enum": [
                "note_off_cc_note_on",
                "cc_note_off_note_on"
              ],
              "title": "Equal Time Order",
              "type": "string"
            },
            "source_basis": {
              "const": "canonical_notes_retained_cc64",
              "title": "Source Basis",
              "type": "string"
            }
          },
          "required": [
            "clip_id",
            "initial_state",
            "horizon_qn",
            "release_tail_qn",
            "equal_time_order",
            "source_basis"
          ],
          "title": "ExpressionLifecycleRequest",
          "type": "object"
        },
        "ExpressionNeutral": {
          "additionalProperties": false,
          "properties": {
            "pitch_cents": {
              "const": 0,
              "title": "Pitch Cents",
              "type": "integer"
            },
            "pressure_7bit": {
              "title": "Pressure 7Bit",
              "type": "integer"
            },
            "slide_7bit": {
              "title": "Slide 7Bit",
              "type": "integer"
            }
          },
          "required": [
            "pitch_cents",
            "pressure_7bit",
            "slide_7bit"
          ],
          "title": "ExpressionNeutral",
          "type": "object"
        },
        "ExternalCCStepBinding": {
          "additionalProperties": false,
          "properties": {
            "curve": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "controller": {
              "enum": [
                1,
                11
              ],
              "title": "Controller",
              "type": "integer"
            },
            "same_tick_order": {
              "const": "before_existing",
              "title": "Same Tick Order",
              "type": "string"
            }
          },
          "required": [
            "curve",
            "clip_id",
            "controller",
            "same_tick_order"
          ],
          "title": "ExternalCCStepBinding",
          "type": "object"
        },
        "InitialSustain": {
          "additionalProperties": false,
          "properties": {
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "value": {
              "title": "Value",
              "type": "integer"
            }
          },
          "required": [
            "channel",
            "value"
          ],
          "title": "InitialSustain",
          "type": "object"
        },
        "LifecycleInitialState": {
          "additionalProperties": false,
          "properties": {
            "active_notes": {
              "const": "none",
              "title": "Active Notes",
              "type": "string"
            },
            "sustain": {
              "items": {
                "$ref": "#/$defs/InitialSustain"
              },
              "title": "Sustain",
              "type": "array"
            }
          },
          "required": [
            "active_notes",
            "sustain"
          ],
          "title": "LifecycleInitialState",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "ReceiverAssumption": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "zone": {
              "enum": [
                "lower",
                "upper"
              ],
              "title": "Zone",
              "type": "string"
            },
            "manager_channel": {
              "title": "Manager Channel",
              "type": "integer"
            },
            "member_channels": {
              "items": {
                "type": "integer"
              },
              "title": "Member Channels",
              "type": "array"
            },
            "member_bend_range_semitones": {
              "title": "Member Bend Range Semitones",
              "type": "integer"
            },
            "manager_pitch_policy": {
              "const": "neutral_no_pitch_messages",
              "title": "Manager Pitch Policy",
              "type": "string"
            },
            "configuration_policy": {
              "const": "assume_preconfigured_no_setup_messages",
              "title": "Configuration Policy",
              "type": "string"
            },
            "configuration_status": {
              "const": "declared_unverified",
              "title": "Configuration Status",
              "type": "string"
            },
            "attribution": {
              "$ref": "#/$defs/ExpressionAttribution"
            },
            "instrument_state": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "label",
            "zone",
            "manager_channel",
            "member_channels",
            "member_bend_range_semitones",
            "manager_pitch_policy",
            "configuration_policy",
            "configuration_status",
            "attribution",
            "instrument_state"
          ],
          "title": "ReceiverAssumption",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "output_path": {
          "title": "Output Path",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "format": {
          "default": "smf1",
          "title": "Format",
          "type": "string"
        },
        "ppq": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Ppq"
        },
        "loss_policy": {
          "default": "reject_unapproved",
          "title": "Loss Policy",
          "type": "string"
        },
        "approved_losses": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Approved Losses"
        },
        "cc_step_bindings": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/EmbeddedCCStepBinding"
                  },
                  {
                    "$ref": "#/$defs/ExternalCCStepBinding"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cc Step Bindings"
        },
        "expression": {
          "anyOf": [
            {
              "$ref": "#/$defs/ExpressionConfiguration"
            },
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expression"
        }
      },
      "required": [
        "material",
        "store_root",
        "output_path",
        "request_id"
      ],
      "title": "midi_exportArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "midi_expression_plan",
    "description": "Declared member-channel allocation and exact expression bytes; receiver setup remains unverified.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClipRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "origin": {
              "$ref": "#/$defs/Position"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "loop": {
              "const": false,
              "title": "Loop",
              "type": "boolean"
            },
            "note_ids": {
              "items": {
                "type": "string"
              },
              "title": "Note Ids",
              "type": "array"
            },
            "event_ids": {
              "items": {
                "type": "string"
              },
              "title": "Event Ids",
              "type": "array"
            },
            "curve_ids": {
              "items": {
                "type": "string"
              },
              "title": "Curve Ids",
              "type": "array"
            }
          },
          "required": [
            "id",
            "track_id",
            "origin",
            "length_qn",
            "loop",
            "note_ids",
            "event_ids",
            "curve_ids"
          ],
          "title": "ClipRecord",
          "type": "object"
        },
        "ExpressionAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "evidence": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Evidence",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "evidence"
          ],
          "title": "ExpressionAttribution",
          "type": "object"
        },
        "ExpressionEncoding": {
          "additionalProperties": false,
          "properties": {
            "source_channel_policy": {
              "const": "single_source_channel_to_zone",
              "title": "Source Channel Policy",
              "type": "string"
            },
            "sustain_route": {
              "const": "manager_cc64",
              "title": "Sustain Route",
              "type": "string"
            },
            "allocation": {
              "const": "lowest_available_zone_order",
              "title": "Allocation",
              "type": "string"
            },
            "exhaustion": {
              "const": "reject_no_stealing",
              "title": "Exhaustion",
              "type": "string"
            },
            "reservation": {
              "const": "through_symbolic_release_plus_declared_tail",
              "title": "Reservation",
              "type": "string"
            },
            "same_pitch_policy": {
              "const": "new_per_note_channel_realization",
              "title": "Same Pitch Policy",
              "type": "string"
            },
            "tuning": {
              "const": "tuning:12tet-a440",
              "title": "Tuning",
              "type": "string"
            },
            "neutral": {
              "$ref": "#/$defs/ExpressionNeutral"
            },
            "curve_mode": {
              "const": "step_only",
              "title": "Curve Mode",
              "type": "string"
            },
            "rounding": {
              "const": "nearest_ties_even",
              "title": "Rounding",
              "type": "string"
            },
            "max_pitch_error_cents": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Max Pitch Error Cents"
            },
            "max_control_error_normalized": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Max Control Error Normalized"
            },
            "reuse_order": {
              "const": "old_expression_then_declared_off_cc_then_reset_setup_on",
              "title": "Reuse Order",
              "type": "string"
            }
          },
          "required": [
            "source_channel_policy",
            "sustain_route",
            "allocation",
            "exhaustion",
            "reservation",
            "same_pitch_policy",
            "tuning",
            "neutral",
            "curve_mode",
            "rounding",
            "max_pitch_error_cents",
            "max_control_error_normalized",
            "reuse_order"
          ],
          "title": "ExpressionEncoding",
          "type": "object"
        },
        "ExpressionLifecycleRequest": {
          "additionalProperties": false,
          "properties": {
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            },
            "initial_state": {
              "$ref": "#/$defs/LifecycleInitialState"
            },
            "horizon_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Horizon Qn"
            },
            "release_tail_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Release Tail Qn"
            },
            "equal_time_order": {
              "enum": [
                "note_off_cc_note_on",
                "cc_note_off_note_on"
              ],
              "title": "Equal Time Order",
              "type": "string"
            },
            "source_basis": {
              "const": "canonical_notes_retained_cc64",
              "title": "Source Basis",
              "type": "string"
            }
          },
          "required": [
            "clip_id",
            "initial_state",
            "horizon_qn",
            "release_tail_qn",
            "equal_time_order",
            "source_basis"
          ],
          "title": "ExpressionLifecycleRequest",
          "type": "object"
        },
        "ExpressionNeutral": {
          "additionalProperties": false,
          "properties": {
            "pitch_cents": {
              "const": 0,
              "title": "Pitch Cents",
              "type": "integer"
            },
            "pressure_7bit": {
              "title": "Pressure 7Bit",
              "type": "integer"
            },
            "slide_7bit": {
              "title": "Slide 7Bit",
              "type": "integer"
            }
          },
          "required": [
            "pitch_cents",
            "pressure_7bit",
            "slide_7bit"
          ],
          "title": "ExpressionNeutral",
          "type": "object"
        },
        "InitialSustain": {
          "additionalProperties": false,
          "properties": {
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "value": {
              "title": "Value",
              "type": "integer"
            }
          },
          "required": [
            "channel",
            "value"
          ],
          "title": "InitialSustain",
          "type": "object"
        },
        "LifecycleInitialState": {
          "additionalProperties": false,
          "properties": {
            "active_notes": {
              "const": "none",
              "title": "Active Notes",
              "type": "string"
            },
            "sustain": {
              "items": {
                "$ref": "#/$defs/InitialSustain"
              },
              "title": "Sustain",
              "type": "array"
            }
          },
          "required": [
            "active_notes",
            "sustain"
          ],
          "title": "LifecycleInitialState",
          "type": "object"
        },
        "MaterialRecord": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.material/v1",
              "title": "Schema",
              "type": "string"
            },
            "material_id": {
              "title": "Material Id",
              "type": "string"
            },
            "revision_sha256": {
              "title": "Revision Sha256",
              "type": "string"
            },
            "parent_revision": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Parent Revision"
            },
            "sources": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Sources",
              "type": "array"
            },
            "tracks": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Tracks",
              "type": "array"
            },
            "clips": {
              "items": {
                "$ref": "#/$defs/ClipRecord"
              },
              "title": "Clips",
              "type": "array"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NoteRecord"
              },
              "title": "Notes",
              "type": "array"
            },
            "events": {
              "items": {
                "$ref": "#/$defs/WireEvent"
              },
              "title": "Events",
              "type": "array"
            },
            "curves": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "title": "Curves",
              "type": "array"
            },
            "tempo_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter_map_ref": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverage": {
              "additionalProperties": true,
              "title": "Coverage",
              "type": "object"
            },
            "provenance": {
              "additionalProperties": true,
              "title": "Provenance",
              "type": "object"
            }
          },
          "required": [
            "schema",
            "material_id",
            "revision_sha256",
            "parent_revision",
            "sources",
            "tracks",
            "clips",
            "notes",
            "events",
            "curves",
            "tempo_map_ref",
            "meter_map_ref",
            "coverage",
            "provenance"
          ],
          "title": "MaterialRecord",
          "type": "object"
        },
        "NoteRecord": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "voice_id": {
              "title": "Voice Id",
              "type": "string"
            },
            "role_ref": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role Ref"
            },
            "onset": {
              "$ref": "#/$defs/Position"
            },
            "duration_qn": {
              "$ref": "#/$defs/Rational"
            },
            "pitch": {
              "$ref": "#/$defs/PitchRecord"
            },
            "velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "release_velocity": {
              "$ref": "#/$defs/VelocityRecord"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "mute": {
              "title": "Mute",
              "type": "boolean"
            },
            "expression_refs": {
              "items": {
                "type": "string"
              },
              "title": "Expression Refs",
              "type": "array"
            },
            "source_binding": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Binding"
            },
            "derived_from": {
              "items": {
                "type": "string"
              },
              "title": "Derived From",
              "type": "array"
            }
          },
          "required": [
            "id",
            "voice_id",
            "role_ref",
            "onset",
            "duration_qn",
            "pitch",
            "velocity",
            "release_velocity",
            "channel",
            "mute",
            "expression_refs",
            "source_binding",
            "derived_from"
          ],
          "title": "NoteRecord",
          "type": "object"
        },
        "PitchRecord": {
          "additionalProperties": false,
          "properties": {
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents_offset": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Cents Offset"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "midi_note",
            "cents_offset",
            "tuning_ref"
          ],
          "title": "PitchRecord",
          "type": "object"
        },
        "Position": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            },
            "space": {
              "enum": [
                "clip_qn",
                "phrase_qn",
                "arrangement_qn"
              ],
              "title": "Space",
              "type": "string"
            }
          },
          "required": [
            "n",
            "d",
            "space"
          ],
          "title": "Position",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "ReceiverAssumption": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "zone": {
              "enum": [
                "lower",
                "upper"
              ],
              "title": "Zone",
              "type": "string"
            },
            "manager_channel": {
              "title": "Manager Channel",
              "type": "integer"
            },
            "member_channels": {
              "items": {
                "type": "integer"
              },
              "title": "Member Channels",
              "type": "array"
            },
            "member_bend_range_semitones": {
              "title": "Member Bend Range Semitones",
              "type": "integer"
            },
            "manager_pitch_policy": {
              "const": "neutral_no_pitch_messages",
              "title": "Manager Pitch Policy",
              "type": "string"
            },
            "configuration_policy": {
              "const": "assume_preconfigured_no_setup_messages",
              "title": "Configuration Policy",
              "type": "string"
            },
            "configuration_status": {
              "const": "declared_unverified",
              "title": "Configuration Status",
              "type": "string"
            },
            "attribution": {
              "$ref": "#/$defs/ExpressionAttribution"
            },
            "instrument_state": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "label",
            "zone",
            "manager_channel",
            "member_channels",
            "member_bend_range_semitones",
            "manager_pitch_policy",
            "configuration_policy",
            "configuration_status",
            "attribution",
            "instrument_state"
          ],
          "title": "ReceiverAssumption",
          "type": "object"
        },
        "VelocityRecord": {
          "additionalProperties": false,
          "properties": {
            "value": {
              "title": "Value",
              "type": "integer"
            },
            "domain": {
              "const": "midi1_7bit",
              "title": "Domain",
              "type": "string"
            }
          },
          "required": [
            "value",
            "domain"
          ],
          "title": "VelocityRecord",
          "type": "object"
        },
        "WireEvent": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "title": "Id",
              "type": "string"
            },
            "time": {
              "$ref": "#/$defs/Position"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            },
            "message_type": {
              "title": "Message Type",
              "type": "string"
            },
            "is_meta": {
              "title": "Is Meta",
              "type": "boolean"
            },
            "bytes": {
              "items": {
                "type": "integer"
              },
              "title": "Bytes",
              "type": "array"
            },
            "source_tick": {
              "title": "Source Tick",
              "type": "integer"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "time",
            "order",
            "message_type",
            "is_meta",
            "bytes"
          ],
          "title": "WireEvent",
          "type": "object"
        }
      },
      "properties": {
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/MaterialRecord"
            }
          ],
          "title": "Material"
        },
        "lifecycle": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "$ref": "#/$defs/ExpressionLifecycleRequest"
            }
          ],
          "title": "Lifecycle"
        },
        "receiver_assumption": {
          "$ref": "#/$defs/ReceiverAssumption"
        },
        "encoding": {
          "$ref": "#/$defs/ExpressionEncoding"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "material",
        "lifecycle",
        "receiver_assumption",
        "encoding",
        "store_root",
        "request_id"
      ],
      "title": "midi_expression_planArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_hypotheses",
    "description": "Retain exact local source frames and competing deterministic Peek evidence without transcription.",
    "inputSchema": {
      "$defs": {
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSettings": {
          "additionalProperties": false,
          "properties": {
            "bpm_hint": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Hint"
            },
            "beats_per_bar": {
              "title": "Beats Per Bar",
              "type": "integer"
            }
          },
          "required": [
            "bpm_hint",
            "beats_per_bar"
          ],
          "title": "AudioHypothesisSettings",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "settings": {
          "$ref": "#/$defs/AudioHypothesisSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "settings",
        "attribution"
      ],
      "title": "audio_hypothesesArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_region_capture",
    "description": "Stream-verify a declared long PCM source and retain exact bounded crop bytes with original-frame mapping.",
    "inputSchema": {
      "$defs": {
        "AudioRegionSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioRegionSource",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioRegionSource"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source"
      ],
      "title": "audio_region_captureArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_region_hypotheses",
    "description": "Compose explicit region capture and public analysis, retaining local evidence and exact original-frame mapping.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSettings": {
          "additionalProperties": false,
          "properties": {
            "bpm_hint": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Hint"
            },
            "beats_per_bar": {
              "title": "Beats Per Bar",
              "type": "integer"
            }
          },
          "required": [
            "bpm_hint",
            "beats_per_bar"
          ],
          "title": "AudioHypothesisSettings",
          "type": "object"
        },
        "AudioModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "beat_this_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioModelDeclaration",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioNoteModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "basic_pitch_onnx_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioNoteModelDeclaration",
          "type": "object"
        },
        "AudioNoteSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "decoder": {
              "enum": [
                "basic_pitch_0_4_0_false_false_v1",
                "basic_pitch_0_4_0_false_false_v2"
              ],
              "title": "Decoder",
              "type": "string"
            },
            "onset_threshold": {
              "const": 0.5,
              "title": "Onset Threshold",
              "type": "number"
            },
            "frame_threshold": {
              "const": 0.3,
              "title": "Frame Threshold",
              "type": "number"
            },
            "min_note_frames": {
              "const": 11,
              "title": "Min Note Frames",
              "type": "integer"
            },
            "energy_tol": {
              "const": 11,
              "title": "Energy Tol",
              "type": "integer"
            },
            "infer_onsets": {
              "const": false,
              "title": "Infer Onsets",
              "type": "boolean"
            },
            "melodia_trick": {
              "const": false,
              "title": "Melodia Trick",
              "type": "boolean"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "downmix",
            "resampler",
            "decoder",
            "onset_threshold",
            "frame_threshold",
            "min_note_frames",
            "energy_tol",
            "infer_onsets",
            "melodia_trick"
          ],
          "title": "AudioNoteSettings",
          "type": "object"
        },
        "AudioPulseSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "postprocessor": {
              "const": "minimal",
              "title": "Postprocessor",
              "type": "string"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "seed": {
              "const": 0,
              "title": "Seed",
              "type": "integer"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "postprocessor",
            "downmix",
            "resampler",
            "seed"
          ],
          "title": "AudioPulseSettings",
          "type": "object"
        },
        "AudioRegionSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioRegionSource",
          "type": "object"
        },
        "CapturedAudioRegion": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "captured",
              "title": "Kind",
              "type": "string"
            },
            "region": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "region"
          ],
          "title": "CapturedAudioRegion",
          "type": "object"
        },
        "InlineAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioNoteModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_onnx_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioNoteModel",
          "type": "object"
        },
        "InlineAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioPulseModel",
          "type": "object"
        },
        "InlineAudioRegion": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/AudioRegionSource"
            }
          },
          "required": [
            "kind",
            "source"
          ],
          "title": "InlineAudioRegion",
          "type": "object"
        },
        "InspectedAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioNoteModel",
          "type": "object"
        },
        "InspectedAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioPulseModel",
          "type": "object"
        },
        "LearnedNoteRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "learned_notes",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "anyOf": [
                {
                  "$ref": "#/$defs/InlineAudioNoteModel"
                },
                {
                  "$ref": "#/$defs/InspectedAudioNoteModel"
                }
              ],
              "title": "Model"
            },
            "settings": {
              "$ref": "#/$defs/AudioNoteSettings"
            }
          },
          "required": [
            "kind",
            "model",
            "settings"
          ],
          "title": "LearnedNoteRegionAnalysis",
          "type": "object"
        },
        "LearnedPulseRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "learned_pulse",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "anyOf": [
                {
                  "$ref": "#/$defs/InlineAudioPulseModel"
                },
                {
                  "$ref": "#/$defs/InspectedAudioPulseModel"
                }
              ],
              "title": "Model"
            },
            "settings": {
              "$ref": "#/$defs/AudioPulseSettings"
            }
          },
          "required": [
            "kind",
            "model",
            "settings"
          ],
          "title": "LearnedPulseRegionAnalysis",
          "type": "object"
        },
        "PeekRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "peek",
              "title": "Kind",
              "type": "string"
            },
            "settings": {
              "$ref": "#/$defs/AudioHypothesisSettings"
            }
          },
          "required": [
            "kind",
            "settings"
          ],
          "title": "PeekRegionAnalysis",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "region": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioRegion"
            },
            {
              "$ref": "#/$defs/CapturedAudioRegion"
            }
          ],
          "title": "Region"
        },
        "analysis": {
          "anyOf": [
            {
              "$ref": "#/$defs/PeekRegionAnalysis"
            },
            {
              "$ref": "#/$defs/LearnedPulseRegionAnalysis"
            },
            {
              "$ref": "#/$defs/LearnedNoteRegionAnalysis"
            }
          ],
          "title": "Analysis"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "region",
        "analysis",
        "attribution"
      ],
      "title": "audio_region_hypothesesArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_region_query",
    "description": "Read bounded local hypotheses and original-frame projections without reanalysis or an optional model runtime.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "hypotheses": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "view": {
          "default": "summary",
          "enum": [
            "summary",
            "annotations"
          ],
          "title": "View",
          "type": "string"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16384,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "hypotheses"
      ],
      "title": "audio_region_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_region_correct",
    "description": "Compose attributed corrections in explicitly declared crop-local or original-recording coordinates, preserving raw evidence.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AttackHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "attack",
              "title": "Kind",
              "type": "string"
            },
            "source_frame": {
              "title": "Source Frame",
              "type": "integer"
            },
            "strength_relative": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Strength Relative"
            }
          },
          "required": [
            "kind",
            "source_frame",
            "strength_relative"
          ],
          "title": "AttackHypothesis",
          "type": "object"
        },
        "AudioEvidenceSupport": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "analysis_pointer",
                "annotation_id"
              ],
              "title": "Kind",
              "type": "string"
            },
            "reference": {
              "title": "Reference",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "reference"
          ],
          "title": "AudioEvidenceSupport",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisCorrection": {
          "additionalProperties": false,
          "properties": {
            "correction_id": {
              "title": "Correction Id",
              "type": "string"
            },
            "supersedes": {
              "items": {
                "type": "string"
              },
              "title": "Supersedes",
              "type": "array"
            },
            "annotation": {
              "anyOf": [
                {
                  "$ref": "#/$defs/AttackHypothesis"
                },
                {
                  "$ref": "#/$defs/PulseHypothesis"
                },
                {
                  "$ref": "#/$defs/PhraseAnchorHypothesis"
                },
                {
                  "$ref": "#/$defs/NoteHypothesis"
                }
              ],
              "title": "Annotation"
            },
            "support": {
              "items": {
                "$ref": "#/$defs/AudioEvidenceSupport"
              },
              "title": "Support",
              "type": "array"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "correction_id",
            "supersedes",
            "annotation",
            "support",
            "uncertainty"
          ],
          "title": "AudioHypothesisCorrection",
          "type": "object"
        },
        "LocalRegionCorrections": {
          "additionalProperties": false,
          "properties": {
            "coordinate_space": {
              "const": "local_crop_frame",
              "title": "Coordinate Space",
              "type": "string"
            },
            "corrections": {
              "items": {
                "$ref": "#/$defs/AudioHypothesisCorrection"
              },
              "title": "Corrections",
              "type": "array"
            }
          },
          "required": [
            "coordinate_space",
            "corrections"
          ],
          "title": "LocalRegionCorrections",
          "type": "object"
        },
        "NoteHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "note_hypothesis",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Cents"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "midi_note",
            "cents",
            "tuning_ref"
          ],
          "title": "NoteHypothesis",
          "type": "object"
        },
        "OriginalPulseHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "pulse_candidate",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "bpm": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Bpm"
            },
            "lattice_origin": {
              "$ref": "#/$defs/OriginalPulseLatticeOrigin"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "bpm",
            "lattice_origin"
          ],
          "title": "OriginalPulseHypothesis",
          "type": "object"
        },
        "OriginalPulseLatticeOrigin": {
          "additionalProperties": false,
          "properties": {
            "local_estimate_seconds": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Local Estimate Seconds"
            },
            "original_offset_seconds_q": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "local_estimate_seconds",
            "original_offset_seconds_q"
          ],
          "title": "OriginalPulseLatticeOrigin",
          "type": "object"
        },
        "OriginalRegionCorrection": {
          "additionalProperties": false,
          "properties": {
            "correction_id": {
              "title": "Correction Id",
              "type": "string"
            },
            "supersedes": {
              "items": {
                "type": "string"
              },
              "title": "Supersedes",
              "type": "array"
            },
            "annotation": {
              "anyOf": [
                {
                  "$ref": "#/$defs/AttackHypothesis"
                },
                {
                  "$ref": "#/$defs/OriginalPulseHypothesis"
                },
                {
                  "$ref": "#/$defs/PhraseAnchorHypothesis"
                },
                {
                  "$ref": "#/$defs/NoteHypothesis"
                }
              ],
              "title": "Annotation"
            },
            "support": {
              "items": {
                "$ref": "#/$defs/AudioEvidenceSupport"
              },
              "title": "Support",
              "type": "array"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "correction_id",
            "supersedes",
            "annotation",
            "support",
            "uncertainty"
          ],
          "title": "OriginalRegionCorrection",
          "type": "object"
        },
        "OriginalRegionCorrections": {
          "additionalProperties": false,
          "properties": {
            "coordinate_space": {
              "const": "original_source_frame",
              "title": "Coordinate Space",
              "type": "string"
            },
            "corrections": {
              "items": {
                "$ref": "#/$defs/OriginalRegionCorrection"
              },
              "title": "Corrections",
              "type": "array"
            }
          },
          "required": [
            "coordinate_space",
            "corrections"
          ],
          "title": "OriginalRegionCorrections",
          "type": "object"
        },
        "PhraseAnchorHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "phrase_anchor",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "label": {
              "title": "Label",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "label"
          ],
          "title": "PhraseAnchorHypothesis",
          "type": "object"
        },
        "PulseHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "pulse_candidate",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "bpm": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Bpm"
            },
            "source_lattice_origin_seconds": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Source Lattice Origin Seconds"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "bpm",
            "source_lattice_origin_seconds"
          ],
          "title": "PulseHypothesis",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "parent": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "string"
        },
        "batch": {
          "anyOf": [
            {
              "$ref": "#/$defs/LocalRegionCorrections"
            },
            {
              "$ref": "#/$defs/OriginalRegionCorrections"
            }
          ],
          "title": "Batch"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "parent",
        "expected_revision",
        "batch",
        "attribution"
      ],
      "title": "audio_region_correctArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_region_submit",
    "description": "Establish durable worker ownership before long-source capture and run the same public mapped analysis.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSettings": {
          "additionalProperties": false,
          "properties": {
            "bpm_hint": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Hint"
            },
            "beats_per_bar": {
              "title": "Beats Per Bar",
              "type": "integer"
            }
          },
          "required": [
            "bpm_hint",
            "beats_per_bar"
          ],
          "title": "AudioHypothesisSettings",
          "type": "object"
        },
        "AudioModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "beat_this_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioModelDeclaration",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioNoteModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "basic_pitch_onnx_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioNoteModelDeclaration",
          "type": "object"
        },
        "AudioNoteSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "decoder": {
              "enum": [
                "basic_pitch_0_4_0_false_false_v1",
                "basic_pitch_0_4_0_false_false_v2"
              ],
              "title": "Decoder",
              "type": "string"
            },
            "onset_threshold": {
              "const": 0.5,
              "title": "Onset Threshold",
              "type": "number"
            },
            "frame_threshold": {
              "const": 0.3,
              "title": "Frame Threshold",
              "type": "number"
            },
            "min_note_frames": {
              "const": 11,
              "title": "Min Note Frames",
              "type": "integer"
            },
            "energy_tol": {
              "const": 11,
              "title": "Energy Tol",
              "type": "integer"
            },
            "infer_onsets": {
              "const": false,
              "title": "Infer Onsets",
              "type": "boolean"
            },
            "melodia_trick": {
              "const": false,
              "title": "Melodia Trick",
              "type": "boolean"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "downmix",
            "resampler",
            "decoder",
            "onset_threshold",
            "frame_threshold",
            "min_note_frames",
            "energy_tol",
            "infer_onsets",
            "melodia_trick"
          ],
          "title": "AudioNoteSettings",
          "type": "object"
        },
        "AudioPulseSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "postprocessor": {
              "const": "minimal",
              "title": "Postprocessor",
              "type": "string"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "seed": {
              "const": 0,
              "title": "Seed",
              "type": "integer"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "postprocessor",
            "downmix",
            "resampler",
            "seed"
          ],
          "title": "AudioPulseSettings",
          "type": "object"
        },
        "AudioRegionSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioRegionSource",
          "type": "object"
        },
        "CapturedAudioRegion": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "captured",
              "title": "Kind",
              "type": "string"
            },
            "region": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "region"
          ],
          "title": "CapturedAudioRegion",
          "type": "object"
        },
        "InlineAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioNoteModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_onnx_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioNoteModel",
          "type": "object"
        },
        "InlineAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioPulseModel",
          "type": "object"
        },
        "InlineAudioRegion": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/AudioRegionSource"
            }
          },
          "required": [
            "kind",
            "source"
          ],
          "title": "InlineAudioRegion",
          "type": "object"
        },
        "InspectedAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioNoteModel",
          "type": "object"
        },
        "InspectedAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioPulseModel",
          "type": "object"
        },
        "LearnedNoteRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "learned_notes",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "anyOf": [
                {
                  "$ref": "#/$defs/InlineAudioNoteModel"
                },
                {
                  "$ref": "#/$defs/InspectedAudioNoteModel"
                }
              ],
              "title": "Model"
            },
            "settings": {
              "$ref": "#/$defs/AudioNoteSettings"
            }
          },
          "required": [
            "kind",
            "model",
            "settings"
          ],
          "title": "LearnedNoteRegionAnalysis",
          "type": "object"
        },
        "LearnedPulseRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "learned_pulse",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "anyOf": [
                {
                  "$ref": "#/$defs/InlineAudioPulseModel"
                },
                {
                  "$ref": "#/$defs/InspectedAudioPulseModel"
                }
              ],
              "title": "Model"
            },
            "settings": {
              "$ref": "#/$defs/AudioPulseSettings"
            }
          },
          "required": [
            "kind",
            "model",
            "settings"
          ],
          "title": "LearnedPulseRegionAnalysis",
          "type": "object"
        },
        "PeekRegionAnalysis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "peek",
              "title": "Kind",
              "type": "string"
            },
            "settings": {
              "$ref": "#/$defs/AudioHypothesisSettings"
            }
          },
          "required": [
            "kind",
            "settings"
          ],
          "title": "PeekRegionAnalysis",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "region": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioRegion"
            },
            {
              "$ref": "#/$defs/CapturedAudioRegion"
            }
          ],
          "title": "Region"
        },
        "analysis": {
          "anyOf": [
            {
              "$ref": "#/$defs/PeekRegionAnalysis"
            },
            {
              "$ref": "#/$defs/LearnedPulseRegionAnalysis"
            },
            {
              "$ref": "#/$defs/LearnedNoteRegionAnalysis"
            }
          ],
          "title": "Analysis"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "region",
        "analysis",
        "attribution"
      ],
      "title": "audio_region_submitArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_model_inspect",
    "description": "Inspect an explicit optional local model runtime and checkpoint; optional bounded synthetic qualification, no downloads.",
    "inputSchema": {
      "$defs": {
        "AudioModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "beat_this_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioModelDeclaration",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "declaration": {
          "$ref": "#/$defs/AudioModelDeclaration"
        },
        "qualification": {
          "default": "none",
          "enum": [
            "none",
            "synthetic_cpu_v1"
          ],
          "title": "Qualification",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "declaration"
      ],
      "title": "audio_model_inspectArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_pulse_hypotheses",
    "description": "Retain uncertain learned pulses with exact source frames and explicit qualified local model provenance.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        },
        "AudioModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "beat_this_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioModelDeclaration",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioPulseSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "postprocessor": {
              "const": "minimal",
              "title": "Postprocessor",
              "type": "string"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "seed": {
              "const": 0,
              "title": "Seed",
              "type": "integer"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "postprocessor",
            "downmix",
            "resampler",
            "seed"
          ],
          "title": "AudioPulseSettings",
          "type": "object"
        },
        "InlineAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioPulseModel",
          "type": "object"
        },
        "InspectedAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioPulseModel",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "model": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioPulseModel"
            },
            {
              "$ref": "#/$defs/InspectedAudioPulseModel"
            }
          ],
          "title": "Model"
        },
        "settings": {
          "$ref": "#/$defs/AudioPulseSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "model",
        "settings",
        "attribution"
      ],
      "title": "audio_pulse_hypothesesArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_pulse_submit",
    "description": "Submit the same optional learned-pulse primitive with inherited execution ownership and cooperative cancellation.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        },
        "AudioModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "beat_this_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioModelDeclaration",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioPulseSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "postprocessor": {
              "const": "minimal",
              "title": "Postprocessor",
              "type": "string"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "seed": {
              "const": 0,
              "title": "Seed",
              "type": "integer"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "postprocessor",
            "downmix",
            "resampler",
            "seed"
          ],
          "title": "AudioPulseSettings",
          "type": "object"
        },
        "InlineAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioPulseModel",
          "type": "object"
        },
        "InspectedAudioPulseModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioPulseModel",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "model": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioPulseModel"
            },
            {
              "$ref": "#/$defs/InspectedAudioPulseModel"
            }
          ],
          "title": "Model"
        },
        "settings": {
          "$ref": "#/$defs/AudioPulseSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "model",
        "settings",
        "attribution"
      ],
      "title": "audio_pulse_submitArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_note_model_inspect",
    "description": "Inspect an explicit optional known-weight ONNX CPU runtime; bounded synthetic qualification, no downloads.",
    "inputSchema": {
      "$defs": {
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioNoteModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "basic_pitch_onnx_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioNoteModelDeclaration",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "declaration": {
          "$ref": "#/$defs/AudioNoteModelDeclaration"
        },
        "qualification": {
          "default": "none",
          "enum": [
            "none",
            "synthetic_onnx_cpu_v1"
          ],
          "title": "Qualification",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "declaration"
      ],
      "title": "audio_note_model_inspectArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_note_hypotheses",
    "description": "Retain uncertain note candidates with complete window tensors, source-frame envelopes and explicit model provenance.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioNoteModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "basic_pitch_onnx_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioNoteModelDeclaration",
          "type": "object"
        },
        "AudioNoteSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "decoder": {
              "enum": [
                "basic_pitch_0_4_0_false_false_v1",
                "basic_pitch_0_4_0_false_false_v2"
              ],
              "title": "Decoder",
              "type": "string"
            },
            "onset_threshold": {
              "const": 0.5,
              "title": "Onset Threshold",
              "type": "number"
            },
            "frame_threshold": {
              "const": 0.3,
              "title": "Frame Threshold",
              "type": "number"
            },
            "min_note_frames": {
              "const": 11,
              "title": "Min Note Frames",
              "type": "integer"
            },
            "energy_tol": {
              "const": 11,
              "title": "Energy Tol",
              "type": "integer"
            },
            "infer_onsets": {
              "const": false,
              "title": "Infer Onsets",
              "type": "boolean"
            },
            "melodia_trick": {
              "const": false,
              "title": "Melodia Trick",
              "type": "boolean"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "downmix",
            "resampler",
            "decoder",
            "onset_threshold",
            "frame_threshold",
            "min_note_frames",
            "energy_tol",
            "infer_onsets",
            "melodia_trick"
          ],
          "title": "AudioNoteSettings",
          "type": "object"
        },
        "InlineAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioNoteModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_onnx_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioNoteModel",
          "type": "object"
        },
        "InspectedAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioNoteModel",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "model": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioNoteModel"
            },
            {
              "$ref": "#/$defs/InspectedAudioNoteModel"
            }
          ],
          "title": "Model"
        },
        "settings": {
          "$ref": "#/$defs/AudioNoteSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "model",
        "settings",
        "attribution"
      ],
      "title": "audio_note_hypothesesArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_note_submit",
    "description": "Run the same optional note primitive with inherited execution ownership and revision-checked cancellation.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        },
        "AudioModelFile": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            }
          },
          "required": [
            "path",
            "sha256"
          ],
          "title": "AudioModelFile",
          "type": "object"
        },
        "AudioNoteModelDeclaration": {
          "additionalProperties": false,
          "properties": {
            "adapter": {
              "const": "basic_pitch_onnx_cpu_v1",
              "title": "Adapter",
              "type": "string"
            },
            "executable": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "weights": {
              "$ref": "#/$defs/AudioModelFile"
            },
            "expected_profile": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Profile"
            }
          },
          "required": [
            "adapter",
            "executable",
            "weights",
            "expected_profile"
          ],
          "title": "AudioNoteModelDeclaration",
          "type": "object"
        },
        "AudioNoteSettings": {
          "additionalProperties": false,
          "properties": {
            "device": {
              "const": "cpu",
              "title": "Device",
              "type": "string"
            },
            "dtype": {
              "const": "float32",
              "title": "Dtype",
              "type": "string"
            },
            "threads": {
              "const": 1,
              "title": "Threads",
              "type": "integer"
            },
            "downmix": {
              "const": "arithmetic_mean",
              "title": "Downmix",
              "type": "string"
            },
            "resampler": {
              "const": "soxr_hq",
              "title": "Resampler",
              "type": "string"
            },
            "decoder": {
              "enum": [
                "basic_pitch_0_4_0_false_false_v1",
                "basic_pitch_0_4_0_false_false_v2"
              ],
              "title": "Decoder",
              "type": "string"
            },
            "onset_threshold": {
              "const": 0.5,
              "title": "Onset Threshold",
              "type": "number"
            },
            "frame_threshold": {
              "const": 0.3,
              "title": "Frame Threshold",
              "type": "number"
            },
            "min_note_frames": {
              "const": 11,
              "title": "Min Note Frames",
              "type": "integer"
            },
            "energy_tol": {
              "const": 11,
              "title": "Energy Tol",
              "type": "integer"
            },
            "infer_onsets": {
              "const": false,
              "title": "Infer Onsets",
              "type": "boolean"
            },
            "melodia_trick": {
              "const": false,
              "title": "Melodia Trick",
              "type": "boolean"
            }
          },
          "required": [
            "device",
            "dtype",
            "threads",
            "downmix",
            "resampler",
            "decoder",
            "onset_threshold",
            "frame_threshold",
            "min_note_frames",
            "energy_tol",
            "infer_onsets",
            "melodia_trick"
          ],
          "title": "AudioNoteSettings",
          "type": "object"
        },
        "InlineAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inline",
              "title": "Kind",
              "type": "string"
            },
            "declaration": {
              "$ref": "#/$defs/AudioNoteModelDeclaration"
            },
            "qualification": {
              "const": "synthetic_onnx_cpu_v1",
              "title": "Qualification",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "declaration",
            "qualification"
          ],
          "title": "InlineAudioNoteModel",
          "type": "object"
        },
        "InspectedAudioNoteModel": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "inspected",
              "title": "Kind",
              "type": "string"
            },
            "model": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "model"
          ],
          "title": "InspectedAudioNoteModel",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "model": {
          "anyOf": [
            {
              "$ref": "#/$defs/InlineAudioNoteModel"
            },
            {
              "$ref": "#/$defs/InspectedAudioNoteModel"
            }
          ],
          "title": "Model"
        },
        "settings": {
          "$ref": "#/$defs/AudioNoteSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "model",
        "settings",
        "attribution"
      ],
      "title": "audio_note_submitArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_hypothesis_correct",
    "description": "Attributed immutable corrections retaining original hypotheses and uncertainty.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AttackHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "attack",
              "title": "Kind",
              "type": "string"
            },
            "source_frame": {
              "title": "Source Frame",
              "type": "integer"
            },
            "strength_relative": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Strength Relative"
            }
          },
          "required": [
            "kind",
            "source_frame",
            "strength_relative"
          ],
          "title": "AttackHypothesis",
          "type": "object"
        },
        "AudioEvidenceSupport": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "analysis_pointer",
                "annotation_id"
              ],
              "title": "Kind",
              "type": "string"
            },
            "reference": {
              "title": "Reference",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "reference"
          ],
          "title": "AudioEvidenceSupport",
          "type": "object"
        },
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisCorrection": {
          "additionalProperties": false,
          "properties": {
            "correction_id": {
              "title": "Correction Id",
              "type": "string"
            },
            "supersedes": {
              "items": {
                "type": "string"
              },
              "title": "Supersedes",
              "type": "array"
            },
            "annotation": {
              "anyOf": [
                {
                  "$ref": "#/$defs/AttackHypothesis"
                },
                {
                  "$ref": "#/$defs/PulseHypothesis"
                },
                {
                  "$ref": "#/$defs/PhraseAnchorHypothesis"
                },
                {
                  "$ref": "#/$defs/NoteHypothesis"
                }
              ],
              "title": "Annotation"
            },
            "support": {
              "items": {
                "$ref": "#/$defs/AudioEvidenceSupport"
              },
              "title": "Support",
              "type": "array"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "correction_id",
            "supersedes",
            "annotation",
            "support",
            "uncertainty"
          ],
          "title": "AudioHypothesisCorrection",
          "type": "object"
        },
        "NoteHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "note_hypothesis",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "midi_note": {
              "title": "Midi Note",
              "type": "integer"
            },
            "cents": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Cents"
            },
            "tuning_ref": {
              "title": "Tuning Ref",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "midi_note",
            "cents",
            "tuning_ref"
          ],
          "title": "NoteHypothesis",
          "type": "object"
        },
        "PhraseAnchorHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "phrase_anchor",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "label": {
              "title": "Label",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "label"
          ],
          "title": "PhraseAnchorHypothesis",
          "type": "object"
        },
        "PulseHypothesis": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "pulse_candidate",
              "title": "Kind",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "end_frame_exclusive": {
              "title": "End Frame Exclusive",
              "type": "integer"
            },
            "bpm": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Bpm"
            },
            "source_lattice_origin_seconds": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Source Lattice Origin Seconds"
            }
          },
          "required": [
            "kind",
            "start_frame",
            "end_frame_exclusive",
            "bpm",
            "source_lattice_origin_seconds"
          ],
          "title": "PulseHypothesis",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "parent": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "string"
        },
        "corrections": {
          "items": {
            "$ref": "#/$defs/AudioHypothesisCorrection"
          },
          "title": "Corrections",
          "type": "array"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "parent",
        "expected_revision",
        "corrections",
        "attribution"
      ],
      "title": "audio_hypothesis_correctArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_hypothesis_query",
    "description": "Bounded revision-bound audio evidence, annotation and correction retrieval.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "hypotheses": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "view": {
          "default": "summary",
          "enum": [
            "summary",
            "annotations",
            "history"
          ],
          "title": "View",
          "type": "string"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16384,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "hypotheses"
      ],
      "title": "audio_hypothesis_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audio_hypothesis_submit",
    "description": "Snapshot local audio and submit the same primitive to an optional owned POSIX worker.",
    "inputSchema": {
      "$defs": {
        "AudioHypothesisAttribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "AudioHypothesisAttribution",
          "type": "object"
        },
        "AudioHypothesisSettings": {
          "additionalProperties": false,
          "properties": {
            "bpm_hint": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bpm Hint"
            },
            "beats_per_bar": {
              "title": "Beats Per Bar",
              "type": "integer"
            }
          },
          "required": [
            "bpm_hint",
            "beats_per_bar"
          ],
          "title": "AudioHypothesisSettings",
          "type": "object"
        },
        "AudioHypothesisSource": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "title": "Path",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "start_frame": {
              "title": "Start Frame",
              "type": "integer"
            },
            "frames": {
              "title": "Frames",
              "type": "integer"
            },
            "source_origin": {
              "enum": [
                "independently_acquired",
                "user_recording"
              ],
              "title": "Source Origin",
              "type": "string"
            }
          },
          "required": [
            "path",
            "expected_sha256",
            "start_frame",
            "frames",
            "source_origin"
          ],
          "title": "AudioHypothesisSource",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AudioHypothesisSource"
        },
        "settings": {
          "$ref": "#/$defs/AudioHypothesisSettings"
        },
        "attribution": {
          "$ref": "#/$defs/AudioHypothesisAttribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "source",
        "settings",
        "attribution"
      ],
      "title": "audio_hypothesis_submitArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "job_status",
    "description": "Inspect an analysis job and reconcile a released execution lease without retry.",
    "inputSchema": {
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "job_id": {
          "title": "Job Id",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "job_id"
      ],
      "title": "job_statusArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "job_cancel",
    "description": "Request cancellation at the next analysis boundary using an exact job revision.",
    "inputSchema": {
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "job_id": {
          "title": "Job Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "job_id",
        "expected_revision"
      ],
      "title": "job_cancelArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "curve_transform",
    "description": "File-only control curves; native execution separately gated.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "CurveOperation": {
          "additionalProperties": false,
          "properties": {
            "op": {
              "enum": [
                "create",
                "shift",
                "scale_time",
                "scale_value",
                "offset",
                "smooth",
                "simplify",
                "splice"
              ],
              "title": "Op",
              "type": "string"
            },
            "points": {
              "items": {
                "$ref": "#/$defs/CurvePoint"
              },
              "title": "Points",
              "type": "array"
            },
            "space": {
              "enum": [
                "arrangement_qn",
                "clip_qn",
                "phrase_qn",
                "note_relative_qn"
              ],
              "title": "Space",
              "type": "string"
            },
            "interpolation": {
              "enum": [
                "linear",
                "step"
              ],
              "title": "Interpolation",
              "type": "string"
            },
            "amount": {
              "anyOf": [
                {
                  "$ref": "#/$defs/RationalTime"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Amount"
            },
            "factor": {
              "anyOf": [
                {
                  "$ref": "#/$defs/RationalTime"
                },
                {
                  "type": "number"
                }
              ],
              "title": "Factor"
            },
            "origin": {
              "$ref": "#/$defs/RationalTime"
            },
            "window": {
              "title": "Window",
              "type": "integer"
            },
            "tolerance": {
              "title": "Tolerance",
              "type": "number"
            },
            "start": {
              "$ref": "#/$defs/RationalTime"
            },
            "end": {
              "$ref": "#/$defs/RationalTime"
            }
          },
          "title": "CurveOperation",
          "type": "object"
        },
        "CurvePoint": {
          "additionalProperties": false,
          "properties": {
            "time": {
              "$ref": "#/$defs/RationalTime"
            },
            "value": {
              "title": "Value",
              "type": "number"
            },
            "order": {
              "title": "Order",
              "type": "integer"
            }
          },
          "required": [
            "time",
            "value",
            "order"
          ],
          "title": "CurvePoint",
          "type": "object"
        },
        "CurveTarget": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "cc",
                "pitch_bend",
                "channel_pressure",
                "per_note_pitch",
                "per_note_pressure",
                "per_note_slide",
                "host_parameter",
                "macro"
              ],
              "title": "Kind",
              "type": "string"
            },
            "target_id": {
              "title": "Target Id",
              "type": "string"
            },
            "scope": {
              "enum": [
                "channel",
                "note",
                "instance"
              ],
              "title": "Scope",
              "type": "string"
            },
            "unit": {
              "title": "Unit",
              "type": "string"
            },
            "value_min": {
              "title": "Value Min",
              "type": "number"
            },
            "value_max": {
              "title": "Value Max",
              "type": "number"
            },
            "quantized": {
              "title": "Quantized",
              "type": "boolean"
            },
            "values": {
              "items": {
                "type": "number"
              },
              "title": "Values",
              "type": "array"
            },
            "ownership": {
              "enum": [
                "none",
                "host_automation",
                "macro",
                "remote",
                "unknown"
              ],
              "title": "Ownership",
              "type": "string"
            },
            "value_mode": {
              "enum": [
                "absolute",
                "additive",
                "multiplicative"
              ],
              "title": "Value Mode",
              "type": "string"
            },
            "channel": {
              "title": "Channel",
              "type": "integer"
            },
            "note_id": {
              "title": "Note Id",
              "type": "string"
            },
            "resize_policy": {
              "enum": [
                "stretch_with_gate",
                "preserve_fraction",
                "crop",
                "preserve_ms"
              ],
              "title": "Resize Policy",
              "type": "string"
            },
            "parameter_layout_sha256": {
              "title": "Parameter Layout Sha256",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "target_id",
            "scope",
            "unit",
            "value_min",
            "value_max",
            "quantized",
            "values",
            "ownership",
            "value_mode"
          ],
          "title": "CurveTarget",
          "type": "object"
        },
        "RationalTime": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "RationalTime",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "operations": {
          "items": {
            "$ref": "#/$defs/CurveOperation"
          },
          "title": "Operations",
          "type": "array"
        },
        "curve": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "target": {
          "anyOf": [
            {
              "$ref": "#/$defs/CurveTarget"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "context": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "conflict_policy": {
          "default": "reject_existing",
          "enum": [
            "reject_existing",
            "plan_override"
          ],
          "title": "Conflict Policy",
          "type": "string"
        },
        "allow_discontinuity_change": {
          "default": false,
          "title": "Allow Discontinuity Change",
          "type": "boolean"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "operations"
      ],
      "title": "curve_transformArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "musical_time",
    "description": "Exact declared step-tempo clocks, meter displays and independent local cycles.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "FrameQuantization": {
          "additionalProperties": false,
          "properties": {
            "policy": {
              "const": "nearest_half_away_from_zero",
              "title": "Policy",
              "type": "string"
            },
            "max_error_frames": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "policy",
            "max_error_frames"
          ],
          "title": "FrameQuantization",
          "type": "object"
        },
        "HostOrigin": {
          "additionalProperties": false,
          "properties": {
            "arrangement_qn": {
              "$ref": "#/$defs/Rational"
            },
            "host_seconds": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "arrangement_qn",
            "host_seconds"
          ],
          "title": "HostOrigin",
          "type": "object"
        },
        "LocalCycle": {
          "additionalProperties": false,
          "properties": {
            "cycle_id": {
              "title": "Cycle Id",
              "type": "string"
            },
            "origin_qn": {
              "$ref": "#/$defs/Rational"
            },
            "length_qn": {
              "$ref": "#/$defs/Rational"
            },
            "annotation": {
              "title": "Annotation",
              "type": "string"
            }
          },
          "required": [
            "cycle_id",
            "origin_qn",
            "length_qn",
            "annotation"
          ],
          "title": "LocalCycle",
          "type": "object"
        },
        "MeterSegment": {
          "additionalProperties": false,
          "properties": {
            "at_qn": {
              "$ref": "#/$defs/Rational"
            },
            "numerator": {
              "title": "Numerator",
              "type": "integer"
            },
            "denominator": {
              "title": "Denominator",
              "type": "integer"
            },
            "bar_number": {
              "title": "Bar Number",
              "type": "integer"
            },
            "partial_previous_bar": {
              "title": "Partial Previous Bar",
              "type": "boolean"
            }
          },
          "required": [
            "at_qn",
            "numerator",
            "denominator",
            "bar_number",
            "partial_previous_bar"
          ],
          "title": "MeterSegment",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "RenderOrigin": {
          "additionalProperties": false,
          "properties": {
            "audio": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "host_seconds": {
              "$ref": "#/$defs/Rational"
            },
            "frame": {
              "title": "Frame",
              "type": "integer"
            },
            "sample_rate": {
              "title": "Sample Rate",
              "type": "integer"
            }
          },
          "required": [
            "audio",
            "host_seconds",
            "frame",
            "sample_rate"
          ],
          "title": "RenderOrigin",
          "type": "object"
        },
        "TempoStep": {
          "additionalProperties": false,
          "properties": {
            "at_qn": {
              "$ref": "#/$defs/Rational"
            },
            "bpm": {
              "$ref": "#/$defs/Rational"
            },
            "interpolation": {
              "const": "step",
              "title": "Interpolation",
              "type": "string"
            }
          },
          "required": [
            "at_qn",
            "bpm",
            "interpolation"
          ],
          "title": "TempoStep",
          "type": "object"
        },
        "TimeContext": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.time-context/v1",
              "title": "Schema",
              "type": "string"
            },
            "context_id": {
              "title": "Context Id",
              "type": "string"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "source": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "schema",
            "context_id",
            "attribution"
          ],
          "title": "TimeContext",
          "type": "object"
        },
        "TimeDomain": {
          "additionalProperties": false,
          "properties": {
            "start": {
              "$ref": "#/$defs/Rational"
            },
            "end": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "start",
            "end"
          ],
          "title": "TimeDomain",
          "type": "object"
        },
        "TimeMapDefinition": {
          "additionalProperties": false,
          "properties": {
            "source_context": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "$ref": "#/$defs/TimeContext"
                }
              ],
              "title": "Source Context"
            },
            "domain_qn": {
              "$ref": "#/$defs/TimeDomain"
            },
            "tempo": {
              "items": {
                "$ref": "#/$defs/TempoStep"
              },
              "title": "Tempo",
              "type": "array"
            },
            "host_origin": {
              "$ref": "#/$defs/HostOrigin"
            },
            "render_origin": {
              "anyOf": [
                {
                  "$ref": "#/$defs/RenderOrigin"
                },
                {
                  "type": "null"
                }
              ]
            },
            "meter": {
              "items": {
                "$ref": "#/$defs/MeterSegment"
              },
              "title": "Meter",
              "type": "array"
            },
            "bar_one_qn": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "null"
                }
              ]
            },
            "cycles": {
              "items": {
                "$ref": "#/$defs/LocalCycle"
              },
              "title": "Cycles",
              "type": "array"
            }
          },
          "required": [
            "source_context",
            "domain_qn",
            "tempo",
            "host_origin"
          ],
          "title": "TimeMapDefinition",
          "type": "object"
        },
        "TimePosition": {
          "additionalProperties": false,
          "properties": {
            "space": {
              "enum": [
                "arrangement_qn",
                "host_seconds",
                "render_frame"
              ],
              "title": "Space",
              "type": "string"
            },
            "value": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Rational"
                },
                {
                  "type": "integer"
                }
              ],
              "title": "Value"
            }
          },
          "required": [
            "space",
            "value"
          ],
          "title": "TimePosition",
          "type": "object"
        }
      },
      "properties": {
        "operation": {
          "enum": [
            "create",
            "convert",
            "query"
          ],
          "title": "Operation",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Request Id"
        },
        "definition": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimeMapDefinition"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "time_map": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "positions": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/TimePosition"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Positions"
        },
        "target_space": {
          "anyOf": [
            {
              "enum": [
                "arrangement_qn",
                "host_seconds",
                "render_frame",
                "bar_display"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Space"
        },
        "quantization": {
          "anyOf": [
            {
              "$ref": "#/$defs/FrameQuantization"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "section": {
          "default": "summary",
          "enum": [
            "summary",
            "tempo",
            "meter",
            "cycles"
          ],
          "title": "Section",
          "type": "string"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "limit": {
          "default": 100,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "operation",
        "store_root"
      ],
      "title": "musical_timeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_create",
    "description": "Immutable musical context with explicit clocks, authored anchors and occurrence identities; no host required.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "Attribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "Attribution",
          "type": "object"
        },
        "ClockPosition": {
          "additionalProperties": false,
          "properties": {
            "clock_id": {
              "title": "Clock Id",
              "type": "string"
            },
            "space": {
              "enum": [
                "source_frame",
                "arrangement_qn",
                "host_seconds",
                "render_frame"
              ],
              "title": "Space",
              "type": "string"
            },
            "value": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "$ref": "#/$defs/Rational"
                }
              ],
              "title": "Value"
            }
          },
          "required": [
            "clock_id",
            "space",
            "value"
          ],
          "title": "ClockPosition",
          "type": "object"
        },
        "MusicalAnchor": {
          "additionalProperties": false,
          "properties": {
            "anchor_id": {
              "title": "Anchor Id",
              "type": "string"
            },
            "kind": {
              "enum": [
                "pulse",
                "bar_one",
                "phrase_start",
                "onset",
                "other"
              ],
              "title": "Kind",
              "type": "string"
            },
            "label": {
              "title": "Label",
              "type": "string"
            },
            "position": {
              "$ref": "#/$defs/ClockPosition"
            },
            "attribution": {
              "$ref": "#/$defs/Attribution"
            }
          },
          "required": [
            "anchor_id",
            "kind",
            "label",
            "position",
            "attribution"
          ],
          "title": "MusicalAnchor",
          "type": "object"
        },
        "MusicalContextDefinition": {
          "additionalProperties": false,
          "properties": {
            "context_id": {
              "title": "Context Id",
              "type": "string"
            },
            "title": {
              "title": "Title",
              "type": "string"
            },
            "attribution": {
              "$ref": "#/$defs/Attribution"
            },
            "sources": {
              "items": {
                "$ref": "#/$defs/SourceClock"
              },
              "title": "Sources",
              "type": "array"
            },
            "timelines": {
              "items": {
                "$ref": "#/$defs/TimelineClock"
              },
              "title": "Timelines",
              "type": "array"
            },
            "occurrences": {
              "items": {
                "$ref": "#/$defs/Occurrence"
              },
              "title": "Occurrences",
              "type": "array"
            },
            "anchors": {
              "items": {
                "$ref": "#/$defs/MusicalAnchor"
              },
              "title": "Anchors",
              "type": "array"
            },
            "materials": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Materials",
              "type": "array"
            }
          },
          "required": [
            "context_id",
            "title",
            "attribution",
            "sources",
            "timelines",
            "occurrences",
            "anchors",
            "materials"
          ],
          "title": "MusicalContextDefinition",
          "type": "object"
        },
        "Occurrence": {
          "additionalProperties": false,
          "properties": {
            "occurrence_id": {
              "title": "Occurrence Id",
              "type": "string"
            },
            "source_clock_id": {
              "title": "Source Clock Id",
              "type": "string"
            },
            "timeline_clock_id": {
              "title": "Timeline Clock Id",
              "type": "string"
            },
            "source_span_frames": {
              "items": {
                "type": "integer"
              },
              "title": "Source Span Frames",
              "type": "array"
            },
            "timeline_span_qn": {
              "items": {
                "$ref": "#/$defs/Rational"
              },
              "title": "Timeline Span Qn",
              "type": "array"
            }
          },
          "required": [
            "occurrence_id",
            "source_clock_id",
            "timeline_clock_id",
            "source_span_frames",
            "timeline_span_qn"
          ],
          "title": "Occurrence",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "SourceClock": {
          "additionalProperties": false,
          "properties": {
            "clock_id": {
              "title": "Clock Id",
              "type": "string"
            },
            "region": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "clock_id",
            "region"
          ],
          "title": "SourceClock",
          "type": "object"
        },
        "TimelineClock": {
          "additionalProperties": false,
          "properties": {
            "clock_id": {
              "title": "Clock Id",
              "type": "string"
            },
            "time_map": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "clock_id",
            "time_map"
          ],
          "title": "TimelineClock",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "definition": {
          "$ref": "#/$defs/MusicalContextDefinition"
        },
        "parent": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "store_root",
        "request_id",
        "definition"
      ],
      "title": "context_createArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_query",
    "description": "Bounded pages of an exact musical context revision.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "section": {
          "default": "summary",
          "enum": [
            "summary",
            "sources",
            "timelines",
            "occurrences",
            "anchors",
            "materials",
            "bindings"
          ],
          "title": "Section",
          "type": "string"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "context"
      ],
      "title": "context_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_resolve",
    "description": "Resolve an internal anchor or explicit position through a named occurrence; ambiguous mappings are refused.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ClockPosition": {
          "additionalProperties": false,
          "properties": {
            "clock_id": {
              "title": "Clock Id",
              "type": "string"
            },
            "space": {
              "enum": [
                "source_frame",
                "arrangement_qn",
                "host_seconds",
                "render_frame"
              ],
              "title": "Space",
              "type": "string"
            },
            "value": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "$ref": "#/$defs/Rational"
                }
              ],
              "title": "Value"
            }
          },
          "required": [
            "clock_id",
            "space",
            "value"
          ],
          "title": "ClockPosition",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "target_clock_id": {
          "title": "Target Clock Id",
          "type": "string"
        },
        "target_space": {
          "enum": [
            "source_frame",
            "arrangement_qn",
            "host_seconds",
            "render_frame"
          ],
          "title": "Target Space",
          "type": "string"
        },
        "position": {
          "anyOf": [
            {
              "$ref": "#/$defs/ClockPosition"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "anchor_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Anchor Id"
        },
        "occurrence_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Occurrence Id"
        }
      },
      "required": [
        "store_root",
        "context",
        "target_clock_id",
        "target_space"
      ],
      "title": "context_resolveArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_render",
    "description": "Exact original-rate PCM passages and repetitions from declared occurrences; no implicit DSP.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "occurrence_ids": {
          "items": {
            "type": "string"
          },
          "title": "Occurrence Ids",
          "type": "array"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "context",
        "occurrence_ids"
      ],
      "title": "practice_renderArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_compare",
    "description": "Bind a baseline and alternatives to a question; measurements and listening remain separate.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "baseline": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Variants",
          "type": "array"
        },
        "question": {
          "title": "Question",
          "type": "string"
        },
        "allow_duration_mismatch": {
          "default": false,
          "title": "Allow Duration Mismatch",
          "type": "boolean"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "baseline",
        "variants",
        "question"
      ],
      "title": "practice_compareArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_feedback",
    "description": "Attributed, exact-render and interval-bound feedback without inferred listening or preferences.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "comparison": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "render": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "interval_frames": {
          "items": {
            "type": "integer"
          },
          "title": "Interval Frames",
          "type": "array"
        },
        "actor": {
          "title": "Actor",
          "type": "string"
        },
        "actor_kind": {
          "enum": [
            "human",
            "agent"
          ],
          "title": "Actor Kind",
          "type": "string"
        },
        "note": {
          "title": "Note",
          "type": "string"
        },
        "decision": {
          "anyOf": [
            {
              "enum": [
                "keep",
                "revise",
                "reject",
                "no_addition"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Decision"
        },
        "preview": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "store_root",
        "request_id",
        "comparison",
        "render",
        "interval_frames",
        "actor",
        "actor_kind",
        "note"
      ],
      "title": "practice_feedbackArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_query",
    "description": "Verify retained practice evidence and read bounded render, comparison or feedback records.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "artifact": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "section": {
          "default": "summary",
          "enum": [
            "summary",
            "mappings"
          ],
          "title": "Section",
          "type": "string"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "limit": {
          "default": 32,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "artifact"
      ],
      "title": "practice_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "interpretation_create",
    "description": "Retain source-bound candidate selections, authored claims or unresolved questions without changing analysis or clocks.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "Attribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "Attribution",
          "type": "object"
        },
        "InterpretationEvidence": {
          "additionalProperties": false,
          "properties": {
            "hypotheses": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "expected_revision": {
              "title": "Expected Revision",
              "type": "string"
            },
            "annotation_id": {
              "title": "Annotation Id",
              "type": "string"
            }
          },
          "required": [
            "hypotheses",
            "expected_revision",
            "annotation_id"
          ],
          "title": "InterpretationEvidence",
          "type": "object"
        },
        "PointClaim": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "onset",
                "bar_one",
                "phrase_start"
              ],
              "title": "Kind",
              "type": "string"
            },
            "status": {
              "enum": [
                "selected",
                "authored"
              ],
              "title": "Status",
              "type": "string"
            },
            "source_frame_q": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "kind",
            "status",
            "source_frame_q"
          ],
          "title": "PointClaim",
          "type": "object"
        },
        "PulseClaim": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "pulse",
              "title": "Kind",
              "type": "string"
            },
            "status": {
              "enum": [
                "selected",
                "authored"
              ],
              "title": "Status",
              "type": "string"
            },
            "bpm": {
              "title": "Bpm",
              "type": "number"
            },
            "interval_frames": {
              "items": {
                "type": "integer"
              },
              "title": "Interval Frames",
              "type": "array"
            }
          },
          "required": [
            "kind",
            "status",
            "bpm",
            "interval_frames"
          ],
          "title": "PulseClaim",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        },
        "UnresolvedClaim": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "onset",
                "pulse",
                "bar_one",
                "phrase_start"
              ],
              "title": "Kind",
              "type": "string"
            },
            "status": {
              "const": "unresolved",
              "title": "Status",
              "type": "string"
            },
            "interval_frames": {
              "items": {
                "type": "integer"
              },
              "title": "Interval Frames",
              "type": "array"
            }
          },
          "required": [
            "kind",
            "status",
            "interval_frames"
          ],
          "title": "UnresolvedClaim",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "source_clock_id": {
          "title": "Source Clock Id",
          "type": "string"
        },
        "claim": {
          "anyOf": [
            {
              "$ref": "#/$defs/PointClaim"
            },
            {
              "$ref": "#/$defs/PulseClaim"
            },
            {
              "$ref": "#/$defs/UnresolvedClaim"
            }
          ],
          "title": "Claim"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        },
        "evidence": {
          "anyOf": [
            {
              "$ref": "#/$defs/InterpretationEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "store_root",
        "request_id",
        "context",
        "source_clock_id",
        "claim",
        "attribution"
      ],
      "title": "interpretation_createArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "interpretation_query",
    "description": "Revalidate exact evidence and original source coordinates for a musical interpretation.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "interpretation": {
          "$ref": "#/$defs/ArtifactHandle"
        }
      },
      "required": [
        "store_root",
        "interpretation"
      ],
      "title": "interpretation_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_bind_interpretation",
    "description": "Publish an immutable v2 context with a typed selection or exact point anchor; preserve v1 parents.",
    "inputSchema": {
      "$defs": {
        "AnchorBinding": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "anchor",
              "title": "Kind",
              "type": "string"
            },
            "binding_id": {
              "title": "Binding Id",
              "type": "string"
            },
            "anchor_id": {
              "title": "Anchor Id",
              "type": "string"
            },
            "label": {
              "title": "Label",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "binding_id",
            "anchor_id",
            "label"
          ],
          "title": "AnchorBinding",
          "type": "object"
        },
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "Attribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "Attribution",
          "type": "object"
        },
        "SelectionBinding": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "selection",
              "title": "Kind",
              "type": "string"
            },
            "binding_id": {
              "title": "Binding Id",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "binding_id"
          ],
          "title": "SelectionBinding",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "interpretation": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "binding": {
          "anyOf": [
            {
              "$ref": "#/$defs/SelectionBinding"
            },
            {
              "$ref": "#/$defs/AnchorBinding"
            }
          ],
          "title": "Binding"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "context",
        "interpretation",
        "binding",
        "attribution"
      ],
      "title": "context_bind_interpretationArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_edit",
    "description": "Apply explicit source slips, timeline shifts or anchor rebindings with locks and immutable preservation receipts.",
    "inputSchema": {
      "$defs": {
        "AnchorRebind": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "anchor_rebind",
              "title": "Kind",
              "type": "string"
            },
            "anchor_id": {
              "title": "Anchor Id",
              "type": "string"
            },
            "interpretation": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "binding_id": {
              "title": "Binding Id",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "anchor_id",
            "interpretation",
            "binding_id"
          ],
          "title": "AnchorRebind",
          "type": "object"
        },
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "Attribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "Attribution",
          "type": "object"
        },
        "ContextLock": {
          "additionalProperties": false,
          "properties": {
            "section": {
              "enum": [
                "occurrences",
                "anchors"
              ],
              "title": "Section",
              "type": "string"
            },
            "object_id": {
              "title": "Object Id",
              "type": "string"
            },
            "fields": {
              "items": {
                "type": "string"
              },
              "title": "Fields",
              "type": "array"
            }
          },
          "required": [
            "section",
            "object_id",
            "fields"
          ],
          "title": "ContextLock",
          "type": "object"
        },
        "OccurrenceShift": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "occurrence_shift_timeline",
              "title": "Kind",
              "type": "string"
            },
            "occurrence_ids": {
              "items": {
                "type": "string"
              },
              "title": "Occurrence Ids",
              "type": "array"
            },
            "delta_qn": {
              "$ref": "#/$defs/Rational"
            }
          },
          "required": [
            "kind",
            "occurrence_ids",
            "delta_qn"
          ],
          "title": "OccurrenceShift",
          "type": "object"
        },
        "OccurrenceSlip": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "occurrence_slip_source",
              "title": "Kind",
              "type": "string"
            },
            "occurrence_ids": {
              "items": {
                "type": "string"
              },
              "title": "Occurrence Ids",
              "type": "array"
            },
            "delta_frames": {
              "title": "Delta Frames",
              "type": "integer"
            }
          },
          "required": [
            "kind",
            "occurrence_ids",
            "delta_frames"
          ],
          "title": "OccurrenceSlip",
          "type": "object"
        },
        "Rational": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "Rational",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "context": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "operations": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/OccurrenceSlip"
              },
              {
                "$ref": "#/$defs/OccurrenceShift"
              },
              {
                "$ref": "#/$defs/AnchorRebind"
              }
            ]
          },
          "title": "Operations",
          "type": "array"
        },
        "locks": {
          "items": {
            "$ref": "#/$defs/ContextLock"
          },
          "title": "Locks",
          "type": "array"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "context",
        "operations",
        "locks",
        "attribution"
      ],
      "title": "context_editArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "context_edit_query",
    "description": "Revalidate exact parent/child changes, protected fields and declared renderability without rendering audio.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "edit": {
          "$ref": "#/$defs/ArtifactHandle"
        }
      },
      "required": [
        "store_root",
        "edit"
      ],
      "title": "context_edit_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_compare_revisions",
    "description": "Compare immutable context edits with their exact baseline, verified edit ancestry and explicit output correspondence.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "OccurrencePair": {
          "additionalProperties": false,
          "properties": {
            "baseline_occurrence_id": {
              "title": "Baseline Occurrence Id",
              "type": "string"
            },
            "variant_occurrence_id": {
              "title": "Variant Occurrence Id",
              "type": "string"
            },
            "baseline_interval_frames": {
              "items": {
                "type": "integer"
              },
              "title": "Baseline Interval Frames",
              "type": "array"
            },
            "variant_interval_frames": {
              "items": {
                "type": "integer"
              },
              "title": "Variant Interval Frames",
              "type": "array"
            }
          },
          "required": [
            "baseline_occurrence_id",
            "variant_occurrence_id",
            "baseline_interval_frames",
            "variant_interval_frames"
          ],
          "title": "OccurrencePair",
          "type": "object"
        },
        "RevisionCorrespondence": {
          "additionalProperties": false,
          "properties": {
            "variant": {
              "$ref": "#/$defs/ArtifactHandle"
            },
            "pairs": {
              "items": {
                "$ref": "#/$defs/OccurrencePair"
              },
              "title": "Pairs",
              "type": "array"
            }
          },
          "required": [
            "variant",
            "pairs"
          ],
          "title": "RevisionCorrespondence",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "baseline": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Variants",
          "type": "array"
        },
        "edit_receipts": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Edit Receipts",
          "type": "array"
        },
        "correspondence": {
          "items": {
            "$ref": "#/$defs/RevisionCorrespondence"
          },
          "title": "Correspondence",
          "type": "array"
        },
        "question": {
          "title": "Question",
          "type": "string"
        },
        "duration_policy": {
          "default": "equal",
          "enum": [
            "equal",
            "allow_mismatch"
          ],
          "title": "Duration Policy",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "baseline",
        "variants",
        "edit_receipts",
        "correspondence",
        "question"
      ],
      "title": "practice_compare_revisionsArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_envelope",
    "description": "Declared linear fade-out/in at exact occurrence joins; baseline and timing remain unchanged.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "Attribution": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "statement": {
              "title": "Statement",
              "type": "string"
            },
            "uncertainty": {
              "items": {
                "type": "string"
              },
              "title": "Uncertainty",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "statement",
            "uncertainty"
          ],
          "title": "Attribution",
          "type": "object"
        },
        "JoinEnvelope": {
          "additionalProperties": false,
          "properties": {
            "boundary_frame": {
              "title": "Boundary Frame",
              "type": "integer"
            },
            "fade_out_frames": {
              "title": "Fade Out Frames",
              "type": "integer"
            },
            "fade_in_frames": {
              "title": "Fade In Frames",
              "type": "integer"
            },
            "curve": {
              "const": "linear",
              "title": "Curve",
              "type": "string"
            }
          },
          "required": [
            "boundary_frame",
            "fade_out_frames",
            "fade_in_frames",
            "curve"
          ],
          "title": "JoinEnvelope",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "render": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "joins": {
          "items": {
            "$ref": "#/$defs/JoinEnvelope"
          },
          "title": "Joins",
          "type": "array"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "render",
        "joins",
        "attribution"
      ],
      "title": "practice_envelopeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_compare_processed",
    "description": "Compare explicit join derivatives with their exact unchanged baseline; no inferred listening verdict.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "baseline": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Variants",
          "type": "array"
        },
        "question": {
          "title": "Question",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "baseline",
        "variants",
        "question"
      ],
      "title": "practice_compare_processedArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_feedback_query",
    "description": "Retrieve explicit attributed reports by exact render, interval, actor and decision, preserving contradictions.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "feedback": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Feedback",
          "type": "array"
        },
        "render": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "actor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actor"
        },
        "actor_kind": {
          "anyOf": [
            {
              "enum": [
                "human",
                "agent"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actor Kind"
        },
        "decision": {
          "anyOf": [
            {
              "enum": [
                "keep",
                "revise",
                "reject",
                "no_addition"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Decision"
        },
        "interval_frames": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Interval Frames"
        },
        "limit": {
          "default": 16,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16384,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "feedback"
      ],
      "title": "practice_feedback_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "practice_preview",
    "description": "Declared original-rate PCM16 browser preview of an exact render; nearest-even rounding, no dither or other DSP, unrepresentable samples refused.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "render": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "profile": {
          "const": "browser-pcm16-original-rate/v1",
          "title": "Profile",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "render",
        "profile"
      ],
      "title": "practice_previewArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "instrument_inspect",
    "description": "Bounded installation and attributed state inspection.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "InstrumentIdentity": {
          "additionalProperties": false,
          "properties": {
            "manufacturer": {
              "title": "Manufacturer",
              "type": "string"
            },
            "product": {
              "title": "Product",
              "type": "string"
            },
            "build": {
              "title": "Build",
              "type": "string"
            },
            "format": {
              "enum": [
                "VST3",
                "AU",
                "AAX",
                "VST2",
                "native",
                "unknown"
              ],
              "title": "Format",
              "type": "string"
            },
            "class_id": {
              "title": "Class Id",
              "type": "string"
            },
            "instance_id": {
              "title": "Instance Id",
              "type": "string"
            },
            "host_build": {
              "title": "Host Build",
              "type": "string"
            },
            "os_arch": {
              "title": "Os Arch",
              "type": "string"
            },
            "binding": {
              "title": "Binding",
              "type": "string"
            }
          },
          "required": [
            "manufacturer",
            "product",
            "build",
            "format",
            "class_id",
            "instance_id",
            "host_build",
            "os_arch",
            "binding"
          ],
          "title": "InstrumentIdentity",
          "type": "object"
        },
        "InstrumentObservation": {
          "additionalProperties": false,
          "properties": {
            "identity": {
              "$ref": "#/$defs/InstrumentIdentity"
            },
            "topology_token": {
              "title": "Topology Token",
              "type": "string"
            },
            "parameters": {
              "items": {
                "$ref": "#/$defs/ParameterDescriptor"
              },
              "title": "Parameters",
              "type": "array"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "source_kind": {
              "enum": [
                "saved",
                "live",
                "manual"
              ],
              "title": "Source Kind",
              "type": "string"
            },
            "opaque_state": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dependencies": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Dependencies",
              "type": "array"
            }
          },
          "required": [
            "identity",
            "topology_token",
            "parameters",
            "attribution",
            "observed_at",
            "source_kind"
          ],
          "title": "InstrumentObservation",
          "type": "object"
        },
        "ParameterDescriptor": {
          "additionalProperties": false,
          "properties": {
            "parameter_id": {
              "title": "Parameter Id",
              "type": "string"
            },
            "name": {
              "title": "Name",
              "type": "string"
            },
            "identity_quality": {
              "enum": [
                "native_id",
                "host_slot_bound"
              ],
              "title": "Identity Quality",
              "type": "string"
            },
            "native_min": {
              "title": "Native Min",
              "type": "number"
            },
            "native_max": {
              "title": "Native Max",
              "type": "number"
            },
            "value": {
              "title": "Value",
              "type": "number"
            },
            "unit": {
              "title": "Unit",
              "type": "string"
            },
            "quantized": {
              "title": "Quantized",
              "type": "boolean"
            },
            "values": {
              "items": {
                "type": "number"
              },
              "title": "Values",
              "type": "array"
            },
            "writable": {
              "title": "Writable",
              "type": "boolean"
            },
            "automation_owner": {
              "enum": [
                "none",
                "host_automation",
                "macro",
                "remote",
                "unknown"
              ],
              "title": "Automation Owner",
              "type": "string"
            },
            "semantic_key": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Semantic Key"
            },
            "mapping_evidence": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Mapping Evidence"
            },
            "display_value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Display Value"
            }
          },
          "required": [
            "parameter_id",
            "name",
            "identity_quality",
            "native_min",
            "native_max",
            "value",
            "unit",
            "quantized",
            "values",
            "writable",
            "automation_owner",
            "semantic_key",
            "mapping_evidence"
          ],
          "title": "ParameterDescriptor",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "scope": {
          "default": "installed",
          "enum": [
            "installed",
            "supplied_observation"
          ],
          "title": "Scope",
          "type": "string"
        },
        "plugin_roots": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Plugin Roots"
        },
        "product": {
          "default": "all",
          "title": "Product",
          "type": "string"
        },
        "observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/InstrumentObservation"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "limit": {
          "default": 50,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "request_id"
      ],
      "title": "instrument_inspectArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "instrument_parameters",
    "description": "Query captured exposed descriptors without loading a patch.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "limit": {
          "default": 50,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "state"
      ],
      "title": "instrument_parametersArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "preset_catalog",
    "description": "Hash and query opaque local presets without loading them.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "operation": {
          "enum": [
            "scan",
            "query"
          ],
          "title": "Operation",
          "type": "string"
        },
        "roots": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Roots"
        },
        "catalog": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "product": {
          "default": "all",
          "title": "Product",
          "type": "string"
        },
        "query": {
          "default": "",
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 50,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Request Id"
        }
      },
      "required": [
        "store_root",
        "operation"
      ],
      "title": "preset_catalogArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "sound_plan",
    "description": "Bounded sound alternatives requiring no MIDI or DAW.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ParameterChange": {
          "additionalProperties": false,
          "properties": {
            "parameter_id": {
              "title": "Parameter Id",
              "type": "string"
            },
            "value": {
              "title": "Value",
              "type": "number"
            }
          },
          "required": [
            "parameter_id",
            "value"
          ],
          "title": "ParameterChange",
          "type": "object"
        },
        "SoundAlternative": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "hypothesis": {
              "title": "Hypothesis",
              "type": "string"
            },
            "changes": {
              "items": {
                "$ref": "#/$defs/ParameterChange"
              },
              "title": "Changes",
              "type": "array"
            }
          },
          "required": [
            "label",
            "hypothesis",
            "changes"
          ],
          "title": "SoundAlternative",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "brief": {
          "title": "Brief",
          "type": "string"
        },
        "recipe": {
          "default": "operator_sine_pluck",
          "enum": [
            "operator_sine_pluck",
            "parameter_alternatives"
          ],
          "title": "Recipe",
          "type": "string"
        },
        "state": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "alternatives": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SoundAlternative"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Alternatives"
        },
        "expected_layout_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Layout Sha256"
        },
        "expected_topology_token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Topology Token"
        },
        "locks": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Locks"
        },
        "context": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "performance": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_alternatives": {
          "default": 3,
          "title": "Max Alternatives",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "brief"
      ],
      "title": "sound_planArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "serum_inspect",
    "description": "Serum product/build/format inventory and attributed state; native verification remains separate.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "InstrumentIdentity": {
          "additionalProperties": false,
          "properties": {
            "manufacturer": {
              "title": "Manufacturer",
              "type": "string"
            },
            "product": {
              "title": "Product",
              "type": "string"
            },
            "build": {
              "title": "Build",
              "type": "string"
            },
            "format": {
              "enum": [
                "VST3",
                "AU",
                "AAX",
                "VST2",
                "native",
                "unknown"
              ],
              "title": "Format",
              "type": "string"
            },
            "class_id": {
              "title": "Class Id",
              "type": "string"
            },
            "instance_id": {
              "title": "Instance Id",
              "type": "string"
            },
            "host_build": {
              "title": "Host Build",
              "type": "string"
            },
            "os_arch": {
              "title": "Os Arch",
              "type": "string"
            },
            "binding": {
              "title": "Binding",
              "type": "string"
            }
          },
          "required": [
            "manufacturer",
            "product",
            "build",
            "format",
            "class_id",
            "instance_id",
            "host_build",
            "os_arch",
            "binding"
          ],
          "title": "InstrumentIdentity",
          "type": "object"
        },
        "InstrumentObservation": {
          "additionalProperties": false,
          "properties": {
            "identity": {
              "$ref": "#/$defs/InstrumentIdentity"
            },
            "topology_token": {
              "title": "Topology Token",
              "type": "string"
            },
            "parameters": {
              "items": {
                "$ref": "#/$defs/ParameterDescriptor"
              },
              "title": "Parameters",
              "type": "array"
            },
            "attribution": {
              "title": "Attribution",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "source_kind": {
              "enum": [
                "saved",
                "live",
                "manual"
              ],
              "title": "Source Kind",
              "type": "string"
            },
            "opaque_state": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ArtifactHandle"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dependencies": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Dependencies",
              "type": "array"
            }
          },
          "required": [
            "identity",
            "topology_token",
            "parameters",
            "attribution",
            "observed_at",
            "source_kind"
          ],
          "title": "InstrumentObservation",
          "type": "object"
        },
        "ParameterDescriptor": {
          "additionalProperties": false,
          "properties": {
            "parameter_id": {
              "title": "Parameter Id",
              "type": "string"
            },
            "name": {
              "title": "Name",
              "type": "string"
            },
            "identity_quality": {
              "enum": [
                "native_id",
                "host_slot_bound"
              ],
              "title": "Identity Quality",
              "type": "string"
            },
            "native_min": {
              "title": "Native Min",
              "type": "number"
            },
            "native_max": {
              "title": "Native Max",
              "type": "number"
            },
            "value": {
              "title": "Value",
              "type": "number"
            },
            "unit": {
              "title": "Unit",
              "type": "string"
            },
            "quantized": {
              "title": "Quantized",
              "type": "boolean"
            },
            "values": {
              "items": {
                "type": "number"
              },
              "title": "Values",
              "type": "array"
            },
            "writable": {
              "title": "Writable",
              "type": "boolean"
            },
            "automation_owner": {
              "enum": [
                "none",
                "host_automation",
                "macro",
                "remote",
                "unknown"
              ],
              "title": "Automation Owner",
              "type": "string"
            },
            "semantic_key": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Semantic Key"
            },
            "mapping_evidence": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Mapping Evidence"
            },
            "display_value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Display Value"
            }
          },
          "required": [
            "parameter_id",
            "name",
            "identity_quality",
            "native_min",
            "native_max",
            "value",
            "unit",
            "quantized",
            "values",
            "writable",
            "automation_owner",
            "semantic_key",
            "mapping_evidence"
          ],
          "title": "ParameterDescriptor",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "scope": {
          "default": "installed",
          "enum": [
            "installed",
            "supplied_observation"
          ],
          "title": "Scope",
          "type": "string"
        },
        "product": {
          "default": "serum2",
          "enum": [
            "serum1",
            "serum2",
            "serum_fx1",
            "serum_fx2"
          ],
          "title": "Product",
          "type": "string"
        },
        "plugin_roots": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Plugin Roots"
        },
        "observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/InstrumentObservation"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "limit": {
          "default": 50,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "request_id"
      ],
      "title": "serum_inspectArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "serum_presets",
    "description": "Opaque Serum catalog; extensions alone do not prove compatibility.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "operation": {
          "enum": [
            "scan",
            "query"
          ],
          "title": "Operation",
          "type": "string"
        },
        "roots": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Roots"
        },
        "catalog": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "product": {
          "default": "serum2",
          "enum": [
            "serum1",
            "serum2"
          ],
          "title": "Product",
          "type": "string"
        },
        "query": {
          "default": "",
          "title": "Query",
          "type": "string"
        },
        "limit": {
          "default": 50,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Request Id"
        }
      },
      "required": [
        "store_root",
        "operation"
      ],
      "title": "serum_presetsArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "serum_plan",
    "description": "Serum-specific planning with unavailable routes declared.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "ParameterChange": {
          "additionalProperties": false,
          "properties": {
            "parameter_id": {
              "title": "Parameter Id",
              "type": "string"
            },
            "value": {
              "title": "Value",
              "type": "number"
            }
          },
          "required": [
            "parameter_id",
            "value"
          ],
          "title": "ParameterChange",
          "type": "object"
        },
        "SoundAlternative": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "title": "Label",
              "type": "string"
            },
            "hypothesis": {
              "title": "Hypothesis",
              "type": "string"
            },
            "changes": {
              "items": {
                "$ref": "#/$defs/ParameterChange"
              },
              "title": "Changes",
              "type": "array"
            }
          },
          "required": [
            "label",
            "hypothesis",
            "changes"
          ],
          "title": "SoundAlternative",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "brief": {
          "title": "Brief",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "alternatives": {
          "items": {
            "$ref": "#/$defs/SoundAlternative"
          },
          "title": "Alternatives",
          "type": "array"
        },
        "expected_layout_sha256": {
          "title": "Expected Layout Sha256",
          "type": "string"
        },
        "expected_topology_token": {
          "title": "Expected Topology Token",
          "type": "string"
        },
        "locks": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Locks"
        },
        "context": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "performance": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_alternatives": {
          "default": 3,
          "title": "Max Alternatives",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "brief",
        "state",
        "alternatives",
        "expected_layout_sha256",
        "expected_topology_token"
      ],
      "title": "serum_planArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "build_native_midi_device",
    "description": "Build the separate read-only Max device without running a host.",
    "inputSchema": {
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "output_dir",
        "store_root",
        "request_id"
      ],
      "title": "build_native_midi_deviceArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "build_native_midi_writer",
    "description": "Build the separate guarded writer package; building does not authorize or execute edits.",
    "inputSchema": {
      "properties": {
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "output_dir",
        "store_root",
        "request_id"
      ],
      "title": "build_native_midi_writerArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "native_midi_read",
    "description": "Bounded native notes with explicit target, retained evidence and optional saved binding.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "NativeReadTarget": {
          "additionalProperties": false,
          "properties": {
            "location": {
              "const": "arrangement",
              "title": "Location",
              "type": "string"
            },
            "track_index": {
              "title": "Track Index",
              "type": "integer"
            },
            "clip_index": {
              "title": "Clip Index",
              "type": "integer"
            }
          },
          "required": [
            "location",
            "track_index",
            "clip_index"
          ],
          "title": "NativeReadTarget",
          "type": "object"
        },
        "NativeSavedBinding": {
          "additionalProperties": false,
          "properties": {
            "saved_als": {
              "title": "Saved Als",
              "type": "string"
            },
            "expected_sha256": {
              "title": "Expected Sha256",
              "type": "string"
            },
            "track_id": {
              "title": "Track Id",
              "type": "string"
            },
            "clip_id": {
              "title": "Clip Id",
              "type": "string"
            }
          },
          "required": [
            "saved_als",
            "expected_sha256",
            "track_id",
            "clip_id"
          ],
          "title": "NativeSavedBinding",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "$ref": "#/$defs/NativeReadTarget"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "saved_binding": {
          "anyOf": [
            {
              "$ref": "#/$defs/NativeSavedBinding"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "expected_session_nonce": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Expected Session Nonce"
        },
        "bridge_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bridge Dir"
        },
        "timeout_seconds": {
          "default": 15,
          "title": "Timeout Seconds",
          "type": "number"
        },
        "limit": {
          "default": 64,
          "title": "Limit",
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "title": "Offset",
          "type": "integer"
        },
        "byte_budget": {
          "default": 16384,
          "title": "Byte Budget",
          "type": "integer"
        },
        "observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "store_root",
        "request_id"
      ],
      "title": "native_midi_readArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "native_midi_status",
    "description": "Inspect a native request journal without dispatching or implying current state.",
    "inputSchema": {
      "$defs": {
        "NativeRequestReference": {
          "additionalProperties": false,
          "properties": {
            "session_nonce": {
              "title": "Session Nonce",
              "type": "string"
            },
            "request_key": {
              "title": "Request Key",
              "type": "string"
            }
          },
          "required": [
            "session_nonce",
            "request_key"
          ],
          "title": "NativeRequestReference",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "native_request": {
          "$ref": "#/$defs/NativeRequestReference"
        },
        "bridge_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bridge Dir"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "native_request"
      ],
      "title": "native_midi_statusArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "native_midi_write",
    "description": "Insert up to three ordinary notes or change one proven note velocity in a supervised isolated stock fixture.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "NativeInsertEdit": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "insert_empty",
              "title": "Kind",
              "type": "string"
            },
            "notes": {
              "items": {
                "$ref": "#/$defs/NativeInsertNote"
              },
              "title": "Notes",
              "type": "array"
            }
          },
          "required": [
            "kind",
            "notes"
          ],
          "title": "NativeInsertEdit",
          "type": "object"
        },
        "NativeInsertNote": {
          "additionalProperties": false,
          "properties": {
            "pitch": {
              "title": "Pitch",
              "type": "integer"
            },
            "onset_qn": {
              "$ref": "#/$defs/NativeTime"
            },
            "duration_qn": {
              "$ref": "#/$defs/NativeTime"
            },
            "velocity": {
              "title": "Velocity",
              "type": "integer"
            },
            "release_velocity": {
              "title": "Release Velocity",
              "type": "integer"
            }
          },
          "required": [
            "pitch",
            "onset_qn",
            "duration_qn",
            "velocity",
            "release_velocity"
          ],
          "title": "NativeInsertNote",
          "type": "object"
        },
        "NativeSessionAcknowledgment": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "exclusive_native_session": {
              "const": true,
              "title": "Exclusive Native Session",
              "type": "boolean"
            },
            "no_ui_edits_after_native_read": {
              "const": true,
              "title": "No Ui Edits After Native Read",
              "type": "boolean"
            },
            "note": {
              "title": "Note",
              "type": "string"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "observed_at",
            "exclusive_native_session",
            "no_ui_edits_after_native_read"
          ],
          "title": "NativeSessionAcknowledgment",
          "type": "object"
        },
        "NativeTime": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "NativeTime",
          "type": "object"
        },
        "NativeVelocityEdit": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "set_velocity",
              "title": "Kind",
              "type": "string"
            },
            "note_id": {
              "title": "Note Id",
              "type": "integer"
            },
            "velocity": {
              "title": "Velocity",
              "type": "integer"
            },
            "insertion_terminal": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "kind",
            "note_id",
            "velocity",
            "insertion_terminal"
          ],
          "title": "NativeVelocityEdit",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "saved_als": {
          "title": "Saved Als",
          "type": "string"
        },
        "expected_sha256": {
          "title": "Expected Sha256",
          "type": "string"
        },
        "expected_observation": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "writer_device": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "edit": {
          "anyOf": [
            {
              "$ref": "#/$defs/NativeInsertEdit"
            },
            {
              "$ref": "#/$defs/NativeVelocityEdit"
            }
          ],
          "title": "Edit"
        },
        "supervision": {
          "$ref": "#/$defs/NativeSessionAcknowledgment"
        },
        "bridge_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bridge Dir"
        },
        "timeout_seconds": {
          "default": 15,
          "title": "Timeout Seconds",
          "type": "number"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "workspace_id",
        "expected_revision",
        "saved_als",
        "expected_sha256",
        "expected_observation",
        "writer_device",
        "edit",
        "supervision"
      ],
      "title": "native_midi_writeArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_prepare",
    "description": "Copy protected parent and dependencies into an isolated workspace.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "CandidateContext": {
          "additionalProperties": false,
          "properties": {
            "arrangement_start_qn": {
              "$ref": "#/$defs/CandidateTime"
            },
            "length_qn": {
              "$ref": "#/$defs/CandidateTime"
            },
            "tempo_bpm": {
              "title": "Tempo Bpm",
              "type": "number"
            },
            "meter": {
              "items": {
                "type": "integer"
              },
              "title": "Meter",
              "type": "array"
            }
          },
          "required": [
            "arrangement_start_qn",
            "length_qn",
            "tempo_bpm",
            "meter"
          ],
          "title": "CandidateContext",
          "type": "object"
        },
        "CandidateTime": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "CandidateTime",
          "type": "object"
        },
        "LayerSpec": {
          "additionalProperties": false,
          "properties": {
            "track_name": {
              "title": "Track Name",
              "type": "string"
            },
            "instrument_device": {
              "const": "Operator",
              "title": "Instrument Device",
              "type": "string"
            }
          },
          "required": [
            "track_name",
            "instrument_device"
          ],
          "title": "LayerSpec",
          "type": "object"
        }
      },
      "properties": {
        "source_als": {
          "title": "Source Als",
          "type": "string"
        },
        "expected_source_sha256": {
          "title": "Expected Source Sha256",
          "type": "string"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "mode": {
          "default": "clone_only",
          "enum": [
            "clone_only",
            "with_material"
          ],
          "title": "Mode",
          "type": "string"
        },
        "material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "context": {
          "anyOf": [
            {
              "$ref": "#/$defs/CandidateContext"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "layer": {
          "anyOf": [
            {
              "$ref": "#/$defs/LayerSpec"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "source_als",
        "expected_source_sha256",
        "store_root",
        "request_id"
      ],
      "title": "candidate_prepareArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_inspect",
    "description": "Inspect revision-bound workspace and source integrity.",
    "inputSchema": {
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "history_limit": {
          "default": 0,
          "title": "History Limit",
          "type": "integer"
        },
        "history_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "History Cursor"
        }
      },
      "required": [
        "store_root",
        "workspace_id",
        "expected_revision"
      ],
      "title": "candidate_inspectArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_cancel",
    "description": "Cancel an isolated workspace without deleting its evidence.",
    "inputSchema": {
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "workspace_id",
        "expected_revision",
        "request_id"
      ],
      "title": "candidate_cancelArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_native_abandon",
    "description": "Permanently abandon an unknown native attempt after explicit supervised closure and fresh evidence.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "NativeAbandonment": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "reason": {
              "title": "Reason",
              "type": "string"
            },
            "all_old_live_max_instances_stopped": {
              "const": true,
              "title": "All Old Live Max Instances Stopped",
              "type": "boolean"
            },
            "old_writer_unloaded": {
              "const": true,
              "title": "Old Writer Unloaded",
              "type": "boolean"
            },
            "old_candidate_closed_without_saving": {
              "const": true,
              "title": "Old Candidate Closed Without Saving",
              "type": "boolean"
            },
            "no_native_dispatch_in_flight": {
              "const": true,
              "title": "No Native Dispatch In Flight",
              "type": "boolean"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "observed_at",
            "reason",
            "all_old_live_max_instances_stopped",
            "old_writer_unloaded",
            "old_candidate_closed_without_saving",
            "no_native_dispatch_in_flight"
          ],
          "title": "NativeAbandonment",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "pending": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "fresh_observation": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "attribution": {
          "$ref": "#/$defs/NativeAbandonment"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "bridge_dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bridge Dir"
        }
      },
      "required": [
        "store_root",
        "workspace_id",
        "expected_revision",
        "pending",
        "fresh_observation",
        "attribution",
        "request_id"
      ],
      "title": "candidate_native_abandonArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_native_reconcile",
    "description": "Reconcile a validated terminal with its exact pending workspace and release only its matching lease; never redispatch.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "NativeReconciliation": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "reason": {
              "title": "Reason",
              "type": "string"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "observed_at",
            "reason"
          ],
          "title": "NativeReconciliation",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "terminal": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "attribution": {
          "$ref": "#/$defs/NativeReconciliation"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "workspace_id",
        "expected_revision",
        "terminal",
        "attribution",
        "request_id"
      ],
      "title": "candidate_native_reconcileArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "candidate_seal",
    "description": "Verify source preservation and attributed native save/reopen evidence.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "NativeSaveReport": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "host_version": {
              "title": "Host Version",
              "type": "string"
            },
            "saved_als_sha256": {
              "title": "Saved Als Sha256",
              "type": "string"
            },
            "saved": {
              "title": "Saved",
              "type": "boolean"
            },
            "reopened": {
              "title": "Reopened",
              "type": "boolean"
            },
            "missing_media": {
              "title": "Missing Media",
              "type": "boolean"
            },
            "device_missing": {
              "title": "Device Missing",
              "type": "boolean"
            },
            "instrument_recipe_verified": {
              "title": "Instrument Recipe Verified",
              "type": "boolean"
            },
            "evidence": {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "title": "Evidence",
              "type": "array"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "observed_at",
            "host_version",
            "saved_als_sha256",
            "saved",
            "reopened",
            "missing_media",
            "device_missing"
          ],
          "title": "NativeSaveReport",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "workspace_id": {
          "title": "Workspace Id",
          "type": "string"
        },
        "expected_revision": {
          "title": "Expected Revision",
          "type": "integer"
        },
        "saved_als": {
          "title": "Saved Als",
          "type": "string"
        },
        "expected_sha256": {
          "title": "Expected Sha256",
          "type": "string"
        },
        "native_report": {
          "$ref": "#/$defs/NativeSaveReport"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "instrument_state": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "final_material": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "runtime_identity_observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArtifactHandle"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "store_root",
        "workspace_id",
        "expected_revision",
        "saved_als",
        "expected_sha256",
        "native_report",
        "request_id"
      ],
      "title": "candidate_sealArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "validate_candidate",
    "description": "Recheck sealed v3 identities and preservation evidence.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "candidate": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "store_root": {
          "title": "Store Root",
          "type": "string"
        }
      },
      "required": [
        "candidate",
        "store_root"
      ],
      "title": "validate_candidateArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audition_plan",
    "description": "Bind candidates and an unchanged baseline to explicit render settings.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "CandidateTime": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "CandidateTime",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "candidates": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Candidates",
          "type": "array"
        },
        "baseline": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "span_qn": {
          "items": {
            "$ref": "#/$defs/CandidateTime"
          },
          "title": "Span Qn",
          "type": "array"
        },
        "question": {
          "title": "Question",
          "type": "string"
        },
        "pre_roll_qn": {
          "anyOf": [
            {
              "$ref": "#/$defs/CandidateTime"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "post_roll_qn": {
          "anyOf": [
            {
              "$ref": "#/$defs/CandidateTime"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "tail_seconds": {
          "default": 4,
          "title": "Tail Seconds",
          "type": "number"
        },
        "sample_rate": {
          "default": 48000,
          "title": "Sample Rate",
          "type": "integer"
        },
        "channels": {
          "default": 2,
          "title": "Channels",
          "type": "integer"
        },
        "signal_expectation": {
          "default": "audible",
          "title": "Signal Expectation",
          "type": "string"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "candidates",
        "baseline",
        "span_qn",
        "question"
      ],
      "title": "audition_planArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "attach_candidate_render",
    "description": "Verify decoded audio and bind attributed render evidence to a candidate.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "CandidateTime": {
          "additionalProperties": false,
          "properties": {
            "n": {
              "title": "N",
              "type": "integer"
            },
            "d": {
              "title": "D",
              "type": "integer"
            }
          },
          "required": [
            "n",
            "d"
          ],
          "title": "CandidateTime",
          "type": "object"
        },
        "RenderReport": {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "observed_at": {
              "title": "Observed At",
              "type": "string"
            },
            "candidate_sha256": {
              "title": "Candidate Sha256",
              "type": "string"
            },
            "export_completed": {
              "title": "Export Completed",
              "type": "boolean"
            },
            "arrangement_only": {
              "title": "Arrangement Only",
              "type": "boolean"
            },
            "no_missing_media": {
              "title": "No Missing Media",
              "type": "boolean"
            }
          },
          "required": [
            "actor",
            "actor_kind",
            "observed_at",
            "candidate_sha256",
            "export_completed",
            "arrangement_only",
            "no_missing_media"
          ],
          "title": "RenderReport",
          "type": "object"
        },
        "RenderSettings": {
          "additionalProperties": false,
          "properties": {
            "sample_rate": {
              "title": "Sample Rate",
              "type": "integer"
            },
            "channels": {
              "title": "Channels",
              "type": "integer"
            },
            "start_qn": {
              "$ref": "#/$defs/CandidateTime"
            },
            "end_qn": {
              "$ref": "#/$defs/CandidateTime"
            },
            "tempo_bpm": {
              "title": "Tempo Bpm",
              "type": "number"
            },
            "tail_seconds": {
              "title": "Tail Seconds",
              "type": "number"
            },
            "normalization": {
              "const": false,
              "title": "Normalization",
              "type": "boolean"
            }
          },
          "required": [
            "sample_rate",
            "channels",
            "start_qn",
            "end_qn",
            "tempo_bpm",
            "tail_seconds",
            "normalization"
          ],
          "title": "RenderSettings",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "candidate": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "render_plan": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "path": {
          "title": "Path",
          "type": "string"
        },
        "expected_sha256": {
          "title": "Expected Sha256",
          "type": "string"
        },
        "actual_settings": {
          "$ref": "#/$defs/RenderSettings"
        },
        "native_report": {
          "$ref": "#/$defs/RenderReport"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "candidate",
        "render_plan",
        "path",
        "expected_sha256",
        "actual_settings",
        "native_report"
      ],
      "title": "attach_candidate_renderArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audition_feedback",
    "description": "Record attributed, interval-scoped listening feedback separately from measurements.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "attachment": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "interval_frames": {
          "items": {
            "type": "integer"
          },
          "title": "Interval Frames",
          "type": "array"
        },
        "actor": {
          "title": "Actor",
          "type": "string"
        },
        "actor_kind": {
          "title": "Actor Kind",
          "type": "string"
        },
        "note": {
          "title": "Note",
          "type": "string"
        },
        "decision": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Decision"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "attachment",
        "interval_frames",
        "actor",
        "actor_kind",
        "note"
      ],
      "title": "audition_feedbackArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "audition_feedback_query",
    "description": "Retrieve explicitly supplied feedback with exact render, interval and actor identity; no preference inference.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "feedback": {
          "items": {
            "$ref": "#/$defs/ArtifactHandle"
          },
          "title": "Feedback",
          "type": "array"
        },
        "actor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actor"
        },
        "actor_kind": {
          "anyOf": [
            {
              "enum": [
                "human",
                "agent"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Actor Kind"
        },
        "decision": {
          "anyOf": [
            {
              "enum": [
                "keep",
                "revise",
                "reject",
                "no_addition"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Decision"
        },
        "render_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Render Sha256"
        },
        "interval_frames": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Interval Frames"
        },
        "limit": {
          "default": 16,
          "title": "Limit",
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cursor"
        },
        "max_bytes": {
          "default": 16384,
          "title": "Max Bytes",
          "type": "integer"
        }
      },
      "required": [
        "store_root",
        "feedback"
      ],
      "title": "audition_feedback_queryArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "promote_candidate",
    "description": "Copy an explicitly kept candidate and seal its collected dependency lineage.",
    "inputSchema": {
      "$defs": {
        "ArtifactHandle": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "pocket.artifact-handle/v1",
              "title": "Schema",
              "type": "string"
            },
            "artifact_uri": {
              "title": "Artifact Uri",
              "type": "string"
            },
            "sha256": {
              "title": "Sha256",
              "type": "string"
            },
            "artifact_schema": {
              "title": "Artifact Schema",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "artifact_uri",
            "sha256",
            "artifact_schema"
          ],
          "title": "ArtifactHandle",
          "type": "object"
        },
        "AttributedDecision": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "enum": [
                "keep",
                "revise",
                "reject",
                "no_addition"
              ],
              "title": "Action",
              "type": "string"
            },
            "actor": {
              "title": "Actor",
              "type": "string"
            },
            "actor_kind": {
              "enum": [
                "human",
                "agent"
              ],
              "title": "Actor Kind",
              "type": "string"
            },
            "reason": {
              "title": "Reason",
              "type": "string"
            },
            "feedback": {
              "$ref": "#/$defs/ArtifactHandle"
            }
          },
          "required": [
            "action",
            "actor",
            "actor_kind",
            "reason"
          ],
          "title": "AttributedDecision",
          "type": "object"
        }
      },
      "properties": {
        "store_root": {
          "title": "Store Root",
          "type": "string"
        },
        "request_id": {
          "title": "Request Id",
          "type": "string"
        },
        "candidate": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "attachment": {
          "$ref": "#/$defs/ArtifactHandle"
        },
        "decision": {
          "$ref": "#/$defs/AttributedDecision"
        },
        "output_dir": {
          "title": "Output Dir",
          "type": "string"
        },
        "portability_target": {
          "default": "editable_same_environment",
          "title": "Portability Target",
          "type": "string"
        },
        "related_artifacts": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ArtifactHandle"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Related Artifacts"
        }
      },
      "required": [
        "store_root",
        "request_id",
        "candidate",
        "attachment",
        "decision",
        "output_dir"
      ],
      "title": "promote_candidateArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "validate_candidate_promotion",
    "description": "Recheck relocated v3 promotion bytes, dependencies and evidence.",
    "inputSchema": {
      "properties": {
        "promotion_dir": {
          "title": "Promotion Dir",
          "type": "string"
        },
        "expected_lineage_sha256": {
          "title": "Expected Lineage Sha256",
          "type": "string"
        }
      },
      "required": [
        "promotion_dir",
        "expected_lineage_sha256"
      ],
      "title": "validate_candidate_promotionArguments",
      "type": "object",
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  }
]
