Convert my attached workout history into a downloadable Re-Phase CSV v1 file. If you cannot create a file, return plain CSV that I can save as UTF-8. Write one row per performed set, in the original workout, exercise and set order. Use this exact comma-separated header: lift_assist_version,workout_id,set_id,workout_name,started_at,exercise,finished_at,performed_at,set_kind,reps,rep_basis,duration_seconds,distance_m,load_kind,weight,weight_unit,implement_count,body_mass,rpe,rir,set_note,workout_note Set lift_assist_version to 1. Reuse stable source IDs where possible. Otherwise derive repeatable IDs from the source and its original records. Keep workout_id distinct across workouts and set_id unique within each workout. Repeat the same workout name, dates and workout note on every row of a workout. Keep the recorded exercise names, units, effort scale and load meaning. Distinguish total weight, weight per implement, bodyweight, added weight and assistance. Use a date alone when only the workout day is known. Exact timestamps need UTC or a known offset. Leave unknown optional values empty. Ask me to clarify any missing required information or ambiguous measurements before converting. Account for every performed set. Quote cells containing commas, quotes or line breaks, and double embedded quotes. Keep complete workouts together if splitting files to meet the limits of 25,000 sets and 10 MiB per file. Before returning the CSV, validate each row against the JSON Schema below. For validation, use column names as keys, trim cells, omit empty values and keep all other values as strings. {"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"type":"object","properties":{"lift_assist_version":{"type":"string","const":"1"},"workout_id":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,100}$"},"set_id":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,100}$"},"workout_name":{"type":"string","minLength":1,"maxLength":1000},"started_at":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"pattern":"(?:Z|[+-](?:0[0-9]|1[0-4]):[0-5][0-9])$"}]}]},"exercise":{"type":"string","minLength":1,"maxLength":160},"finished_at":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"pattern":"(?:Z|[+-](?:0[0-9]|1[0-4]):[0-5][0-9])$"}]},"performed_at":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"pattern":"(?:Z|[+-](?:0[0-9]|1[0-4]):[0-5][0-9])$"}]},"set_kind":{"type":"string","enum":["warmup","working","other"]},"reps":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,4}|100000)$"},"rep_basis":{"type":"string","enum":["total","per_side","unknown"]},"duration_seconds":{"type":"string","allOf":[{"pattern":"^(?=(?:[^0-9]*[0-9]){1,12}$)(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},{"pattern":"^(?!0(?:\\.0+)?$)"}]},"distance_m":{"type":"string","allOf":[{"pattern":"^(?=(?:[^0-9]*[0-9]){1,12}$)(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},{"pattern":"^(?!0(?:\\.0+)?$)"}]},"load_kind":{"type":"string","enum":["total","per_implement","bodyweight","added","assistance"]},"weight":{"type":"string","pattern":"^(?=(?:[^0-9]*[0-9]){1,12}$)(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},"weight_unit":{"type":"string","enum":["kg","lb"]},"implement_count":{"type":"string","pattern":"^(?:[1-9][0-9]?|100)$"},"body_mass":{"type":"string","allOf":[{"pattern":"^(?=(?:[^0-9]*[0-9]){1,12}$)(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},{"pattern":"^(?!0(?:\\.0+)?$)"}]},"rpe":{"type":"string","pattern":"^(?:[1-9](?:\\.[05])?|10(?:\\.0)?)$"},"rir":{"type":"string","pattern":"^(?:[0-9](?:\\.[05])?|10(?:\\.0)?)$"},"set_note":{"type":"string","maxLength":10000},"workout_note":{"type":"string","maxLength":10000}},"required":["lift_assist_version","workout_id","set_id","workout_name","started_at","exercise"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"load_kind":{"not":{}},"weight":{"not":{}},"weight_unit":{"not":{}},"implement_count":{"not":{}},"body_mass":{"not":{}}}},{"type":"object","properties":{"load_kind":{"type":"string","const":"total"},"weight":{"type":"string"},"weight_unit":{"type":"string"},"body_mass":{"not":{}},"implement_count":{"not":{}}},"required":["load_kind","weight","weight_unit"]},{"type":"object","properties":{"load_kind":{"type":"string","const":"per_implement"},"weight":{"type":"string"},"weight_unit":{"type":"string"},"body_mass":{"not":{}},"implement_count":{"type":"string"}},"required":["load_kind","weight","weight_unit","implement_count"]},{"type":"object","properties":{"load_kind":{"type":"string","const":"bodyweight"},"weight":{"not":{}},"implement_count":{"not":{}},"body_mass":{"not":{}},"weight_unit":{"not":{}}},"required":["load_kind"]},{"type":"object","properties":{"load_kind":{"type":"string","const":"bodyweight"},"weight":{"not":{}},"implement_count":{"not":{}},"body_mass":{"type":"string"},"weight_unit":{"type":"string"}},"required":["load_kind","body_mass","weight_unit"]},{"type":"object","properties":{"load_kind":{"type":"string","const":"added"},"weight":{"type":"string"},"weight_unit":{"type":"string"},"implement_count":{"not":{}}},"required":["load_kind","weight","weight_unit"]},{"type":"object","properties":{"load_kind":{"type":"string","const":"assistance"},"weight":{"type":"string","allOf":[{"pattern":"^(?=(?:[^0-9]*[0-9]){1,12}$)(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,6})?$"},{"pattern":"^(?!0(?:\\.0+)?$)"}]},"weight_unit":{"type":"string"},"implement_count":{"not":{}}},"required":["load_kind","weight","weight_unit"]}]},{"anyOf":[{"type":"object","properties":{"reps":{"type":"string"}},"required":["reps"]},{"type":"object","properties":{"duration_seconds":{"type":"string"},"rep_basis":{"not":{}}},"required":["duration_seconds"]},{"type":"object","properties":{"distance_m":{"type":"string"},"rep_basis":{"not":{}}},"required":["distance_m"]}]},{"anyOf":[{"type":"object","properties":{"rpe":{"not":{}}}},{"type":"object","properties":{"rir":{"not":{}}}}]}]}