Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
release(v4.17.4): fewer renders that fail before they start
mrbizarroa69d7ed7c7a4
diff --git a/CLAUDE.md b/CLAUDE.mdindex f6cdc74..f5c1fc2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -722,7 +722,7 @@ Every form field below maps to `params.<field>` on the resulting job.| `width` | int | `1280` | Clamped to `>= 32`. T2V only — image flows derive from aspect+quality. || `height` | int | `704` | Same as width. || `frames` | int | `121` | Number of video frames. The 8k+1 rule (latents are groups of 8). |-| `steps` | int | `8` | Denoising steps. T2V/I2V Q4 distilled requires `>= 8` (schedule is locked). |+| `steps` | int | `8` | Denoising steps. The T2V/I2V distilled lane always runs exactly `8` (fixed 9-point table): `clamp_distilled_steps()` rewrites any other value to 8 with a note (4.17.4 — it used to refuse). H3 reads its own counts from this field. || `seed` | int-as-str | `"-1"` | `"-1"` → random. Stored as string so the form roundtrip is lossless. || `image` | path | `REFERENCE` | Only used when `mode != "t2v"`. || `audio` | path | `AUDIO_DEFAULT` | Only used when `mode == "i2v_clean_audio"` (mux external audio). |diff --git a/README.md b/README.mdindex 71bc8e7..0482832 100644--- a/README.md+++ b/README.md@@ -19,7 +19,7 @@</p>-> **Current release: v4.17.3.** **Lip-sync that follows the voice, and errors that say what to do.** Lip-sync now separates the singing voice from the music for everyone (Update installs it), and a character LoRA no longer stops the mouth moving. Time estimates for your Mac are fixed where they mixed in much bigger Macs, and refreshed from the newest renders. A seed pasted from another app no longer fails the render, a damaged model file is caught and offered a one-click Repair, and a crash or a refusal says what happened and what to do instead of offering a Retry that cannot work. 4.17.0 was the big one: estimates for your Mac, faces kept in portrait and phone photos, Undo on Stop/Clear/Hide, Lip-sync as a Video mode, and an Editor with Sync to song, Match colour, slip and roll edits, Replace and versioned renders. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).+> **Current release: v4.17.4.** **Fewer renders that fail before they start.** A render no longer fails on a step count the fast model cannot use (it is set to 8 for you, with a note). If the Lip-sync voice separator is missing after an update, Phosphene installs it by itself and queued Lip-sync clips wait for it instead of failing. If the render engine did not finish installing, a bar at the top offers Repair engine, which fixes it in a few minutes without re-downloading any model. A missing picture, audio or LoRA file now offers Open in the form instead of a Retry that fails the same way. 4.17.3: Lip-sync follows the singing voice, estimates no longer borrow a bigger Mac's numbers, and errors say what to do. 4.17.0 was the big one: estimates for your Mac, faces kept in portrait and phone photos, Undo on Stop/Clear/Hide, Lip-sync as a Video mode, and an Editor with Sync to song, Match colour, slip and roll edits, Replace and versioned renders. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).## Overviewdiff --git a/VERSION b/VERSIONindex ab268c2..6680030 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-4.17.3+4.17.4diff --git a/data/fleet_timings.json b/data/fleet_timings.jsonindex 12f776c..e9aa593 100644--- a/data/fleet_timings.json+++ b/data/fleet_timings.json@@ -1,5 +1,5 @@{- "built_at": "2026-10-01T06:52:31Z",+ "built_at": "2026-10-02T13:17:32Z","levels": {"cell": {"cells": {@@ -27,6 +27,12 @@"p50_sec": 180.0,"p75_sec": 180.0},+ "h3|i2v|draft_10s_dense|243.0|M5 Pro|64.0|best": {+ "n": 4,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"h3|i2v|draft_10s|243.0|M1 Max|64.0|fast": {"n": 6,"p25_sec": 600.0,@@ -70,19 +76,19 @@"p75_sec": 120.0},"h3|i2v|draft_10s|243.0|M5 Pro|48.0|fast": {- "n": 3,+ "n": 5,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 180.0},"h3|i2v|draft_10s|243.0|M5 Pro|64.0|best": {- "n": 13,- "p25_sec": 420.0,+ "n": 20,+ "p25_sec": 555.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M5 Pro|64.0|fast": {- "n": 23,+ "n": 25,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -292,7 +298,7 @@"p75_sec": 750.0},"h3|i2v|draft_5s|124.0|M3 Ultra|512.0|fast": {- "n": 15,+ "n": 16,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -340,13 +346,13 @@"p75_sec": 90.0},"h3|i2v|draft_5s|124.0|M5 Pro|64.0|best": {- "n": 5,+ "n": 14,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"h3|i2v|draft_5s|124.0|M5 Pro|64.0|fast": {- "n": 28,+ "n": 29,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -484,7 +490,7 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M4 Max|128.0|fast": {- "n": 593,+ "n": 614,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -700,7 +706,7 @@"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M4 Max|64.0|fast": {- "n": 107,+ "n": 112,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -730,7 +736,7 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M5 Pro|48.0|fast": {- "n": 232,+ "n": 251,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -837,6 +843,12 @@"p50_sec": 1800.0,"p75_sec": 1800.0},+ "h3|i2v|native_5s|124.0|M5 Pro|64.0|best": {+ "n": 4,+ "p25_sec": 1800.0,+ "p50_sec": 1800.0,+ "p75_sec": 1800.0+ },"h3|i2v|standard_10s_dense|243.0|M1 Ultra|64.0|best": {"n": 4,"p25_sec": 2400.0,@@ -879,6 +891,12 @@"p50_sec": 1200.0,"p75_sec": 1200.0},+ "h3|i2v|standard_10s_dense|243.0|M5 Max|128.0|best": {+ "n": 5,+ "p25_sec": 900.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0+ },"h3|i2v|standard_10s_dense|243.0|M5 Max|64.0|fast": {"n": 5,"p25_sec": 300.0,@@ -904,10 +922,10 @@"p75_sec": 600.0},"h3|i2v|standard_10s|243.0|M2 Max|64.0|fast": {- "n": 4,+ "n": 9,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 975.0+ "p75_sec": 900.0},"h3|i2v|standard_10s|243.0|M2 Max|96.0|fast": {"n": 5,@@ -933,6 +951,12 @@"p50_sec": 300.0,"p75_sec": 300.0},+ "h3|i2v|standard_10s|243.0|M3 Ultra|512.0|fast": {+ "n": 4,+ "p25_sec": 600.0,+ "p50_sec": 750.0,+ "p75_sec": 900.0+ },"h3|i2v|standard_10s|243.0|M3 Ultra|96.0|best": {"n": 3,"p25_sec": 600.0,@@ -970,7 +994,7 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M5 Max|128.0|fast": {- "n": 16,+ "n": 17,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -988,7 +1012,7 @@"p75_sec": 300.0},"h3|i2v|standard_10s|243.0|M5 Pro|64.0|best": {- "n": 5,+ "n": 6,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -1048,7 +1072,7 @@"p75_sec": 1200.0},"h3|i2v|standard_15s|362.0|M5 Max|128.0|fast": {- "n": 14,+ "n": 15,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -1084,10 +1108,10 @@"p75_sec": 1200.0},"h3|i2v|standard_3s|73.0|M2 Max|64.0|best": {- "n": 4,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 600.0},"h3|i2v|standard_3s|73.0|M3 Max|36.0|fast": {"n": 8,@@ -1102,10 +1126,10 @@"p75_sec": 180.0},"h3|i2v|standard_3s|73.0|M5 Max|128.0|best": {- "n": 24,+ "n": 35,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 135.0+ "p75_sec": 120.0},"h3|i2v|standard_3s|73.0|M5 Max|64.0|fast": {"n": 7,@@ -1143,6 +1167,12 @@"p50_sec": 300.0,"p75_sec": 360.0},+ "h3|i2v|standard_5s|124.0|M2 Max|64.0|fast": {+ "n": 3,+ "p25_sec": 420.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0+ },"h3|i2v|standard_5s|124.0|M2 Ultra|64.0|best": {"n": 7,"p25_sec": 600.0,@@ -1150,9 +1180,9 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M2 Ultra|64.0|fast": {- "n": 3,- "p25_sec": 270.0,- "p50_sec": 300.0,+ "n": 4,+ "p25_sec": 240.0,+ "p50_sec": 270.0,"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|M3 Max|128.0|best": {@@ -1192,10 +1222,10 @@"p75_sec": 1200.0},"h3|i2v|standard_5s|124.0|M3 Ultra|512.0|fast": {- "n": 12,+ "n": 14,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 465.0+ "p75_sec": 555.0},"h3|i2v|standard_5s|124.0|M3 Ultra|96.0|best": {"n": 8,@@ -1222,7 +1252,7 @@"p75_sec": 375.0},"h3|i2v|standard_5s|124.0|M4 Max|64.0|fast": {- "n": 257,+ "n": 263,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -1234,7 +1264,7 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M5 Max|128.0|best": {- "n": 73,+ "n": 86,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -1431,6 +1461,12 @@"p50_sec": 180.0,"p75_sec": 210.0},+ "h3|t2v|draft_3s|73.0|M2 Max|64.0|best": {+ "n": 3,+ "p25_sec": 360.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0+ },"h3|t2v|draft_3s|73.0|M2 Ultra|64.0|best": {"n": 11,"p25_sec": 210.0,@@ -1498,9 +1534,9 @@"p75_sec": 330.0},"h3|t2v|draft_3s|73.0|M4 Max|128.0|fast": {- "n": 17,- "p25_sec": 180.0,- "p50_sec": 240.0,+ "n": 28,+ "p25_sec": 120.0,+ "p50_sec": 150.0,"p75_sec": 240.0},"h3|t2v|draft_3s|73.0|M4 Max|48.0|best": {@@ -1660,10 +1696,10 @@"p75_sec": 675.0},"h3|t2v|draft_5s|124.0|M4 Max|128.0|fast": {- "n": 11,- "p25_sec": 150.0,+ "n": 17,+ "p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"h3|t2v|draft_5s|124.0|M4 Max|64.0|best": {"n": 15,@@ -1887,6 +1923,12 @@"p50_sec": 1200.0,"p75_sec": 1200.0},+ "h3|t2v|high_5s|124.0|M2 Max|64.0|best": {+ "n": 4,+ "p25_sec": 3150.0,+ "p50_sec": 3600.0,+ "p75_sec": 3600.0+ },"h3|t2v|high_5s|124.0|M2 Max|64.0|fast": {"n": 13,"p25_sec": 600.0,@@ -1996,7 +2038,7 @@"p75_sec": 1800.0},"h3|t2v|native_3s|73.0|M4 Max|128.0|fast": {- "n": 5,+ "n": 13,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -2025,6 +2067,18 @@"p50_sec": 1800.0,"p75_sec": 1800.0},+ "h3|t2v|native_5s|124.0|M4 Max|128.0|best": {+ "n": 5,+ "p25_sec": 2400.0,+ "p50_sec": 2400.0,+ "p75_sec": 2400.0+ },+ "h3|t2v|native_5s|124.0|M4 Max|128.0|fast": {+ "n": 5,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"h3|t2v|native_5s|124.0|M4 Max|64.0|best": {"n": 9,"p25_sec": 2400.0,@@ -2290,10 +2344,10 @@"p75_sec": 750.0},"h3|t2v|standard_5s|124.0|M2 Max|64.0|best": {- "n": 6,+ "n": 16,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 1200.0},"h3|t2v|standard_5s|124.0|M2 Max|64.0|fast": {"n": 5,@@ -2452,7 +2506,7 @@"p75_sec": 600.0},"ltx|a2v|balanced|121.0|M4 Pro|48.0|any": {- "n": 15,+ "n": 16,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -2518,8 +2572,14 @@"p75_sec": 120.0},"ltx|a2v|balanced|161.0|M4 Pro|48.0|any": {- "n": 4,- "p25_sec": 555.0,+ "n": 5,+ "p25_sec": 600.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0+ },+ "ltx|a2v|balanced|169.0|M4 Pro|48.0|any": {+ "n": 3,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -2536,11 +2596,17 @@"p75_sec": 420.0},"ltx|a2v|balanced|193.0|M4 Pro|48.0|any": {- "n": 4,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},+ "ltx|a2v|balanced|201.0|M4 Pro|48.0|any": {+ "n": 4,+ "p25_sec": 600.0,+ "p50_sec": 750.0,+ "p75_sec": 900.0+ },"ltx|a2v|balanced|209.0|M4 Pro|48.0|any": {"n": 3,"p25_sec": 900.0,@@ -2548,13 +2614,13 @@"p75_sec": 900.0},"ltx|a2v|balanced|217.0|M4 Pro|48.0|any": {- "n": 38,- "p25_sec": 675.0,+ "n": 46,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|M4 Pro|48.0|any": {- "n": 23,+ "n": 30,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -2836,7 +2902,7 @@"p75_sec": 600.0},"ltx|a2v|high|241.0|M4 Max|128.0|any": {- "n": 6,+ "n": 7,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -2848,10 +2914,10 @@"p75_sec": 360.0},"ltx|a2v|high|241.0|M4 Pro|24.0|any": {- "n": 5,+ "n": 17,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|a2v|high|241.0|M4 Pro|48.0|any": {"n": 14,@@ -2871,6 +2937,12 @@"p50_sec": 300.0,"p75_sec": 300.0},+ "ltx|a2v|high|241.0|M5|16.0|any": {+ "n": 3,+ "p25_sec": 360.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0+ },"ltx|a2v|high|265.0|M1 Ultra|64.0|any": {"n": 4,"p25_sec": 600.0,@@ -2967,6 +3039,12 @@"p50_sec": 1350.0,"p75_sec": 1800.0},+ "ltx|a2v|high|97.0|M4 Pro|48.0|any": {+ "n": 3,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"ltx|a2v|quick|241.0|M4 Pro|48.0|any": {"n": 4,"p25_sec": 600.0,@@ -3154,13 +3232,13 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M1 Max|32.0|any": {- "n": 40,+ "n": 41,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|121.0|M1 Max|64.0|any": {- "n": 295,+ "n": 297,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -3208,13 +3286,13 @@"p75_sec": 180.0},"ltx|i2v|balanced|121.0|M2 Max|64.0|any": {- "n": 104,+ "n": 108,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M2 Max|96.0|any": {- "n": 55,+ "n": 56,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -3250,10 +3328,10 @@"p75_sec": 900.0},"ltx|i2v|balanced|121.0|M2|8.0|any": {- "n": 5,+ "n": 6,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 1125.0},"ltx|i2v|balanced|121.0|M3 Max|128.0|any": {"n": 4,@@ -3280,8 +3358,8 @@"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M3 Pro|18.0|any": {- "n": 11,- "p25_sec": 300.0,+ "n": 12,+ "p25_sec": 285.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -3292,8 +3370,8 @@"p75_sec": 90.0},"ltx|i2v|balanced|121.0|M3 Ultra|512.0|any": {- "n": 52,- "p25_sec": 165.0,+ "n": 54,+ "p25_sec": 195.0,"p50_sec": 300.0,"p75_sec": 420.0},@@ -3304,10 +3382,10 @@"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M3|16.0|any": {- "n": 4,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 540.0+ "p75_sec": 600.0},"ltx|i2v|balanced|121.0|M3|24.0|any": {"n": 3,@@ -3316,13 +3394,13 @@"p75_sec": 510.0},"ltx|i2v|balanced|121.0|M4 Max|128.0|any": {- "n": 25,+ "n": 26,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M4 Max|36.0|any": {- "n": 265,+ "n": 316,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -3346,7 +3424,7 @@"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M4 Pro|48.0|any": {- "n": 168,+ "n": 174,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -3358,13 +3436,13 @@"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M4|16.0|any": {- "n": 83,+ "n": 84,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M4|24.0|any": {- "n": 81,+ "n": 94,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3376,7 +3454,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M5 Max|128.0|any": {- "n": 71,+ "n": 78,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -3394,7 +3472,7 @@"p75_sec": 112.5},"ltx|i2v|balanced|121.0|M5 Max|64.0|any": {- "n": 68,+ "n": 73,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -3412,7 +3490,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M5 Pro|64.0|any": {- "n": 176,+ "n": 178,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -3442,7 +3520,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|145.0|M4 Pro|48.0|any": {- "n": 95,+ "n": 100,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -3453,6 +3531,12 @@"p50_sec": 120.0,"p75_sec": 180.0},+ "ltx|i2v|balanced|145.0|M5 Pro|64.0|any": {+ "n": 5,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0+ },"ltx|i2v|balanced|169.0|M1 Max|32.0|any": {"n": 9,"p25_sec": 240.0,@@ -3460,10 +3544,10 @@"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M1 Max|64.0|any": {- "n": 21,+ "n": 23,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 510.0},"ltx|i2v|balanced|169.0|M1 Pro|16.0|any": {"n": 14,@@ -3484,10 +3568,10 @@"p75_sec": 450.0},"ltx|i2v|balanced|169.0|M2 Max|96.0|any": {- "n": 3,+ "n": 13,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 360.0+ "p75_sec": 300.0},"ltx|i2v|balanced|169.0|M2 Pro|32.0|any": {"n": 4,@@ -3519,6 +3603,12 @@"p50_sec": 120.0,"p75_sec": 120.0},+ "ltx|i2v|balanced|169.0|M3 Ultra|512.0|any": {+ "n": 3,+ "p25_sec": 120.0,+ "p50_sec": 120.0,+ "p75_sec": 360.0+ },"ltx|i2v|balanced|169.0|M4 Max|36.0|any": {"n": 157,"p25_sec": 120.0,@@ -3544,7 +3634,7 @@"p75_sec": 285.0},"ltx|i2v|balanced|169.0|M4 Pro|48.0|any": {- "n": 46,+ "n": 53,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3556,10 +3646,10 @@"p75_sec": 600.0},"ltx|i2v|balanced|169.0|M4|16.0|any": {- "n": 4,+ "n": 5,"p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 975.0+ "p50_sec": 600.0,+ "p75_sec": 900.0},"ltx|i2v|balanced|169.0|M4|24.0|any": {"n": 95,@@ -3574,9 +3664,9 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M5 Max|128.0|any": {- "n": 7,+ "n": 8,"p25_sec": 90.0,- "p50_sec": 120.0,+ "p50_sec": 105.0,"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M5 Max|64.0|any": {@@ -3598,7 +3688,7 @@"p75_sec": 180.0},"ltx|i2v|balanced|169.0|M5 Pro|64.0|any": {- "n": 25,+ "n": 26,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -3634,7 +3724,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|193.0|M4 Pro|48.0|any": {- "n": 123,+ "n": 129,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3652,7 +3742,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|217.0|M4 Pro|48.0|any": {- "n": 4,+ "n": 7,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -3664,13 +3754,13 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M1 Max|32.0|any": {- "n": 40,+ "n": 42,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M1 Max|64.0|any": {- "n": 80,+ "n": 83,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -3706,7 +3796,7 @@"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M2 Max|64.0|any": {- "n": 33,+ "n": 36,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -3742,7 +3832,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M2|16.0|any": {- "n": 9,+ "n": 11,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -3778,10 +3868,10 @@"p75_sec": 180.0},"ltx|i2v|balanced|241.0|M3 Ultra|512.0|any": {- "n": 6,- "p25_sec": 375.0,+ "n": 7,+ "p25_sec": 450.0,"p50_sec": 600.0,- "p75_sec": 825.0+ "p75_sec": 900.0},"ltx|i2v|balanced|241.0|M3 Ultra|96.0|any": {"n": 7,@@ -3802,7 +3892,7 @@"p75_sec": 510.0},"ltx|i2v|balanced|241.0|M4 Max|36.0|any": {- "n": 47,+ "n": 48,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -3820,13 +3910,13 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|24.0|any": {- "n": 326,+ "n": 329,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|48.0|any": {- "n": 189,+ "n": 193,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -3838,14 +3928,14 @@"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M4|16.0|any": {- "n": 84,+ "n": 94,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4|24.0|any": {- "n": 39,- "p25_sec": 600.0,+ "n": 42,+ "p25_sec": 675.0,"p50_sec": 900.0,"p75_sec": 1200.0},@@ -3868,10 +3958,10 @@"p75_sec": 240.0},"ltx|i2v|balanced|241.0|M5 Max|64.0|any": {- "n": 11,+ "n": 12,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 420.0},"ltx|i2v|balanced|241.0|M5 Pro|24.0|any": {"n": 47,@@ -3880,16 +3970,16 @@"p75_sec": 120.0},"ltx|i2v|balanced|241.0|M5 Pro|48.0|any": {- "n": 419,+ "n": 423,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M5 Pro|64.0|any": {- "n": 43,+ "n": 51,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 360.0+ "p75_sec": 300.0},"ltx|i2v|balanced|241.0|M5|16.0|any": {"n": 18,@@ -3922,7 +4012,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|289.0|M4 Pro|48.0|any": {- "n": 19,+ "n": 20,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3993,6 +4083,12 @@"p50_sec": 600.0,"p75_sec": 600.0},+ "ltx|i2v|balanced|481.0|M1 Max|32.0|any": {+ "n": 6,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 300.0+ },"ltx|i2v|balanced|481.0|M4 Max|128.0|any": {"n": 16,"p25_sec": 600.0,@@ -4090,10 +4186,10 @@"p75_sec": 120.0},"ltx|i2v|balanced|73.0|M1 Max|64.0|any": {- "n": 8,- "p25_sec": 165.0,- "p50_sec": 210.0,- "p75_sec": 255.0+ "n": 10,+ "p25_sec": 180.0,+ "p50_sec": 240.0,+ "p75_sec": 285.0},"ltx|i2v|balanced|73.0|M1 Pro|16.0|any": {"n": 3,@@ -4150,7 +4246,7 @@"p75_sec": 180.0},"ltx|i2v|balanced|73.0|M4 Max|36.0|any": {- "n": 148,+ "n": 199,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -4269,6 +4365,12 @@"p50_sec": 90.0,"p75_sec": 90.0},+ "ltx|i2v|balanced|97.0|M5 Pro|64.0|any": {+ "n": 6,+ "p25_sec": 90.0,+ "p50_sec": 90.0,+ "p75_sec": 112.5+ },"ltx|i2v|draft|121.0|M5 Pro|48.0|any": {"n": 3,"p25_sec": 120.0,@@ -4293,6 +4395,12 @@"p50_sec": 420.0,"p75_sec": 420.0},+ "ltx|i2v|high_720p|241.0|M1 Max|64.0|any": {+ "n": 3,+ "p25_sec": 1500.0,+ "p50_sec": 1800.0,+ "p75_sec": 2100.0+ },"ltx|i2v|high_720p|241.0|M2 Max|64.0|any": {"n": 18,"p25_sec": 1200.0,@@ -4348,10 +4456,10 @@"p75_sec": 240.0},"ltx|i2v|high|121.0|M4 Max|128.0|any": {- "n": 32,+ "n": 46,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 900.0+ "p75_sec": 420.0},"ltx|i2v|high|121.0|M4 Max|48.0|any": {"n": 3,@@ -4456,9 +4564,9 @@"p75_sec": 900.0},"ltx|i2v|high|241.0|M2 Max|64.0|any": {- "n": 13,+ "n": 14,"p25_sec": 600.0,- "p50_sec": 900.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"ltx|i2v|high|241.0|M2 Ultra|128.0|any": {@@ -4546,10 +4654,10 @@"p75_sec": 600.0},"ltx|i2v|high|241.0|M5 Pro|64.0|any": {- "n": 4,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 420.0},"ltx|i2v|high|289.0|M2 Ultra|64.0|any": {"n": 3,@@ -4660,13 +4768,13 @@"p75_sec": 240.0},"ltx|i2v|quick|121.0|M1 Max|32.0|any": {- "n": 26,- "p25_sec": 195.0,+ "n": 28,+ "p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 255.0},"ltx|i2v|quick|121.0|M1 Max|64.0|any": {- "n": 19,+ "n": 21,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -4678,7 +4786,7 @@"p75_sec": 300.0},"ltx|i2v|quick|121.0|M1 Pro|32.0|any": {- "n": 9,+ "n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -4822,7 +4930,7 @@"p75_sec": 180.0},"ltx|i2v|quick|169.0|M1 Max|64.0|any": {- "n": 11,+ "n": 13,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -4870,16 +4978,16 @@"p75_sec": 120.0},"ltx|i2v|quick|241.0|M1 Max|32.0|any": {- "n": 10,+ "n": 23,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|quick|241.0|M1 Max|64.0|any": {- "n": 10,+ "n": 12,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 540.0},"ltx|i2v|quick|241.0|M1 Pro|16.0|any": {"n": 5,@@ -4990,9 +5098,9 @@"p75_sec": 60.0},"ltx|i2v|quick|481.0|M1 Max|32.0|any": {- "n": 7,+ "n": 9,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|481.0|M1 Max|64.0|any": {@@ -5062,7 +5170,7 @@"p75_sec": 1485.0},"ltx|i2v|quick|481.0|M5 Pro|48.0|any": {- "n": 41,+ "n": 42,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5104,16 +5212,16 @@"p75_sec": 180.0},"ltx|i2v|quick|73.0|M1 Max|32.0|any": {- "n": 3,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|73.0|M1 Max|64.0|any": {- "n": 11,+ "n": 13,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 150.0+ "p75_sec": 180.0},"ltx|i2v|quick|73.0|M1 Pro|16.0|any": {"n": 3,@@ -5332,8 +5440,8 @@"p75_sec": 420.0},"ltx|i2v|standard|121.0|M3 Ultra|512.0|any": {- "n": 54,- "p25_sec": 255.0,+ "n": 56,+ "p25_sec": 225.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -5344,7 +5452,7 @@"p75_sec": 600.0},"ltx|i2v|standard|121.0|M4 Max|36.0|any": {- "n": 23,+ "n": 24,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -5368,7 +5476,7 @@"p75_sec": 240.0},"ltx|i2v|standard|121.0|M4 Pro|48.0|any": {- "n": 92,+ "n": 97,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5410,7 +5518,7 @@"p75_sec": 120.0},"ltx|i2v|standard|121.0|M5 Pro|24.0|any": {- "n": 21,+ "n": 22,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0@@ -5482,9 +5590,9 @@"p75_sec": 420.0},"ltx|i2v|standard|169.0|M1 Max|64.0|any": {- "n": 9,+ "n": 16,"p25_sec": 600.0,- "p50_sec": 900.0,+ "p50_sec": 600.0,"p75_sec": 900.0},"ltx|i2v|standard|169.0|M1 Pro|16.0|any": {@@ -5500,7 +5608,7 @@"p75_sec": 180.0},"ltx|i2v|standard|169.0|M2 Max|96.0|any": {- "n": 53,+ "n": 66,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -5560,7 +5668,7 @@"p75_sec": 240.0},"ltx|i2v|standard|169.0|M4 Pro|48.0|any": {- "n": 56,+ "n": 67,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -5662,7 +5770,7 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M1 Max|64.0|any": {- "n": 29,+ "n": 32,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -5734,10 +5842,10 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M2|16.0|any": {- "n": 9,+ "n": 11,"p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1200.0+ "p75_sec": 1800.0},"ltx|i2v|standard|241.0|M3 Pro|18.0|any": {"n": 18,@@ -5788,7 +5896,7 @@"p75_sec": 300.0},"ltx|i2v|standard|241.0|M4 Pro|48.0|any": {- "n": 34,+ "n": 43,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -5824,7 +5932,7 @@"p75_sec": 120.0},"ltx|i2v|standard|241.0|M5 Max|64.0|any": {- "n": 39,+ "n": 45,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -6292,8 +6400,8 @@"p75_sec": 300.0},"ltx|keyframe|high|121.0|M5 Max|128.0|any": {- "n": 34,- "p25_sec": 255.0,+ "n": 39,+ "p25_sec": 210.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -6435,6 +6543,12 @@"p50_sec": 1800.0,"p75_sec": 2400.0},+ "ltx|keyframe|standard|241.0|M2 Max|96.0|any": {+ "n": 3,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"ltx|keyframe|standard|241.0|M2 Ultra|64.0|any": {"n": 6,"p25_sec": 300.0,@@ -6490,7 +6604,7 @@"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M1 Max|64.0|any": {- "n": 163,+ "n": 167,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -6502,7 +6616,7 @@"p75_sec": 600.0},"ltx|t2v|balanced|121.0|M1 Pro|32.0|any": {- "n": 5,+ "n": 7,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -6538,7 +6652,7 @@"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M2 Max|64.0|any": {- "n": 62,+ "n": 63,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -6610,10 +6724,10 @@"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M3 Pro|18.0|any": {- "n": 13,- "p25_sec": 180.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "n": 14,+ "p25_sec": 195.0,+ "p50_sec": 510.0,+ "p75_sec": 825.0},"ltx|t2v|balanced|121.0|M3 Pro|36.0|any": {"n": 5,@@ -6652,13 +6766,13 @@"p75_sec": 1200.0},"ltx|t2v|balanced|121.0|M4 Max|128.0|any": {- "n": 140,+ "n": 141,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Max|36.0|any": {- "n": 93,+ "n": 96,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 180.0@@ -6670,7 +6784,7 @@"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Max|64.0|any": {- "n": 523,+ "n": 524,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -6700,10 +6814,10 @@"p75_sec": 900.0},"ltx|t2v|balanced|121.0|M4|24.0|any": {- "n": 22,+ "n": 27,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 510.0},"ltx|t2v|balanced|121.0|M4|32.0|any": {"n": 12,@@ -6730,31 +6844,31 @@"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M5 Max|64.0|any": {- "n": 51,+ "n": 52,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|24.0|any": {- "n": 19,+ "n": 21,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|48.0|any": {- "n": 83,+ "n": 84,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5 Pro|64.0|any": {- "n": 102,+ "n": 104,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5|16.0|any": {- "n": 38,+ "n": 40,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 420.0@@ -6766,7 +6880,7 @@"p75_sec": 450.0},"ltx|t2v|balanced|121.0|M5|32.0|any": {- "n": 11,+ "n": 12,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -6934,10 +7048,10 @@"p75_sec": 330.0},"ltx|t2v|balanced|241.0|M1 Max|64.0|any": {- "n": 35,- "p25_sec": 180.0,+ "n": 42,+ "p25_sec": 240.0,"p50_sec": 420.0,- "p75_sec": 750.0+ "p75_sec": 600.0},"ltx|t2v|balanced|241.0|M1 Pro|16.0|any": {"n": 5,@@ -7084,10 +7198,10 @@"p75_sec": 180.0},"ltx|t2v|balanced|241.0|M5 Max|64.0|any": {- "n": 18,+ "n": 20,"p25_sec": 120.0,- "p50_sec": 150.0,- "p75_sec": 240.0+ "p50_sec": 180.0,+ "p75_sec": 285.0},"ltx|t2v|balanced|241.0|M5 Pro|48.0|any": {"n": 19,@@ -7102,7 +7216,7 @@"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M5|16.0|any": {- "n": 19,+ "n": 23,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -7300,9 +7414,9 @@"p75_sec": 60.0},"ltx|t2v|balanced|73.0|M5 Pro|64.0|any": {- "n": 3,- "p25_sec": 75.0,- "p50_sec": 90.0,+ "n": 4,+ "p25_sec": 60.0,+ "p50_sec": 75.0,"p75_sec": 90.0},"ltx|t2v|balanced|73.0|M5|24.0|any": {@@ -7450,7 +7564,7 @@"p75_sec": 675.0},"ltx|t2v|high|121.0|M4 Max|128.0|any": {- "n": 70,+ "n": 76,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -7468,7 +7582,7 @@"p75_sec": 600.0},"ltx|t2v|high|121.0|M4 Pro|64.0|any": {- "n": 4,+ "n": 6,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -7486,9 +7600,9 @@"p75_sec": 112.5},"ltx|t2v|high|121.0|M5 Max|64.0|any": {- "n": 4,+ "n": 5,"p25_sec": 120.0,- "p50_sec": 150.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|high|121.0|M5 Pro|48.0|any": {@@ -7588,9 +7702,9 @@"p75_sec": 300.0},"ltx|t2v|high|241.0|M4 Max|128.0|any": {- "n": 22,+ "n": 27,"p25_sec": 900.0,- "p50_sec": 1050.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|high|241.0|M4 Max|48.0|any": {@@ -7738,10 +7852,10 @@"p75_sec": 240.0},"ltx|t2v|quick|121.0|M1 Max|64.0|any": {- "n": 46,+ "n": 55,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 150.0},"ltx|t2v|quick|121.0|M1 Pro|16.0|any": {"n": 13,@@ -7749,6 +7863,12 @@"p50_sec": 300.0,"p75_sec": 420.0},+ "ltx|t2v|quick|121.0|M1 Pro|32.0|any": {+ "n": 3,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 300.0+ },"ltx|t2v|quick|121.0|M1 Ultra|128.0|any": {"n": 11,"p25_sec": 90.0,@@ -7828,7 +7948,7 @@"p75_sec": 975.0},"ltx|t2v|quick|121.0|M4 Max|128.0|any": {- "n": 21,+ "n": 22,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -7870,8 +7990,8 @@"p75_sec": 465.0},"ltx|t2v|quick|121.0|M4|24.0|any": {- "n": 11,- "p25_sec": 270.0,+ "n": 13,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -8008,7 +8128,7 @@"p75_sec": 600.0},"ltx|t2v|quick|241.0|M1 Max|64.0|any": {- "n": 29,+ "n": 30,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -8254,7 +8374,7 @@"p75_sec": 30.0},"ltx|t2v|quick|73.0|M1 Max|32.0|any": {- "n": 11,+ "n": 14,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -8271,6 +8391,12 @@"p50_sec": 420.0,"p75_sec": 420.0},+ "ltx|t2v|quick|73.0|M1 Pro|32.0|any": {+ "n": 4,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 195.0+ },"ltx|t2v|quick|73.0|M1 Ultra|128.0|any": {"n": 8,"p25_sec": 60.0,@@ -8602,7 +8728,7 @@"p75_sec": 60.0},"ltx|t2v|standard|121.0|M5 Max|64.0|any": {- "n": 32,+ "n": 33,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -8848,7 +8974,7 @@"p75_sec": 420.0},"ltx|t2v|standard|241.0|M5 Pro|24.0|any": {- "n": 16,+ "n": 18,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -8932,9 +9058,9 @@"p75_sec": 22.5},"ltx|t2v|standard|57.0|M3 Ultra|512.0|any": {- "n": 34,+ "n": 35,"p25_sec": 60.0,- "p50_sec": 150.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|standard|73.0|M1 Max|32.0|any": {@@ -9053,10 +9179,10 @@"p75_sec": 900.0},"h3|i2v|draft_10s_dense|243.0|M5 Pro|best": {- "n": 3,+ "n": 7,"p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "p50_sec": 1200.0,+ "p75_sec": 1200.0},"h3|i2v|draft_10s_dense|243.0|M5 Pro|fast": {"n": 5,@@ -9113,13 +9239,13 @@"p75_sec": 120.0},"h3|i2v|draft_10s|243.0|M5 Pro|best": {- "n": 13,- "p25_sec": 420.0,+ "n": 20,+ "p25_sec": 555.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M5 Pro|fast": {- "n": 26,+ "n": 30,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -9299,9 +9425,9 @@"p75_sec": 600.0},"h3|i2v|draft_5s|124.0|M3 Ultra|fast": {- "n": 19,+ "n": 20,"p25_sec": 90.0,- "p50_sec": 90.0,+ "p50_sec": 105.0,"p75_sec": 120.0},"h3|i2v|draft_5s|124.0|M4 Max|fast": {@@ -9329,13 +9455,13 @@"p75_sec": 90.0},"h3|i2v|draft_5s|124.0|M5 Pro|best": {- "n": 7,+ "n": 16,"p25_sec": 240.0,- "p50_sec": 240.0,+ "p50_sec": 270.0,"p75_sec": 300.0},"h3|i2v|draft_5s|124.0|M5 Pro|fast": {- "n": 35,+ "n": 36,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -9461,7 +9587,7 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M4 Max|fast": {- "n": 594,+ "n": 615,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -9605,10 +9731,10 @@"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M4 Max|fast": {- "n": 160,+ "n": 165,"p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"h3|i2v|high_5s|124.0|M4 Pro|fast": {"n": 8,@@ -9635,7 +9761,7 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M5 Pro|fast": {- "n": 233,+ "n": 252,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -9737,7 +9863,7 @@"p75_sec": 900.0},"h3|i2v|native_5s|124.0|M5 Pro|best": {- "n": 5,+ "n": 7,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -9778,6 +9904,12 @@"p50_sec": 1200.0,"p75_sec": 1200.0},+ "h3|i2v|standard_10s_dense|243.0|M5 Max|best": {+ "n": 5,+ "p25_sec": 900.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0+ },"h3|i2v|standard_10s_dense|243.0|M5 Max|fast": {"n": 6,"p25_sec": 300.0,@@ -9803,7 +9935,7 @@"p75_sec": 600.0},"h3|i2v|standard_10s|243.0|M2 Max|fast": {- "n": 9,+ "n": 14,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -9827,10 +9959,10 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M3 Ultra|fast": {- "n": 6,+ "n": 10,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 600.0},"h3|i2v|standard_10s|243.0|M4 Max|best": {"n": 49,@@ -9863,14 +9995,14 @@"p75_sec": 555.0},"h3|i2v|standard_10s|243.0|M5 Max|fast": {- "n": 21,+ "n": 22,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"h3|i2v|standard_10s|243.0|M5 Pro|best": {- "n": 6,- "p25_sec": 900.0,+ "n": 7,+ "p25_sec": 750.0,"p50_sec": 900.0,"p75_sec": 900.0},@@ -9923,7 +10055,7 @@"p75_sec": 1050.0},"h3|i2v|standard_15s|362.0|M5 Max|fast": {- "n": 27,+ "n": 28,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -9947,10 +10079,10 @@"p75_sec": 1200.0},"h3|i2v|standard_3s|73.0|M2 Max|best": {- "n": 5,+ "n": 6,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 555.0},"h3|i2v|standard_3s|73.0|M3 Max|fast": {"n": 9,@@ -9965,7 +10097,7 @@"p75_sec": 180.0},"h3|i2v|standard_3s|73.0|M5 Max|best": {- "n": 26,+ "n": 37,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -10012,6 +10144,12 @@"p50_sec": 300.0,"p75_sec": 300.0},+ "h3|i2v|standard_5s|124.0|M2 Max|fast": {+ "n": 3,+ "p25_sec": 420.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0+ },"h3|i2v|standard_5s|124.0|M2 Ultra|best": {"n": 7,"p25_sec": 600.0,@@ -10019,9 +10157,9 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M2 Ultra|fast": {- "n": 3,- "p25_sec": 270.0,- "p50_sec": 300.0,+ "n": 4,+ "p25_sec": 240.0,+ "p50_sec": 270.0,"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|M3 Max|best": {@@ -10043,10 +10181,10 @@"p75_sec": 900.0},"h3|i2v|standard_5s|124.0|M3 Ultra|fast": {- "n": 26,- "p25_sec": 180.0,+ "n": 28,+ "p25_sec": 165.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 330.0},"h3|i2v|standard_5s|124.0|M4 Max|best": {"n": 7,@@ -10055,7 +10193,7 @@"p75_sec": 1050.0},"h3|i2v|standard_5s|124.0|M4 Max|fast": {- "n": 261,+ "n": 267,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -10067,7 +10205,7 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M5 Max|best": {- "n": 78,+ "n": 91,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -10265,8 +10403,8 @@"p75_sec": 150.0},"h3|t2v|draft_3s|73.0|M2 Max|best": {- "n": 4,- "p25_sec": 390.0,+ "n": 5,+ "p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -10319,10 +10457,10 @@"p75_sec": 300.0},"h3|t2v|draft_3s|73.0|M4 Max|fast": {- "n": 23,+ "n": 34,"p25_sec": 90.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "p50_sec": 120.0,+ "p75_sec": 225.0},"h3|t2v|draft_3s|73.0|M4 Pro|best": {"n": 7,@@ -10427,8 +10565,8 @@"p75_sec": 420.0},"h3|t2v|draft_5s|124.0|M4 Max|fast": {- "n": 27,- "p25_sec": 240.0,+ "n": 33,+ "p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -10636,6 +10774,12 @@"p50_sec": 1200.0,"p75_sec": 1800.0},+ "h3|t2v|high_5s|124.0|M2 Max|best": {+ "n": 4,+ "p25_sec": 3150.0,+ "p50_sec": 3600.0,+ "p75_sec": 3600.0+ },"h3|t2v|high_5s|124.0|M2 Max|fast": {"n": 13,"p25_sec": 600.0,@@ -10739,7 +10883,7 @@"p75_sec": 1200.0},"h3|t2v|native_3s|73.0|M4 Max|fast": {- "n": 5,+ "n": 13,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -10769,16 +10913,16 @@"p75_sec": 1800.0},"h3|t2v|native_5s|124.0|M4 Max|best": {- "n": 9,+ "n": 15,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|native_5s|124.0|M4 Max|fast": {- "n": 3,- "p25_sec": 1050.0,+ "n": 6,+ "p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1800.0+ "p75_sec": 1200.0},"h3|t2v|standard_10s_dense|243.0|M4 Max|fast": {"n": 6,@@ -11015,10 +11159,10 @@"p75_sec": 420.0},"h3|t2v|standard_5s|124.0|M2 Max|best": {- "n": 6,+ "n": 16,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 1200.0},"h3|t2v|standard_5s|124.0|M2 Max|fast": {"n": 5,@@ -11111,13 +11255,13 @@"p75_sec": 420.0},"ltx|a2v|balanced|121.0|M4 Max|any": {- "n": 10,+ "n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 600.0},"ltx|a2v|balanced|121.0|M4 Pro|any": {- "n": 15,+ "n": 16,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -11183,8 +11327,14 @@"p75_sec": 120.0},"ltx|a2v|balanced|161.0|M4 Pro|any": {- "n": 4,- "p25_sec": 555.0,+ "n": 5,+ "p25_sec": 600.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0+ },+ "ltx|a2v|balanced|169.0|M4 Pro|any": {+ "n": 3,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -11201,11 +11351,17 @@"p75_sec": 420.0},"ltx|a2v|balanced|193.0|M4 Pro|any": {- "n": 4,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},+ "ltx|a2v|balanced|201.0|M4 Pro|any": {+ "n": 4,+ "p25_sec": 600.0,+ "p50_sec": 750.0,+ "p75_sec": 900.0+ },"ltx|a2v|balanced|209.0|M4 Pro|any": {"n": 3,"p25_sec": 900.0,@@ -11213,13 +11369,13 @@"p75_sec": 900.0},"ltx|a2v|balanced|217.0|M4 Pro|any": {- "n": 38,- "p25_sec": 675.0,+ "n": 46,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|M4 Pro|any": {- "n": 23,+ "n": 30,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -11483,15 +11639,15 @@"p75_sec": 600.0},"ltx|a2v|high|241.0|M4 Max|any": {- "n": 13,+ "n": 14,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 810.0,"p75_sec": 1200.0},"ltx|a2v|high|241.0|M4 Pro|any": {- "n": 19,- "p25_sec": 1200.0,- "p50_sec": 1800.0,+ "n": 31,+ "p25_sec": 420.0,+ "p50_sec": 600.0,"p75_sec": 1800.0},"ltx|a2v|high|241.0|M5 Max|any": {@@ -11506,6 +11662,12 @@"p50_sec": 300.0,"p75_sec": 300.0},+ "ltx|a2v|high|241.0|M5|any": {+ "n": 3,+ "p25_sec": 360.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0+ },"ltx|a2v|high|265.0|M1 Ultra|any": {"n": 4,"p25_sec": 600.0,@@ -11596,6 +11758,12 @@"p50_sec": 900.0,"p75_sec": 900.0},+ "ltx|a2v|high|721.0|M4 Pro|any": {+ "n": 3,+ "p25_sec": 3900.0,+ "p50_sec": 5400.0,+ "p75_sec": 5400.0+ },"ltx|a2v|high|73.0|M4 Max|any": {"n": 3,"p25_sec": 450.0,@@ -11626,6 +11794,12 @@"p50_sec": 1350.0,"p75_sec": 1800.0},+ "ltx|a2v|high|97.0|M4 Pro|any": {+ "n": 3,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"ltx|a2v|high|97.0|M5 Max|any": {"n": 3,"p25_sec": 165.0,@@ -11831,7 +12005,7 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M1 Max|any": {- "n": 335,+ "n": 338,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -11855,7 +12029,7 @@"p75_sec": 1200.0},"ltx|i2v|balanced|121.0|M2 Max|any": {- "n": 301,+ "n": 306,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -11873,7 +12047,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M2|any": {- "n": 13,+ "n": 14,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -11885,49 +12059,49 @@"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M3 Pro|any": {- "n": 11,- "p25_sec": 300.0,+ "n": 12,+ "p25_sec": 285.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M3 Ultra|any": {- "n": 193,+ "n": 195,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M3|any": {- "n": 8,+ "n": 9,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M4 Max|any": {- "n": 398,+ "n": 450,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M4 Pro|any": {- "n": 310,+ "n": 316,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M4|any": {- "n": 168,+ "n": 182,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M5 Max|any": {- "n": 152,+ "n": 164,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|i2v|balanced|121.0|M5 Pro|any": {- "n": 416,+ "n": 418,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -11957,19 +12131,19 @@"p75_sec": 300.0},"ltx|i2v|balanced|145.0|M4 Pro|any": {- "n": 95,+ "n": 100,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|145.0|M5 Pro|any": {- "n": 95,+ "n": 99,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|balanced|169.0|M1 Max|any": {- "n": 30,+ "n": 32,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -11981,7 +12155,7 @@"p75_sec": 600.0},"ltx|i2v|balanced|169.0|M2 Max|any": {- "n": 13,+ "n": 23,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -12011,7 +12185,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M3 Ultra|any": {- "n": 12,+ "n": 13,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12023,25 +12197,25 @@"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M4 Pro|any": {- "n": 57,+ "n": 64,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M4|any": {- "n": 104,+ "n": 105,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|169.0|M5 Max|any": {- "n": 19,+ "n": 20,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M5 Pro|any": {- "n": 101,+ "n": 102,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -12083,7 +12257,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|193.0|M4 Pro|any": {- "n": 123,+ "n": 129,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -12095,7 +12269,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|217.0|M4 Pro|any": {- "n": 4,+ "n": 7,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -12107,7 +12281,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M1 Max|any": {- "n": 120,+ "n": 125,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -12131,7 +12305,7 @@"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M2 Max|any": {- "n": 97,+ "n": 100,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -12149,7 +12323,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M2|any": {- "n": 9,+ "n": 11,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -12167,7 +12341,7 @@"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M3 Ultra|any": {- "n": 80,+ "n": 81,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -12179,31 +12353,31 @@"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4 Max|any": {- "n": 161,+ "n": 162,"p25_sec": 180.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|any": {- "n": 530,+ "n": 537,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M4|any": {- "n": 136,+ "n": 149,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M5 Max|any": {- "n": 625,+ "n": 626,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|241.0|M5 Pro|any": {- "n": 509,+ "n": 521,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -12227,7 +12401,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|289.0|M4 Pro|any": {- "n": 19,+ "n": 20,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -12286,6 +12460,12 @@"p50_sec": 600.0,"p75_sec": 600.0},+ "ltx|i2v|balanced|481.0|M1 Max|any": {+ "n": 6,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 300.0+ },"ltx|i2v|balanced|481.0|M4 Max|any": {"n": 17,"p25_sec": 600.0,@@ -12365,10 +12545,10 @@"p75_sec": 1800.0},"ltx|i2v|balanced|73.0|M1 Max|any": {- "n": 15,+ "n": 17,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 210.0+ "p75_sec": 240.0},"ltx|i2v|balanced|73.0|M1 Pro|any": {"n": 3,@@ -12413,7 +12593,7 @@"p75_sec": 750.0},"ltx|i2v|balanced|73.0|M4 Max|any": {- "n": 178,+ "n": 229,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -12479,7 +12659,7 @@"p75_sec": 60.0},"ltx|i2v|balanced|97.0|M5 Pro|any": {- "n": 24,+ "n": 28,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -12508,6 +12688,12 @@"p50_sec": 420.0,"p75_sec": 420.0},+ "ltx|i2v|high_720p|241.0|M1 Max|any": {+ "n": 3,+ "p25_sec": 1500.0,+ "p50_sec": 1800.0,+ "p75_sec": 2100.0+ },"ltx|i2v|high_720p|241.0|M2 Max|any": {"n": 18,"p25_sec": 1200.0,@@ -12551,9 +12737,9 @@"p75_sec": 240.0},"ltx|i2v|high|121.0|M4 Max|any": {- "n": 77,+ "n": 91,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|high|121.0|M4 Pro|any": {@@ -12623,9 +12809,9 @@"p75_sec": 900.0},"ltx|i2v|high|241.0|M2 Max|any": {- "n": 14,+ "n": 15,"p25_sec": 600.0,- "p50_sec": 750.0,+ "p50_sec": 600.0,"p75_sec": 900.0},"ltx|i2v|high|241.0|M2 Ultra|any": {@@ -12665,9 +12851,9 @@"p75_sec": 420.0},"ltx|i2v|high|241.0|M5 Pro|any": {- "n": 7,+ "n": 8,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 510.0,"p75_sec": 600.0},"ltx|i2v|high|289.0|M2 Ultra|any": {@@ -12773,13 +12959,13 @@"p75_sec": 240.0},"ltx|i2v|quick|121.0|M1 Max|any": {- "n": 45,+ "n": 49,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|quick|121.0|M1 Pro|any": {- "n": 20,+ "n": 22,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -12869,7 +13055,7 @@"p75_sec": 180.0},"ltx|i2v|quick|169.0|M1 Max|any": {- "n": 12,+ "n": 14,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -12917,7 +13103,7 @@"p75_sec": 240.0},"ltx|i2v|quick|241.0|M1 Max|any": {- "n": 20,+ "n": 35,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -12977,10 +13163,10 @@"p75_sec": 180.0},"ltx|i2v|quick|241.0|M5 Pro|any": {- "n": 22,+ "n": 23,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 210.0},"ltx|i2v|quick|241.0|M5|any": {"n": 8,@@ -13013,8 +13199,8 @@"p75_sec": 60.0},"ltx|i2v|quick|481.0|M1 Max|any": {- "n": 13,- "p25_sec": 420.0,+ "n": 15,+ "p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},@@ -13067,7 +13253,7 @@"p75_sec": 180.0},"ltx|i2v|quick|481.0|M5 Pro|any": {- "n": 50,+ "n": 51,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -13097,15 +13283,15 @@"p75_sec": 180.0},"ltx|i2v|quick|73.0|M1 Max|any": {- "n": 14,+ "n": 17,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|73.0|M1 Pro|any": {- "n": 3,- "p25_sec": 450.0,- "p50_sec": 600.0,+ "n": 5,+ "p25_sec": 180.0,+ "p50_sec": 300.0,"p75_sec": 600.0},"ltx|i2v|quick|73.0|M1|any": {@@ -13121,8 +13307,8 @@"p75_sec": 97.5},"ltx|i2v|quick|73.0|M2|any": {- "n": 3,- "p25_sec": 240.0,+ "n": 4,+ "p25_sec": 225.0,"p50_sec": 240.0,"p75_sec": 240.0},@@ -13253,7 +13439,7 @@"p75_sec": 1500.0},"ltx|i2v|standard|121.0|M3 Ultra|any": {- "n": 62,+ "n": 64,"p25_sec": 180.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -13265,13 +13451,13 @@"p75_sec": 420.0},"ltx|i2v|standard|121.0|M4 Max|any": {- "n": 140,- "p25_sec": 165.0,+ "n": 141,+ "p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|standard|121.0|M4 Pro|any": {- "n": 196,+ "n": 201,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -13289,7 +13475,7 @@"p75_sec": 180.0},"ltx|i2v|standard|121.0|M5 Pro|any": {- "n": 147,+ "n": 148,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -13331,7 +13517,7 @@"p75_sec": 210.0},"ltx|i2v|standard|169.0|M1 Max|any": {- "n": 129,+ "n": 136,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -13349,7 +13535,7 @@"p75_sec": 420.0},"ltx|i2v|standard|169.0|M2 Max|any": {- "n": 60,+ "n": 73,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -13379,7 +13565,7 @@"p75_sec": 240.0},"ltx|i2v|standard|169.0|M4 Pro|any": {- "n": 114,+ "n": 125,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -13439,7 +13625,7 @@"p75_sec": 420.0},"ltx|i2v|standard|241.0|M1 Max|any": {- "n": 209,+ "n": 212,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -13481,10 +13667,10 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M2|any": {- "n": 9,+ "n": 11,"p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1200.0+ "p75_sec": 1800.0},"ltx|i2v|standard|241.0|M3 Max|any": {"n": 4,@@ -13499,10 +13685,10 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M3 Ultra|any": {- "n": 10,+ "n": 11,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 555.0+ "p75_sec": 900.0},"ltx|i2v|standard|241.0|M3|any": {"n": 3,@@ -13517,9 +13703,9 @@"p75_sec": 420.0},"ltx|i2v|standard|241.0|M4 Pro|any": {- "n": 101,+ "n": 110,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4|any": {@@ -13529,7 +13715,7 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M5 Max|any": {- "n": 92,+ "n": 98,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -13799,7 +13985,7 @@"p75_sec": 240.0},"ltx|keyframe|balanced|169.0|M2 Max|any": {- "n": 13,+ "n": 15,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -13925,8 +14111,8 @@"p75_sec": 750.0},"ltx|keyframe|high|121.0|M5 Max|any": {- "n": 34,- "p25_sec": 255.0,+ "n": 39,+ "p25_sec": 210.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -14080,6 +14266,12 @@"p50_sec": 1800.0,"p75_sec": 2400.0},+ "ltx|keyframe|standard|241.0|M2 Max|any": {+ "n": 4,+ "p25_sec": 1050.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0+ },"ltx|keyframe|standard|241.0|M2 Ultra|any": {"n": 6,"p25_sec": 300.0,@@ -14135,13 +14327,13 @@"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M1 Max|any": {- "n": 267,+ "n": 271,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M1 Pro|any": {- "n": 81,+ "n": 83,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -14159,7 +14351,7 @@"p75_sec": 900.0},"ltx|t2v|balanced|121.0|M2 Max|any": {- "n": 138,+ "n": 139,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -14189,9 +14381,9 @@"p75_sec": 255.0},"ltx|t2v|balanced|121.0|M3 Pro|any": {- "n": 18,+ "n": 19,"p25_sec": 180.0,- "p50_sec": 330.0,+ "p50_sec": 240.0,"p75_sec": 600.0},"ltx|t2v|balanced|121.0|M3 Ultra|any": {@@ -14207,7 +14399,7 @@"p75_sec": 1200.0},"ltx|t2v|balanced|121.0|M4 Max|any": {- "n": 770,+ "n": 775,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -14219,25 +14411,25 @@"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M4|any": {- "n": 66,+ "n": 71,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|121.0|M5 Max|any": {- "n": 167,+ "n": 168,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|any": {- "n": 204,+ "n": 209,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5|any": {- "n": 64,+ "n": 67,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -14363,9 +14555,9 @@"p75_sec": 420.0},"ltx|t2v|balanced|241.0|M1 Max|any": {- "n": 47,+ "n": 54,"p25_sec": 240.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M1 Pro|any": {@@ -14447,7 +14639,7 @@"p75_sec": 1200.0},"ltx|t2v|balanced|241.0|M5 Max|any": {- "n": 54,+ "n": 56,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -14459,7 +14651,7 @@"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M5|any": {- "n": 55,+ "n": 59,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -14615,7 +14807,7 @@"p75_sec": 45.0},"ltx|t2v|balanced|73.0|M5 Pro|any": {- "n": 12,+ "n": 13,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -14747,19 +14939,19 @@"p75_sec": 600.0},"ltx|t2v|high|121.0|M4 Max|any": {- "n": 85,+ "n": 91,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|t2v|high|121.0|M4 Pro|any": {- "n": 18,- "p25_sec": 600.0,+ "n": 20,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|high|121.0|M5 Max|any": {- "n": 19,+ "n": 20,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -14849,7 +15041,7 @@"p75_sec": 300.0},"ltx|t2v|high|241.0|M4 Max|any": {- "n": 49,+ "n": 54,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0@@ -14963,13 +15155,13 @@"p75_sec": 180.0},"ltx|t2v|quick|121.0|M1 Max|any": {- "n": 73,+ "n": 82,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 240.0+ "p75_sec": 180.0},"ltx|t2v|quick|121.0|M1 Pro|any": {- "n": 15,+ "n": 16,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -15017,7 +15209,7 @@"p75_sec": 975.0},"ltx|t2v|quick|121.0|M4 Max|any": {- "n": 47,+ "n": 48,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -15029,7 +15221,7 @@"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4|any": {- "n": 21,+ "n": 23,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -15119,7 +15311,7 @@"p75_sec": 180.0},"ltx|t2v|quick|241.0|M1 Max|any": {- "n": 36,+ "n": 37,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -15275,8 +15467,8 @@"p75_sec": 225.0},"ltx|t2v|quick|481.0|M5 Pro|any": {- "n": 29,- "p25_sec": 240.0,+ "n": 30,+ "p25_sec": 150.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -15329,14 +15521,14 @@"p75_sec": 30.0},"ltx|t2v|quick|73.0|M1 Max|any": {- "n": 30,+ "n": 33,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|quick|73.0|M1 Pro|any": {- "n": 11,- "p25_sec": 270.0,+ "n": 13,+ "p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -15533,7 +15725,7 @@"p75_sec": 390.0},"ltx|t2v|standard|121.0|M5 Max|any": {- "n": 85,+ "n": 86,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -15677,7 +15869,7 @@"p75_sec": 465.0},"ltx|t2v|standard|241.0|M5 Pro|any": {- "n": 29,+ "n": 31,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 240.0@@ -15737,9 +15929,9 @@"p75_sec": 22.5},"ltx|t2v|standard|57.0|M3 Ultra|any": {- "n": 34,+ "n": 35,"p25_sec": 60.0,- "p50_sec": 150.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|standard|73.0|M1 Max|any": {@@ -15821,9 +16013,9 @@"model": {"cells": {"h3|i2v|draft_10s_dense|243.0|best": {- "n": 12,- "p25_sec": 675.0,- "p50_sec": 2400.0,+ "n": 16,+ "p25_sec": 975.0,+ "p50_sec": 1200.0,"p75_sec": 2400.0},"h3|i2v|draft_10s_dense|243.0|fast": {@@ -15833,13 +16025,13 @@"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|best": {- "n": 50,+ "n": 59,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|fast": {- "n": 113,+ "n": 117,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -15857,7 +16049,7 @@"p75_sec": 900.0},"h3|i2v|draft_3s|73.0|best": {- "n": 108,+ "n": 109,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 420.0@@ -15869,13 +16061,13 @@"p75_sec": 180.0},"h3|i2v|draft_5s|124.0|best": {- "n": 86,- "p25_sec": 420.0,+ "n": 95,+ "p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_5s|124.0|fast": {- "n": 120,+ "n": 122,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -15911,7 +16103,7 @@"p75_sec": 5400.0},"h3|i2v|high_15s|362.0|fast": {- "n": 632,+ "n": 653,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -15935,7 +16127,7 @@"p75_sec": 1200.0},"h3|i2v|high_5s|124.0|fast": {- "n": 613,+ "n": 637,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 600.0@@ -15971,10 +16163,10 @@"p75_sec": 3600.0},"h3|i2v|native_3s|73.0|best": {- "n": 10,+ "n": 11,"p25_sec": 1200.0,"p50_sec": 1800.0,- "p75_sec": 1800.0+ "p75_sec": 1950.0},"h3|i2v|native_3s|73.0|fast": {"n": 28,@@ -15983,10 +16175,10 @@"p75_sec": 600.0},"h3|i2v|native_5s|124.0|best": {- "n": 46,+ "n": 48,"p25_sec": 2400.0,"p50_sec": 3600.0,- "p75_sec": 5400.0+ "p75_sec": 4500.0},"h3|i2v|native_5s|124.0|fast": {"n": 38,@@ -15995,10 +16187,10 @@"p75_sec": 1200.0},"h3|i2v|standard_10s_dense|243.0|best": {- "n": 30,- "p25_sec": 2400.0,+ "n": 35,+ "p25_sec": 1050.0,"p50_sec": 2400.0,- "p75_sec": 3600.0+ "p75_sec": 3000.0},"h3|i2v|standard_10s_dense|243.0|fast": {"n": 45,@@ -16007,13 +16199,13 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|best": {- "n": 150,+ "n": 151,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|fast": {- "n": 249,+ "n": 259,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -16025,16 +16217,16 @@"p75_sec": 3600.0},"h3|i2v|standard_15s|362.0|fast": {- "n": 90,+ "n": 92,"p25_sec": 420.0,"p50_sec": 900.0,"p75_sec": 1200.0},"h3|i2v|standard_3s|73.0|best": {- "n": 57,+ "n": 69,"p25_sec": 90.0,- "p50_sec": 180.0,- "p75_sec": 420.0+ "p50_sec": 120.0,+ "p75_sec": 300.0},"h3|i2v|standard_3s|73.0|fast": {"n": 46,@@ -16043,13 +16235,13 @@"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|best": {- "n": 193,+ "n": 207,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 900.0},"h3|i2v|standard_5s|124.0|fast": {- "n": 391,+ "n": 401,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -16103,13 +16295,13 @@"p75_sec": 1200.0},"h3|t2v|draft_3s|73.0|best": {- "n": 746,+ "n": 747,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"h3|t2v|draft_3s|73.0|fast": {- "n": 189,+ "n": 200,"p25_sec": 60.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -16121,7 +16313,7 @@"p75_sec": 600.0},"h3|t2v|draft_5s|124.0|fast": {- "n": 211,+ "n": 217,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -16139,7 +16331,7 @@"p75_sec": 1800.0},"h3|t2v|high_10s|243.0|best": {- "n": 29,+ "n": 30,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0@@ -16151,7 +16343,7 @@"p75_sec": 1650.0},"h3|t2v|high_15s|362.0|best": {- "n": 57,+ "n": 58,"p25_sec": 3600.0,"p50_sec": 5400.0,"p75_sec": 5400.0@@ -16175,10 +16367,10 @@"p75_sec": 240.0},"h3|t2v|high_5s|124.0|best": {- "n": 92,+ "n": 95,"p25_sec": 600.0,"p50_sec": 900.0,- "p75_sec": 1650.0+ "p75_sec": 1800.0},"h3|t2v|high_5s|124.0|fast": {"n": 95,@@ -16223,21 +16415,21 @@"p75_sec": 1800.0},"h3|t2v|native_3s|73.0|fast": {- "n": 13,- "p25_sec": 420.0,+ "n": 21,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|t2v|native_5s|124.0|best": {- "n": 16,+ "n": 22,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|native_5s|124.0|fast": {- "n": 18,+ "n": 21,"p25_sec": 900.0,- "p50_sec": 1800.0,+ "p50_sec": 1200.0,"p75_sec": 1800.0},"h3|t2v|standard_10s_dense|243.0|best": {@@ -16253,7 +16445,7 @@"p75_sec": 675.0},"h3|t2v|standard_10s|243.0|best": {- "n": 74,+ "n": 75,"p25_sec": 900.0,"p50_sec": 2400.0,"p75_sec": 2400.0@@ -16265,9 +16457,9 @@"p75_sec": 675.0},"h3|t2v|standard_15s|362.0|best": {- "n": 41,+ "n": 42,"p25_sec": 900.0,- "p50_sec": 1050.0,+ "p50_sec": 1200.0,"p75_sec": 3600.0},"h3|t2v|standard_15s|362.0|fast": {@@ -16289,7 +16481,7 @@"p75_sec": 240.0},"h3|t2v|standard_5s|124.0|best": {- "n": 158,+ "n": 168,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 1200.0@@ -16319,7 +16511,7 @@"p75_sec": 765.0},"ltx|a2v|balanced|121.0|any": {- "n": 82,+ "n": 84,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -16343,21 +16535,21 @@"p75_sec": 600.0},"ltx|a2v|balanced|153.0|any": {- "n": 3,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 240.0},"ltx|a2v|balanced|161.0|any": {- "n": 6,- "p25_sec": 195.0,- "p50_sec": 510.0,+ "n": 7,+ "p25_sec": 270.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|a2v|balanced|169.0|any": {- "n": 7,+ "n": 8,"p25_sec": 120.0,- "p50_sec": 120.0,+ "p50_sec": 360.0,"p75_sec": 600.0},"ltx|a2v|balanced|177.0|any": {@@ -16367,11 +16559,17 @@"p75_sec": 420.0},"ltx|a2v|balanced|193.0|any": {- "n": 4,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},+ "ltx|a2v|balanced|201.0|any": {+ "n": 4,+ "p25_sec": 600.0,+ "p50_sec": 750.0,+ "p75_sec": 900.0+ },"ltx|a2v|balanced|209.0|any": {"n": 3,"p25_sec": 900.0,@@ -16379,13 +16577,13 @@"p75_sec": 900.0},"ltx|a2v|balanced|217.0|any": {- "n": 39,- "p25_sec": 750.0,+ "n": 47,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|any": {- "n": 24,+ "n": 31,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -16487,7 +16685,7 @@"p75_sec": 1215.0},"ltx|a2v|high|169.0|any": {- "n": 175,+ "n": 176,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 900.0@@ -16511,7 +16709,7 @@"p75_sec": 1125.0},"ltx|a2v|high|241.0|any": {- "n": 88,+ "n": 103,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 1200.0@@ -16595,16 +16793,16 @@"p75_sec": 900.0},"ltx|a2v|high|721.0|any": {- "n": 11,+ "n": 13,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 5400.0},"ltx|a2v|high|73.0|any": {- "n": 16,- "p25_sec": 150.0,- "p50_sec": 240.0,- "p75_sec": 750.0+ "n": 17,+ "p25_sec": 165.0,+ "p50_sec": 270.0,+ "p75_sec": 675.0},"ltx|a2v|high|81.0|any": {"n": 7,@@ -16619,10 +16817,10 @@"p75_sec": 2250.0},"ltx|a2v|high|97.0|any": {- "n": 13,+ "n": 14,"p25_sec": 300.0,"p50_sec": 600.0,- "p75_sec": 1050.0+ "p75_sec": 1200.0},"ltx|a2v|quick|241.0|any": {"n": 8,@@ -16757,7 +16955,7 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|any": {- "n": 3170,+ "n": 3269,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -16769,9 +16967,9 @@"p75_sec": 180.0},"ltx|i2v|balanced|145.0|any": {- "n": 329,+ "n": 338,"p25_sec": 180.0,- "p50_sec": 270.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|161.0|any": {@@ -16781,7 +16979,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|any": {- "n": 659,+ "n": 682,"p25_sec": 120.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -16799,13 +16997,13 @@"p75_sec": 600.0},"ltx|i2v|balanced|193.0|any": {- "n": 262,+ "n": 268,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|217.0|any": {- "n": 5,+ "n": 8,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -16817,7 +17015,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|any": {- "n": 2879,+ "n": 2924,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -16829,11 +17027,17 @@"p75_sec": 56.2},"ltx|i2v|balanced|289.0|any": {- "n": 42,+ "n": 44,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},+ "ltx|i2v|balanced|313.0|any": {+ "n": 3,+ "p25_sec": 660.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0+ },"ltx|i2v|balanced|337.0|any": {"n": 3,"p25_sec": 420.0,@@ -16853,7 +17057,7 @@"p75_sec": 600.0},"ltx|i2v|balanced|481.0|any": {- "n": 174,+ "n": 180,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -16877,7 +17081,7 @@"p75_sec": 1800.0},"ltx|i2v|balanced|73.0|any": {- "n": 377,+ "n": 430,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -16889,10 +17093,10 @@"p75_sec": 180.0},"ltx|i2v|balanced|97.0|any": {- "n": 89,+ "n": 93,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|i2v|draft|121.0|any": {"n": 4,@@ -16907,7 +17111,7 @@"p75_sec": 600.0},"ltx|i2v|high_720p|241.0|any": {- "n": 24,+ "n": 25,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -16919,7 +17123,7 @@"p75_sec": 180.0},"ltx|i2v|high|121.0|any": {- "n": 437,+ "n": 451,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 420.0@@ -16943,7 +17147,7 @@"p75_sec": 600.0},"ltx|i2v|high|241.0|any": {- "n": 323,+ "n": 325,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -17015,7 +17219,7 @@"p75_sec": 270.0},"ltx|i2v|quick|121.0|any": {- "n": 497,+ "n": 503,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 240.0@@ -17033,13 +17237,13 @@"p75_sec": 180.0},"ltx|i2v|quick|169.0|any": {- "n": 77,- "p25_sec": 112.5,+ "n": 79,+ "p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|quick|241.0|any": {- "n": 282,+ "n": 298,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -17075,7 +17279,7 @@"p75_sec": 60.0},"ltx|i2v|quick|481.0|any": {- "n": 222,+ "n": 225,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -17087,7 +17291,7 @@"p75_sec": 180.0},"ltx|i2v|quick|73.0|any": {- "n": 276,+ "n": 282,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 300.0@@ -17099,7 +17303,7 @@"p75_sec": 300.0},"ltx|i2v|standard|121.0|any": {- "n": 1400,+ "n": 1409,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -17117,7 +17321,7 @@"p75_sec": 300.0},"ltx|i2v|standard|169.0|any": {- "n": 815,+ "n": 846,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -17147,7 +17351,7 @@"p75_sec": 690.0},"ltx|i2v|standard|241.0|any": {- "n": 1712,+ "n": 1733,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -17255,10 +17459,10 @@"p75_sec": 600.0},"ltx|keyframe|balanced|169.0|any": {- "n": 35,+ "n": 37,"p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|keyframe|balanced|241.0|any": {"n": 82,@@ -17291,8 +17495,8 @@"p75_sec": 300.0},"ltx|keyframe|high|121.0|any": {- "n": 72,- "p25_sec": 300.0,+ "n": 77,+ "p25_sec": 270.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -17315,8 +17519,8 @@"p75_sec": 420.0},"ltx|keyframe|high|169.0|any": {- "n": 14,- "p25_sec": 420.0,+ "n": 15,+ "p25_sec": 330.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -17387,7 +17591,7 @@"p75_sec": 900.0},"ltx|keyframe|standard|121.0|any": {- "n": 18,+ "n": 20,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -17405,10 +17609,10 @@"p75_sec": 300.0},"ltx|keyframe|standard|241.0|any": {- "n": 22,+ "n": 25,"p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 900.0+ "p50_sec": 600.0,+ "p75_sec": 1200.0},"ltx|keyframe|standard|289.0|any": {"n": 4,@@ -17447,7 +17651,7 @@"p75_sec": 90.0},"ltx|t2v|balanced|121.0|any": {- "n": 2648,+ "n": 2675,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -17483,7 +17687,7 @@"p75_sec": 420.0},"ltx|t2v|balanced|241.0|any": {- "n": 1005,+ "n": 1018,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 600.0@@ -17537,7 +17741,7 @@"p75_sec": 78.8},"ltx|t2v|balanced|73.0|any": {- "n": 444,+ "n": 445,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -17597,7 +17801,7 @@"p75_sec": 180.0},"ltx|t2v|high|121.0|any": {- "n": 324,+ "n": 333,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -17615,10 +17819,10 @@"p75_sec": 600.0},"ltx|t2v|high|241.0|any": {- "n": 201,+ "n": 206,"p25_sec": 600.0,"p50_sec": 900.0,- "p75_sec": 900.0+ "p75_sec": 1200.0},"ltx|t2v|high|289.0|any": {"n": 5,@@ -17675,7 +17879,7 @@"p75_sec": 180.0},"ltx|t2v|quick|121.0|any": {- "n": 921,+ "n": 934,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -17693,7 +17897,7 @@"p75_sec": 300.0},"ltx|t2v|quick|169.0|any": {- "n": 44,+ "n": 45,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -17711,7 +17915,7 @@"p75_sec": 180.0},"ltx|t2v|quick|241.0|any": {- "n": 379,+ "n": 380,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 420.0@@ -17747,7 +17951,7 @@"p75_sec": 22.5},"ltx|t2v|quick|481.0|any": {- "n": 132,+ "n": 133,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -17759,7 +17963,7 @@"p75_sec": 82.5},"ltx|t2v|quick|73.0|any": {- "n": 374,+ "n": 379,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -17771,7 +17975,7 @@"p75_sec": 120.0},"ltx|t2v|standard|121.0|any": {- "n": 726,+ "n": 727,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 420.0@@ -17795,7 +17999,7 @@"p75_sec": 600.0},"ltx|t2v|standard|241.0|any": {- "n": 765,+ "n": 767,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -17837,9 +18041,9 @@"p75_sec": 56.2},"ltx|t2v|standard|57.0|any": {- "n": 34,+ "n": 35,"p25_sec": 60.0,- "p50_sec": 150.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|standard|73.0|any": {@@ -17874,7 +18078,7 @@"keyframe"],"schema": "fleet_timings/1",- "total_events_counted": 101654,+ "total_events_counted": 103692,"wall_sec": "bucket_lower_edge","window_days": 75}diff --git a/docs/ANALYTICS.md b/docs/ANALYTICS.mdindex db21202..383b8f0 100644--- a/docs/ANALYTICS.md+++ b/docs/ANALYTICS.md@@ -352,6 +352,30 @@ the same version means it didn't. The marker is cleared when it is read.| `from_version` | string | `"4.15.0"` | The version Update was pressed on || `version` | string | `"4.15.0"` | The version now running |+### `separator_install` (v4.17.4)++Whether the Lip-sync voice separator (demucs, "Listen to the voice only")+actually installed, by which path, and if not, why. On 4.17.3 a 16 GB Mac+updated with the panel's own Update (a pull plus a restart, which never runs+the post-update step that installs it): its queued voice-only jobs were+refused at once and nothing in the data said the separator was missing. The+installer now records its outcome next to the weights; the panel reports+that record once at the next boot, and reports its own installs (at start-up,+for a waiting job, or from the form's Install button) when they finish.++| prop | type | example | why |+|---|---|---|---|+| `outcome` | string | `"failed"` | **Closed vocabulary**: `ok`, `failed` |+| `via` | string | `"update"` | **Closed vocabulary**: `install` (install.js), `update` (the Pinokio Update), `panel_boot` (the panel found it missing at start-up), `panel_job` (a voice-only job needed it), `panel_form` (the Lip-sync form's Install / Try again) |+| `error_class` | string | `"pip_failed"` | Only on `failed`. **Closed vocabulary**: `no_venv`, `pip_failed`, `import_failed`, `weights_failed` (the package works, the 80 MB model did not download - it downloads on first use), `timeout`, `spawn_failed`, `other` |+| `ready` | bool | `true` | Whether a voice-only render can run now |+| `weights` | bool | `false` | Whether the separator's model is on disk |+| `version` | string | `"4.17.4"` | The build that reported it |+| `ram_gb` | int | `16` | Same machine class as `install_step` |++No installer output, no path, no host, no byte count: the class is read from+a record the installer writes in closed words, never parsed out of pip's text.+### `broadcast_seen` (v4.9.7)One event when a developer broadcast (`BROADCAST.json`) is acknowledged. No text — which message is derivable from the date.diff --git a/docs/API.md b/docs/API.mdindex 51a152e..f4b50cb 100644--- a/docs/API.md+++ b/docs/API.md@@ -903,7 +903,21 @@ Shut down a ComfyUI process if Phosphene started one.### `GET /version/check`, `POST /version/pull`-Self-update against the GitHub repo.+Self-update against the GitHub repo. `/version/pull` is a `git pull` only: it+does not run `scripts/post_update.sh`, so anything an Update installs (new+packages, weights) is not installed by it. Since 4.17.4 the panel installs a+missing Lip-sync voice separator itself at the next start (see+`/a2v/separator`).++### `POST /engine/repair`++Re-runs only the engine-environment step (`scripts/pinokio/ltx_engine_env.sh`,+the same step Install runs): re-installs the render engine's Python packages+into its venv, in the background. No downloads, no venv rebuild, no Stop.+Answers `202` (started), `200 {nothing_to_do}` (the engine is fine), or `409`+(a repair is running, or `installing: true` - Pinokio's own Install is still+writing the venv). Progress and outcome ride `GET /status` -> `engine_env`+(`ok`, `fault`, `installing`, `repair.{state, active, log, error}`).## Push alerts — the completion alert for a closed tabdiff --git a/install.js b/install.jsindex f42b5bf..1ec33f1 100644--- a/install.js+++ b/install.js@@ -332,125 +332,24 @@ module.exports = {// measurement: moving mlx to 0.32.x while mflux stays at 0.18.0 makes the// step-7 mflux resolve walk mlx back DOWN to 0.31.2 — the broken one — on// every fresh install and every Update, silently.+ //+ // 4.17.4: THE COMMANDS LIVE IN scripts/pinokio/ltx_engine_env.sh NOW, in+ // the same order with the same pins (mlx trio + transformers cap, the+ // dependency pass, the --reinstall --no-deps pass that turns the+ // workspace's editable links into real copies, mlx-vlm, the runtime+ // extras - every reason above still applies, line for line). Moved for+ // the fleet's `venv_broken` ("the engine venv has a Python but no+ // packages", 18 installs in 30 days, nearly all at first boot): the script+ // retries a dropped connection up to 3 times, VERIFIES the result the way+ // the panel judges it (scripts/pinokio/engine_env_check.py: real package+ // directories, and an import), and ends with "FATAL error:" when it cannot+ // - so Install stops here, loudly, instead of downloading 37 GB into a+ // venv that cannot render. And it is ONE step the panel's own "Repair+ // engine" button can re-run alone, with no downloads and no venv rebuild.{method: "shell.run",params: {- path: "ltx-2-mlx",- message: [- // v2.0.3: log Python identity before each pip step. KTDS hit a- // silent missing-package install and we had nothing in the log- // to diagnose it. These echoes leave a paper trail of which- // interpreter is being targeted by --python env/bin/python.- "echo '=== install diagnostics: pip install ==='",- "env/bin/python --version || echo 'venv python NOT executable'",- "env/bin/python -c 'import sys; print(\"sys.executable:\", sys.executable); print(\"sys.path[0]:\", sys.path[0] if sys.path else None)'",- "echo '=== /diagnostics ==='",- // Force the mlx pin BEFORE installing ltx-* packages so their deps- // resolve to the pinned version instead of pulling latest 0.31.x.- //- // SHIP-BLOCKER (2026-07-10, GitHub #40/#38/#37/#33): also pin- // transformers <5.13.0. mlx-lm 0.31.1 declares `transformers>=5.0.0`- // with NO upper bound, so any fresh install after transformers 5.13.0- // dropped (~Jul 9) pulls 5.13.0 — which breaks mlx_lm.tokenizer_utils.- // EVERY generation then crashes with "'str' object has no attribute- // '__module__'": the Gemma text-encoder load silently no-ops ("done in- // 0.0s") → downstream "Model not loaded. Call load() first." Known-good:- // 5.7.0 (our validated build) and 5.12.x. Cap it on the SAME resolve as- // mlx-lm so the constraint sticks. Diagnosed by @saved-j + @xandreau.- //- // The Update path enforces this too — scripts/post_update.sh step 2b,- // a `require` (fatal) step. That sentence used to live here as "uv- // downgrades an already-installed 5.13.0 on the next Update" and was- // simply false for a month: nothing in the update path constrained- // transformers at all, so an existing 5.13.0 survived every Update and- // the install stayed unable to generate anything. A promise about- // another file now names the step that keeps it.- "uv pip install --python env/bin/python 'mlx==0.31.1' 'mlx-lm==0.31.1' 'mlx-metal==0.31.1' 'transformers>=5.0.0,<5.13.0'",- // Y3 — Train Character ships in 3.0. Without ltx-trainer-mlx in- // the venv, the trainer subprocess fails at `import yaml` because- // pyyaml is a transitive dep of ltx-trainer (declared in its- // pyproject). Codex pre-ship review 2026-05-18 caught this.- //- // `--build-constraints ../pip-build-constraints.txt` pins the wheel- // BUILD backend (hatchling<1.32). Upstream's three pyprojects all- // declare `readme = "../../README.md"` — a path outside the package- // dir — which hatchling 1.32.0 turned into a hard error- // ("Readme path must be within the project directory" →- // metadata-generation-failed). uv resolves the build backend fresh- // from PyPI into an isolated env, so from the day 1.32.0 shipped- // this step failed for every NEW install on every pinned tag. See- // pip-build-constraints.txt; update.js runs the same uv command- // (it used to spell it `PIP_CONSTRAINT=`, which modern pip ignores- // by design — one lane now, one failure mode).- "uv pip install --python env/bin/python --build-constraints ../pip-build-constraints.txt ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx ./packages/ltx-trainer",- // v4.0 — THE SECOND PASS IS THE POINT, and it closes a trap that has- // shipped since the workspace landed. `ltx-2-mlx` is a uv WORKSPACE:- // the line above (with deps, without --reinstall) links its members- // EDITABLE. site-packages gets `_editable_impl_ltx_core_mlx.pth`- // instead of a copy, so `import ltx_core_mlx` resolves to- // `packages/ltx-core-mlx/src/...` — the GIT-TRACKED source. The codec- // patch further down then finds no ltx_core_mlx directory in- // site-packages and patches the tracked file, which is why a- // PERFECTLY SUCCESSFUL install ended with- // M packages/ltx-core-mlx/src/.../video_vae.py- // every single time — and why the v3.8.0 pin move hit "your local- // changes would be overwritten by checkout" for the whole fleet.- //- // v3.8.1 made the pin move survive that (reset --hard first) and- // v3.8.1's own notes filed this as the follow-up: cure the cause, so- // a FRESH install no longer starts dirty. `--reinstall --no-deps`- // replaces the .pth links with real copies and re-resolves nothing;- // it is the exact command update.js has run for many releases, so- // the end state is one every install already converges to on its- // first Update. One lane, one runtime shape.- "uv pip install --python env/bin/python --reinstall --no-deps --build-constraints ../pip-build-constraints.txt ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx ./packages/ltx-trainer",- // Auto-caption (Gemma 3 12B via mlx-vlm) needs the mlx-vlm- // package. Pinned to 0.4.4 — caption_with_gemma.py's import- // surface (load, generate, prompt_utils.apply_chat_template)- // is stable at that version. --no-deps so we don't drag in- // mlx-vlm's heavy default deps (PIL>=10, av, etc. that fight- // mflux/transformers pins). The runtime imports it lazily so- // a partial install doesn't break the rest of the panel.- "uv pip install --python env/bin/python --no-deps 'mlx-vlm==0.4.4'",- // hf_transfer is HuggingFace's Rust-based downloader — 5-10× faster- // than the default Python downloader for big repos like Q8 (~25 GB).- // The panel sets HF_HUB_ENABLE_HF_TRANSFER=1 in download envs; if the- // package is missing the hf CLI falls back gracefully with a warning.- // litellm: agent's chat client (multi-provider router for OpenAI /- // Anthropic / Ollama / mlx-lm.server). Pinned to >=1.83.14 — the- // March 2026 PyPI supply-chain incident affected earlier 1.x- // releases (stole SSH keys via a poisoned post-install script).- // See agent/engine.py for routing details. Falls back to stdlib- // urllib if missing — safe to omit but the loop is less robust.- //- // smolagents: Phase 2 of the agent-layer refactor. Powers- // the optional CodeAgent runtime in agent/runtime_smol.py,- // selectable per-request via PHOSPHENE_RUNTIME=smol. smolagents- // pulls transformers as a transitive dep — the huggingface-hub- // floor is bumped to >=1.5.0 to satisfy transformers' pin.- // smolagents itself ships with a pessimistic <1.0 hub pin that- // is empirically benign in practice.- //- // The hub pin range we settle on (>=1.5.0,<2.0) satisfies:- // - mflux>=0.17.5 wants >=1.1.6,<2.0- // - transformers (5.7.0+) wants >=1.5.0,<2.0- // - smolagents 1.24.0 warns about <1.0 but works- // - hf download CLI needs v1+ for the new command name- // 2026-05-31 review fix (E3): pin `certifi` explicitly. start.js- // points SSL_CERT_FILE at certifi's cacert.pem (the v3.0.4 fix for- // the CivitAI CERTIFICATE_VERIFY_FAILED on uv-Python). certifi was- // only ever a transitive dep — if a future dep change drops it, the- // SSL_CERT_FILE path vanishes and ALL panel stdlib HTTPS breaks.- // Naming it here keeps the cert bundle guaranteed-present.- "uv pip install --python env/bin/python certifi pillow numpy 'huggingface-hub>=1.5.0,<2.0' 'hf_transfer>=0.1.6' 'litellm>=1.83.14' 'smolagents>=1.24.0' 'pywebpush>=2.0'",- // v2.0.3: post-install confirmation that the local packages- // actually landed in site-packages. The Y1.034+ patch script's- // i2v target tolerates a missing ltx_pipelines_mlx — without- // this echo we'd discover the gap only at panel start time.- "echo '=== post-pip site-packages check ==='",- "ls env/lib/python3.11/site-packages/ | grep -E '^(ltx|mlx)' || echo 'WARN: no ltx_*/mlx packages in site-packages'",- "echo '=== /site-packages check ==='"- ]+ message: "bash scripts/pinokio/ltx_engine_env.sh"}},diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 89e0054..42b5ae6 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -223,11 +223,164 @@ def engine_env_fault() -> str:# stopped — the repair reinstalls into the venv this process holds open. The# running sidebar says the same (INST-05).ENGINE_ENV_REPAIR = (- "Fix it from the Pinokio sidebar: Stop Phosphene, then click \"Repair "- "Phosphene engine (models kept)\" — it rebuilds the venv and keeps every "- "model you have. Update works too. Renders cannot run until it is repaired."+ "Press Repair engine in the bar at the top of the panel - it re-installs "+ "only the engine's Python packages into the venv (a few minutes, every "+ "model kept). Or from the Pinokio sidebar: Stop Phosphene, then click "+ "\"Repair Phosphene engine (models kept)\". Renders cannot run until it "+ "is repaired.")+# --- One-click engine repair (4.17.4 fleet fix) -----------------------------+# `venv_broken` on fresh installs: 18 installs in 30 days, nearly all at the+# very first boot, and the only repair was the whole install.js from a+# STOPPED panel. The engine step is scripts/pinokio/ltx_engine_env.sh now -+# the one implementation install.js runs - and the panel runs that step+# alone: no downloads, no venv rebuild, no Stop.+#+# The script holds a lock file in the venv (our pid) for its whole run. A+# concurrent Install mid-way is the commonest reason a first boot sees no+# packages, so while that lock is alive the panel says "still installing"+# and never starts a second installer into the same venv.+ENGINE_ENV_INSTALLER = "scripts/pinokio/ltx_engine_env.sh"+ENGINE_ENV_LOCK_NAME = ".phosphene_engine_install.d" # a directory; pid inside+ENGINE_REPAIR_LOCK = threading.Lock()+ENGINE_REPAIR: dict = {"state": "idle", "active": False}+ENGINE_REPAIR_TIMEOUT_S = 1800+++def _kill_group_after(proc: subprocess.Popen, seconds: float) -> threading.Timer:+ """End `proc`'s own process group after `seconds` (it was started with+ start_new_session, so its pgid is its pid). `timer.fired` says it did."""+ def _fire():+ timer.fired = True+ try:+ os.killpg(proc.pid, signal.SIGTERM)+ except OSError:+ pass+ timer = threading.Timer(seconds, _fire)+ timer.fired = False+ timer.daemon = True+ timer.start()+ return timer+++def _engine_install_running() -> bool:+ """True while ltx_engine_env.sh (Install's engine step, or our own Repair)+ holds its lock in the engine venv. The pid is only read to tell a live run+ from a lock a killed run left behind - nothing is ever killed by it."""+ lock = HELPER_PYTHON.parent.parent / ENGINE_ENV_LOCK_NAME / "pid"+ try:+ pid = int((lock.read_text(encoding="utf-8").splitlines() or ["0"])[0])+ except (OSError, ValueError):+ return False+ if pid <= 0:+ return False+ try:+ os.kill(pid, 0)+ except ProcessLookupError:+ return False+ except OSError:+ return True+ return True+++def engine_env_status() -> dict:+ """/status.engine_env: can a render start, and if not, what is happening."""+ fault = engine_env_fault()+ with ENGINE_REPAIR_LOCK:+ repair = {k: v for k, v in ENGINE_REPAIR.items() if k != "log"}+ repair["log"] = list(ENGINE_REPAIR.get("log") or [])[-6:]+ # NOT ready while an installer is still writing the venv, even once the+ # package directory has appeared (Codex 4.17.4 #1): the --reinstall pass+ # and the codec patch come after it.+ installing = bool(repair.get("active")) or _engine_install_running()+ return {"ok": not fault and not installing, "fault": fault,+ "installing": installing, "repair": repair}+++def engine_env_busy() -> str:+ """Non-empty while the engine venv is being (re)installed - a render+ started now would import packages mid-replacement."""+ with ENGINE_REPAIR_LOCK:+ active = bool(ENGINE_REPAIR.get("active"))+ if active or _engine_install_running():+ return ("the render engine is being installed or repaired right now - "+ "renders can start when it finishes (a few minutes)")+ return ""+++def engine_env_repair_start() -> tuple[int, dict]:+ with ENGINE_REPAIR_LOCK:+ if ENGINE_REPAIR.get("active"):+ return 409, {"error": "The engine repair is already running.", "repair": True}+ if not engine_env_fault():+ return 200, {"ok": True, "nothing_to_do": True}+ if _engine_install_running():+ return 409, {"error": "Pinokio is still installing the engine. This "+ "clears itself when that install finishes.",+ "installing": True}+ with ENGINE_REPAIR_LOCK:+ if ENGINE_REPAIR.get("active"):+ return 409, {"error": "The engine repair is already running.", "repair": True}+ ENGINE_REPAIR.clear()+ ENGINE_REPAIR.update({"state": "running", "active": True,+ "started_ts": time.time(), "finished_ts": None,+ "error": None, "log": collections.deque(maxlen=60)})+ threading.Thread(target=_engine_env_repair_thread, daemon=True,+ name="engine-env-repair").start()+ push("[engine] repairing the engine environment (re-installing its Python "+ "packages; models are not touched)")+ return 202, {"ok": True, "started": True}+++def _engine_env_repair_thread() -> None:+ env = _music_install_env() # Pinokio's uv on PATH, venv deactivated+ cmd = ["bash", str(ROOT / ENGINE_ENV_INSTALLER),+ str(HELPER_PYTHON.parent.parent.parent)]+ tail: list[str] = []+ error = None+ timer = None+ try:+ proc = subprocess.Popen(cmd, cwd=str(ROOT), env=env,+ stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,+ stderr=subprocess.STDOUT, text=True, bufsize=1,+ errors="replace", start_new_session=True)+ # A stalled download keeps stdout open, so the deadline has to end+ # the CHILD (its own process group, by its pid), not wait for EOF.+ timer = _kill_group_after(proc, ENGINE_REPAIR_TIMEOUT_S)+ for raw in proc.stdout:+ for line in raw.replace("\r", "\n").splitlines():+ line = line.rstrip()+ if not line:+ continue+ tail = (tail + [line])[-8:]+ with ENGINE_REPAIR_LOCK:+ ENGINE_REPAIR["log"].append(line[:300])+ rc = proc.wait(timeout=60)+ if getattr(timer, "fired", False):+ raise subprocess.TimeoutExpired(cmd, ENGINE_REPAIR_TIMEOUT_S)+ if rc != 0:+ reason = next((l for l in reversed(tail) if l.startswith("FATAL")), "")+ error = (reason.replace("FATAL error: ", "") if reason+ else f"the install stopped (exit {rc})")+ except subprocess.TimeoutExpired:+ error = "the install took longer than 30 minutes"+ except Exception as exc: # noqa: BLE001+ error = f"the install could not run: {exc}"+ finally:+ if timer is not None:+ timer.cancel()+ fault = engine_env_fault()+ if error is None and fault:+ error = f"the install finished but the engine is still not usable: {fault}"+ with ENGINE_REPAIR_LOCK:+ ENGINE_REPAIR.update(active=False, finished_ts=time.time(),+ state="failed" if error else "done", error=error)+ push("[engine] " + (f"repair failed: {error}" if error+ else "engine environment repaired - renders can run"))+ _analytics_install_step("engine_env", "failed" if fault else "ok",+ "venv_broken" if fault else "")+if not HELPER_PYTHON.is_file():sys.stderr.write(f"WARN: helper Python not found at {HELPER_PYTHON}\n"@@ -11010,6 +11163,58 @@ def ltx_quality_uses_hq(quality: str | None) -> bool:return bool(cell and cell.get("pipeline") == "hq")+# The distilled (Q4) LTX lane runs a FIXED 9-point sigma table: exactly 8+# steps. More cannot be served (the engine refuses to pad the table: "cannot+# thin a 9-point schedule (8 steps) up to 16 steps"); fewer leaves the clip+# part-denoised. Every other LTX mode below carries its own step fields+# (stage1/stage2, extend_steps, retake_steps, ...) and never reads `steps`.+LTX_DISTILLED_STEPS = 8+_LTX_OWN_STEP_MODES = frozenset((+ "extend", "retake", "keyframe", "a2v", "restore", "ingredients",+ "control", "upscale"))+++def clamp_distilled_steps(params: dict) -> str | None:+ """Put an LTX distilled-lane job on the 8 steps that lane can run.++ 4.17.4 fleet fix: the "above the 8-step distilled schedule" refusal — 113+ failed renders in 30 days on every version since 4.9, one install at a+ time, each retried in a loop (53 + 41 on one 4.15 install). The shared+ hidden #steps field is written by Hailuo H3 (its tuned 9, or a 12/16/20+ Steps pill), by Load Params of an H3 or High clip, and by Retry of a job+ that already carried it — and switching back to LTX never put it back.+ The panel then REFUSED a render whose only fault was a number the user+ never typed and cannot see.++ A step count is not a choice on this lane, so it is clamped, never+ refused: the job is rewritten to 8 and one plain note rides it (Queue+ row + Now card). Called from make_job (every new job) and again from+ run_job_inner (jobs queued by an older panel, retries, API callers).+ Returns the note when it changed something, else None.+ """+ if (params.get("engine") or "ltx").strip().lower() != "ltx":+ return None+ mode = (params.get("mode") or "t2v").strip().lower()+ if mode in _LTX_OWN_STEP_MODES or ltx_quality_uses_hq(params.get("quality")):+ return None+ raw = params.get("steps")+ try:+ steps = int(float(raw)) if raw not in (None, "") else LTX_DISTILLED_STEPS+ except (TypeError, ValueError):+ steps = -1+ if steps == LTX_DISTILLED_STEPS:+ params["steps"] = LTX_DISTILLED_STEPS+ return None+ params["steps"] = LTX_DISTILLED_STEPS+ note = (f"steps {raw} -> {LTX_DISTILLED_STEPS}: this quality always runs "+ f"{LTX_DISTILLED_STEPS} steps (more steps only help on High)")+ notes = list(params.get("generation_clamp_notes") or [])+ if not any(str(n).startswith(f"steps {raw} -> ") for n in notes):+ notes.append(note)+ params["generation_clamp_notes"] = notes+ return note++def _ltx_lengths() -> dict[str, dict]:"""The DURATION axis.@@ -17001,6 +17206,9 @@ _ANALYTICS_EVENTS = (# at all, so "they tried and it was broken" and "they looked and left"# were the same shape in the data. These two close that."install_step", "update_outcome",+ # v4.17.4 — did the voice separator actually install, by which path, and+ # if not, which closed reason. One event per install run.+ "separator_install",)@@ -20230,6 +20438,9 @@ class WarmHelper:if fault:raise RuntimeError(f"engine venv is not usable: {fault}. "f"{ENGINE_ENV_REPAIR}")+ busy = engine_env_busy()+ if busy:+ raise RuntimeError(f"Not started: {busy}. Press Retry then.")env = os.environ.copy()env["PATH"] = f"{FFMPEG_BIN}:{env.get('PATH', '')}"env["LTX_MODEL"] = base_model_dir()@@ -29499,7 +29710,13 @@ def a2v_stem_refusal(params: dict) -> str | None:return Noneif str(params.get("audio_stem") or "").strip() or not a2v_wants_stem(params):return None- return None if _a2v_separator_command() else A2V_STEM_MISSING_NOTE+ if _a2v_separator_command():+ return None+ # 4.17.4: an install running (or one the panel may start on its own) is+ # not a reason to refuse - the job queues and waits for it.+ if a2v_separator_auto_start("job"):+ return None+ return _a2v_separator_missing_note()def a2v_conditioning_audio(params: dict, audio_src: str) -> tuple[str, str]:@@ -29517,9 +29734,22 @@ def a2v_conditioning_audio(params: dict, audio_src: str) -> tuple[str, str]:return stem, ""if not a2v_wants_stem(params):return audio_src, ""+ # An install that is still RUNNING wins over file-based readiness (Codex+ # 4.17.4 #4): demucs/apply.py lands before its dependencies and weights.+ with A2V_SEPARATOR_INSTALL_LOCK:+ _sep_installing = bool(A2V_SEPARATOR_INSTALL.get("active"))+ if _sep_installing:+ _a2v_separator_wait(_thread_job())separator = _a2v_separator_command()+ if separator is None and a2v_separator_auto_start("job"):+ # 4.17.4 fleet fix: an Update that left no separator used to refuse+ # every queued voice-only job the instant the panel came up (and+ # trip the queue breaker). Now the job waits for the install - the+ # one the panel started at boot, or one it starts now - then runs.+ _a2v_separator_wait(_thread_job())+ separator = _a2v_separator_command()if separator is None:- raise RenderRefused("vocal_separator", A2V_STEM_MISSING_NOTE)+ raise RenderRefused("vocal_separator", _a2v_separator_missing_note())try:return (str(_a2v_separate_vocals(audio_src, separator)),"the model listens to the separated vocal")@@ -29539,8 +29769,96 @@ def a2v_conditioning_audio(params: dict, audio_src: str) -> tuple[str, str]:A2V_SEPARATOR_INSTALL_LOCK = threading.Lock()A2V_SEPARATOR_INSTALL: dict = {"state": "idle", "active": False}+# AUTOMATIC INSTALL (4.17.4 fleet fix). A 16 GB Mac pressed the panel's own+# Update: a git pull plus a self-restart, which never runs post_update.sh, so+# step 7b - the separator - never ran. Its queued Lip-sync jobs were refused+# the second the new build came up (three refusals, queue paused), again after+# a reboot, until something installed it by hand. Now the panel installs it+# itself: at boot when it is missing, or when a voice-only job needs it.+#+# ONE automatic attempt per panel process, so an offline Mac is not retried in+# a loop; the Lip-sync form's Install / Try again stays for every attempt+# after that. OFF until __main__ turns it on (a2v_separator_boot): importing+# the panel from a test or a gate must never pip-install into a real venv.+# PHOSPHENE_SEPARATOR_AUTOINSTALL=0 keeps it off for a test rig.+A2V_SEPARATOR_AUTO: dict = {"enabled": False, "attempted": False}+A2V_SEPARATOR_TRIGGERS = ("boot", "job", "form")+#: How long a voice-only job waits for an install before giving up. The+#: install's own subprocess limit; a torch-less venv downloads torch too.+A2V_SEPARATOR_WAIT_S = 1800+++def _a2v_separator_missing_note() -> str:+ """The refusal text, with the last install's reason when there is one."""+ with A2V_SEPARATOR_INSTALL_LOCK:+ err = A2V_SEPARATOR_INSTALL.get("error") \+ if A2V_SEPARATOR_INSTALL.get("state") == "failed" else None+ if err:+ return (f"Vocal separation did not install ({err}), so \u201cListen to "+ f"the voice only\u201d cannot run. Press Try again in the "+ f"Lip-sync form, or untick \u201cListen to the voice only\u201d "+ f"to render against the full mix.")+ return A2V_STEM_MISSING_NOTE-def a2v_separator_install_start() -> tuple[int, dict]:++def a2v_separator_auto_start(trigger: str) -> bool:+ """True when a voice-only job may wait: an install is running, or this+ call started the one automatic attempt this process gets. False = the+ job has to be refused (auto off, already spent, or nothing to install)."""+ with A2V_SEPARATOR_INSTALL_LOCK:+ if A2V_SEPARATOR_INSTALL.get("active"):+ return True+ if not A2V_SEPARATOR_AUTO.get("enabled") or A2V_SEPARATOR_AUTO.get("attempted"):+ return False+ if a2v_separator_status()["ready"]:+ return False+ with A2V_SEPARATOR_AUTO_LOCK:+ if A2V_SEPARATOR_AUTO.get("attempted"):+ with A2V_SEPARATOR_INSTALL_LOCK:+ return bool(A2V_SEPARATOR_INSTALL.get("active"))+ A2V_SEPARATOR_AUTO["attempted"] = True+ code, _ = a2v_separator_install_start(trigger)+ return code in (202, 409)+++A2V_SEPARATOR_AUTO_LOCK = threading.Lock()+++def _a2v_separator_wait(job: dict | None) -> None:+ """Hold a voice-only job until the separator install finishes.++ The Now card says what it is waiting for (job["waiting_note"], read by+ /status), with the installer's latest line. Stop ends the wait."""+ t0 = time.time()+ while True:+ with A2V_SEPARATOR_INSTALL_LOCK:+ active = bool(A2V_SEPARATOR_INSTALL.get("active"))+ last = (list(A2V_SEPARATOR_INSTALL.get("log") or []) or ["starting"])[-1]+ # The installer names its folders; the Now card is no place for a+ # home-directory path (it often carries the user's real name).+ last = last.replace(str(Path.home()), "~")+ if not active:+ break+ if job is not None:+ if job.get("cancel_requested"):+ job.pop("waiting_note", None)+ raise JobCancelled("Stopped while vocal separation was installing.")+ job["waiting_note"] = (+ "Installing vocal separation (once, about 95 MB) - this "+ f"Lip-sync render starts when it is ready. {last}")[:240]+ if time.time() - t0 > A2V_SEPARATOR_WAIT_S:+ break+ time.sleep(1.0)+ if job is not None:+ job.pop("waiting_note", None)+ push("[a2v] vocal separation " + (+ "is ready - continuing" if a2v_separator_status()["ready"]+ else "is still not installed"))+++def a2v_separator_install_start(trigger: str = "form") -> tuple[int, dict]:+ if trigger not in A2V_SEPARATOR_TRIGGERS:+ trigger = "form"with A2V_SEPARATOR_INSTALL_LOCK:if A2V_SEPARATOR_INSTALL.get("active"):return 409, {"error": "Vocal separation is already installing.",@@ -29548,28 +29866,36 @@ def a2v_separator_install_start() -> tuple[int, dict]:if a2v_separator_status()["ready"] and a2v_separator_status()["weights"]:return 200, {"ok": True, "nothing_to_do": True}with A2V_SEPARATOR_INSTALL_LOCK:+ if A2V_SEPARATOR_INSTALL.get("active"):+ return 409, {"error": "Vocal separation is already installing.",+ "install": True}A2V_SEPARATOR_INSTALL.clear()A2V_SEPARATOR_INSTALL.update({"state": "running", "active": True, "started_ts": time.time(),- "finished_ts": None, "error": None,+ "finished_ts": None, "error": None, "trigger": trigger,"log": collections.deque(maxlen=60)})- threading.Thread(target=_a2v_separator_install_thread, daemon=True,- name="a2v-separator-install").start()- push("[a2v] installing vocal separation (the same step Install and Update run)")+ threading.Thread(target=_a2v_separator_install_thread, args=(trigger,),+ daemon=True, name="a2v-separator-install").start()+ push("[a2v] installing vocal separation (the same step Install and Update run)"+ + (" - it was missing at start-up" if trigger == "boot" else ""))return 202, {"ok": True, "started": True}-def _a2v_separator_install_thread() -> None:+def _a2v_separator_install_thread(trigger: str = "form") -> None:env = _music_install_env() # Pinokio's uv on PATH, venv deactivatedenv["PHOSPHENE_SEPARATOR_HOME"] = str(a2v_separator_torch_home())+ env["PHOSPHENE_SEPARATOR_VIA"] = f"panel_{trigger}"cmd = ["bash", A2V_SEPARATOR_INSTALLER, str(HELPER_PYTHON.parent.parent.parent)]tail: list[str] = []error = None+ error_class = ""+ timer = Nonetry:proc = subprocess.Popen(cmd, cwd=str(ROOT), env=env,stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,stderr=subprocess.STDOUT, text=True, bufsize=1,errors="replace", start_new_session=True)+ timer = _kill_group_after(proc, A2V_SEPARATOR_WAIT_S)for raw in proc.stdout:for line in raw.replace("\r", "\n").splitlines():line = line.rstrip()@@ -29578,22 +29904,106 @@ def _a2v_separator_install_thread() -> None:tail = (tail + [line])[-8:]with A2V_SEPARATOR_INSTALL_LOCK:A2V_SEPARATOR_INSTALL["log"].append(line[:300])- rc = proc.wait(timeout=1800)+ rc = proc.wait(timeout=60)+ if getattr(timer, "fired", False):+ raise subprocess.TimeoutExpired(cmd, A2V_SEPARATOR_WAIT_S)if rc != 0:reason = next((l for l in reversed(tail)if not l.startswith(("+", "Traceback"))), "")error = f"the install stopped (exit {rc})" + (f": {reason}" if reason else "")+ error_class = (_a2v_separator_record() or {}).get("error_class") or "other"+ except subprocess.TimeoutExpired:+ error, error_class = "the install took longer than 30 minutes", "timeout"except Exception as exc: # noqa: BLE001- error = f"the install could not run: {exc}"+ error, error_class = f"the install could not run: {exc}", "spawn_failed"+ finally:+ if timer is not None:+ timer.cancel()st = a2v_separator_status()if error is None and not st["ready"]:error = "the install finished but the separator is still not importable"+ error_class = "import_failed"with A2V_SEPARATOR_INSTALL_LOCK:A2V_SEPARATOR_INSTALL.update(active=False, finished_ts=time.time(),state="failed" if error else "done",error=error)push("[a2v] vocal separation " + (f"install failed: {error}" if errorelse "installed - Listen to the voice only is ready"))+ _analytics_separator_install(+ "failed" if error else "ok", f"panel_{trigger}", error_class,+ ready=st["ready"], weights=st["weights"])+ # This run wrote the outcome record itself; mark it reported so the next+ # boot does not count it twice.+ _rec = _a2v_separator_record()+ if _rec and _rec.get("ts"):+ _settings_set_internal(analytics_separator_reported_ts=int(_rec["ts"]))+++A2V_SEPARATOR_RECORD = "last_install.json"+#: Closed vocabularies for the separator_install event (docs/ANALYTICS.md).+_SEPARATOR_INSTALL_VIA = ("install", "update", "panel_boot", "panel_job", "panel_form")+_SEPARATOR_INSTALL_ERRORS = ("no_venv", "pip_failed", "import_failed",+ "weights_failed", "timeout", "spawn_failed", "other")+++def _a2v_separator_record() -> dict | None:+ """The outcome a2v_stems_deps.sh wrote on its last exit, or None."""+ try:+ rec = json.loads((a2v_separator_torch_home() / A2V_SEPARATOR_RECORD)+ .read_text(encoding="utf-8"))+ return rec if isinstance(rec, dict) else None+ except (OSError, ValueError):+ return None+++def _analytics_separator_install(outcome: str, via: str, error_class: str = "",+ *, ready: bool, weights: bool) -> None:+ """One separator install, however it ran. Closed words only - never the+ installer's own output (paths), never a host or a byte count."""+ try:+ if outcome not in ("ok", "failed") or via not in _SEPARATOR_INSTALL_VIA:+ return+ props = {"outcome": outcome, "via": via, "ready": bool(ready),+ "weights": bool(weights), "version": running_version(),+ "ram_gb": int(round(SYSTEM_RAM_GB))}+ if outcome == "failed":+ props["error_class"] = (error_class if error_class in+ _SEPARATOR_INSTALL_ERRORS else "other")+ _analytics_capture("separator_install", props)+ except Exception: # noqa: BLE001+ pass+++def a2v_separator_boot() -> None:+ """__main__ only, before the worker starts.++ 1. Report the install/Update outcome the installer recorded, once.+ 2. Turn the automatic install on (PHOSPHENE_SEPARATOR_AUTOINSTALL=0 off).+ 3. If the separator is missing on a working engine venv, install it now,+ in the background - queued voice-only jobs wait for it."""+ try:+ rec = _a2v_separator_record()+ seen = int(get_settings().get("analytics_separator_reported_ts") or 0)+ if rec and int(rec.get("ts") or 0) > seen:+ _settings_set_internal(analytics_separator_reported_ts=int(rec["ts"]))+ st = a2v_separator_status()+ _analytics_separator_install(+ str(rec.get("outcome") or ""), str(rec.get("via") or ""),+ str(rec.get("error_class") or ""),+ ready=st["ready"], weights=st["weights"])+ except Exception: # noqa: BLE001+ pass+ if (os.environ.get("PHOSPHENE_SEPARATOR_AUTOINSTALL") or "1").strip() == "0":+ return+ A2V_SEPARATOR_AUTO["enabled"] = True+ try:+ if a2v_separator_status()["ready"] or engine_env_fault():+ return+ except Exception: # noqa: BLE001+ return+ print("[boot] vocal separation is missing - installing it in the background "+ "(Lip-sync \"Listen to the voice only\" waits for it)", flush=True)+ a2v_separator_auto_start("boot")# --- A2V CHARACTER LORA: KEEP THE FACE, FREE THE MOUTH -----------------------@@ -30784,6 +31194,11 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,if job["params"]["frames"] != _req_f:push(f"{_req_f} frames isn't on the 8k+1 grid — rendering "f"{job['params']['frames']} frames.")+ # A distilled-lane job runs exactly 8 steps; a stray count from the+ # H3 surface, a Params restore or a Retry is clamped, never refused.+ _steps_note = clamp_distilled_steps(job["params"])+ if _steps_note:+ push(f"[generation] {_steps_note}")# STG (Spatio-Temporal Guidance) — "detail guidance" slider. Only stamp# `stg_scale` onto params when the form actually sent a value, so each# dispatch keeps its OWN default when the user didn't touch the slider:@@ -35283,33 +35698,17 @@ def run_job_inner(job: dict) -> None:"it from an old sidecar; running with acceleration off.")p["accel"] = "off"- # Guard: Q4 distilled hardcoded 9-sigma schedule needs the full walk to- # sigma=0. Truncating below 8 steps leaves the image partially denoised- # (sigma=0.725 at 6 steps, sigma=0.975 at 4 steps) — i.e. literal noise.- # Block before the user wastes 7+ minutes producing static.- # Modes that don't use the distilled `steps` field skip this check:- # - extend / keyframe use stage1_steps + stage2_steps via two-stage path- # - every HQ-pipeline quality uses two-stage HQ with its own schedule- # - a2v uses A2VidPipelineTwoStage's stage1/stage2 walks- if mode not in ("extend", "retake", "keyframe", "a2v", "restore", "ingredients", "control", "upscale") and not ltx_quality_uses_hq(quality) and int(p.get("steps", 8)) < 8:- raise RuntimeError(- f"steps={p.get('steps')} is below the 8-step minimum for the Q4 distilled "- "schedule. Fewer steps truncates the sigma walk and leaves >70% noise in "- "the output (this is what you saw last run). Use steps=8 for standard "- "renders, or pick Quality=Quick for a faster smaller-resolution render at "- "the same 8 steps."- )- # ...and MORE than 8 is not a quality knob either: the distilled sigma table- # has 9 points, so the helper dies minutes in with "cannot thin a 9-point- # schedule (8 steps) up to 16 steps" (fleet, 4.11.1: i2v at 9 and 16 steps).- # Refuse here, at no cost, and say where more steps actually live.- if mode not in ("extend", "retake", "keyframe", "a2v", "restore", "ingredients", "control", "upscale") and not ltx_quality_uses_hq(quality) and int(p.get("steps", 8)) > 8:- raise RuntimeError(- f"steps={p.get('steps')} is above the 8-step distilled schedule: the Q4 "- "distilled model has a fixed 9-point sigma table and cannot take more "- "steps. Use steps=8 here, or pick Quality=High for the two-stage "- "pipeline, which is where more steps buy quality."- )+ # The Q4 distilled lane runs a fixed 9-point sigma table — exactly 8+ # steps. Fewer used to be refused (a truncated walk leaves the clip part+ # noise) and more were refused too (the engine cannot pad the table). Both+ # refusals failed renders over a number the user never typed: the shared+ # #steps field carried H3's 9 / 12 / 16 / 20, or a Load Params / Retry of+ # such a job (fleet 4.17.4: 113 failures in 30 days, retried in loops).+ # make_job already clamps new jobs; this is the backstop for jobs queued+ # by an older panel, retries and API callers. Clamp, note, render.+ _steps_note = clamp_distilled_steps(p)+ if _steps_note:+ push(f"[generation] {_steps_note}")if p["stop_comfy"]:kill_comfy()@@ -37778,6 +38177,27 @@ def _queue_extend_face_fix_after(job: dict) -> None:x for x in (job.get("warning"), _ff_warn) if x)+def _breaker_count(exc: BaseException) -> int:+ """Count one failed job toward the queue circuit breaker; return the+ streak of identical failures (0 = this one does not count).++ A REFUSAL IS NOT A FAILURE (4.17.4 fleet fix): nothing was attempted, no+ GPU time was spent, and the refusal names its own way out. Three+ voice-only Lip-sync jobs refused for a missing separator paused a 16 GB+ Mac's whole queue, jobs that could have rendered included. A refusal+ neither extends nor breaks a streak of real failures."""+ if isinstance(exc, RenderRefused):+ return 0+ sig = str(exc)[:80]+ if not sig:+ return 0+ if sig == _CONSEC_FAIL["sig"]:+ _CONSEC_FAIL["n"] += 1+ else:+ _CONSEC_FAIL.update(sig=sig, n=1)+ return int(_CONSEC_FAIL["n"])++def worker_loop() -> None:held_note = ""while True:@@ -37869,12 +38289,10 @@ def worker_loop() -> None:# message — a whole queue burning down on a problem no# retry can fix). Three identical failures in a row with# more work queued: pause, say why, leave the queue intact.- _sig = str(exc)[:80]- if _sig and _sig == _CONSEC_FAIL["sig"]:- _CONSEC_FAIL["n"] += 1- else:- _CONSEC_FAIL.update(sig=_sig, n=1)- if _CONSEC_FAIL["n"] >= 3 and STATE["queue"] and not STATE["paused"]:+ # Refusals do not count (_breaker_count, 4.17.4).+ _streak = _breaker_count(exc)+ _sig = _CONSEC_FAIL["sig"]+ if _streak >= 3 and STATE["queue"] and not STATE["paused"]:STATE["paused"] = True# SYS-32: this used to live ONLY in the push() log line# below (Logs tab only) -- the UI showed just "queue N ·@@ -42537,6 +42955,9 @@ if __name__ == "__main__":_sb_boot_reconcile()load_hidden()load_queue()+ # Before the worker: a queued voice-only Lip-sync job must find the+ # separator install already running, not refuse (4.17.4).+ a2v_separator_boot()threading.Thread(target=worker_loop, daemon=True).start()if VERSION_CHECK_ENABLED:threading.Thread(target=version_check_loop, daemon=True).start()diff --git a/mlx_warm_helper.py b/mlx_warm_helper.pyindex 6292e3e..5f11cfe 100644--- a/mlx_warm_helper.py+++ b/mlx_warm_helper.py@@ -1988,6 +1988,30 @@ def _thin_table_caps(model_dir: str) -> tuple[int, int] | None:return None+_DISTILLED_STEPS = 8+++def _distilled_steps(raw) -> int:+ """The distilled one-pass lane runs its fixed 9-point table: 8 steps.++ The panel clamps every job to 8 before it gets here (4.17.4 fleet fix:+ "steps=9 is above the 8-step distilled schedule" failed 113 renders whose+ stray count came from the H3 surface, a Params restore or a Retry). This+ is the belt for a job written by an older panel or an API caller: a+ padded or truncated table is never what anyone meant, so clamp and log+ rather than die minutes in on "cannot thin a 9-point schedule".+ """+ try:+ steps = int(float(raw))+ except (TypeError, ValueError):+ steps = _DISTILLED_STEPS+ if steps != _DISTILLED_STEPS:+ emit({"event": "log",+ "line": f"steps={raw} on the distilled lane; using "+ f"{_DISTILLED_STEPS} (its fixed schedule)."})+ return _DISTILLED_STEPS++def _thin_cap(model_dir: str, key: str, want: int) -> int:"""Clamp a step count to what THIS checkpoint's fixed table can serve.@@ -3463,7 +3487,7 @@ for line in sys.__stdin__:width=int(p["width"]),num_frames=int(p["frames"]),seed=seed,- num_steps=int(p.get("steps", 8)),+ num_steps=_distilled_steps(p.get("steps", 8)),frame_rate=float(p.get("frame_rate", 24.0)),)# Named schedule preset for the 2.5 distilled lane ("fast" = thediff --git a/panel/routes_models.py b/panel/routes_models.pyindex 25fdc58..367ee66 100644--- a/panel/routes_models.py+++ b/panel/routes_models.py@@ -306,6 +306,19 @@ def post_a2v_separator_install(h, path, qs, ctype) -> None:h._json(payload, code); return+@post("/engine/repair")+def post_engine_repair(h, path, qs, ctype) -> None:+ # 4.17.4: "Repair engine" - the engine-env bar and a venv_broken failure+ # card both press this. Re-runs ONLY scripts/pinokio/ltx_engine_env.sh+ # (install.js's engine step) in the background; progress rides+ # /status.engine_env. No downloads, no Stop needed.+ _rb = h._read_form_body()+ if _rb is None:+ return+ code, payload = P.engine_env_repair_start()+ h._json(payload, code); return++@post("/music/cover/install")def post_music_cover_install(h, path, qs, ctype) -> None:# The opt-in ~2.8 GB that lets YuE2 read a score off a real recording.diff --git a/panel/routes_queue.py b/panel/routes_queue.pyindex fc720f8..e24023a 100644--- a/panel/routes_queue.py+++ b/panel/routes_queue.py@@ -126,7 +126,16 @@ def get_status(h, parsed) -> None:_cur_params = (payload["current"].get("params") or {})_mode = (_cur_params.get("mode") or "").lower()_engine = (_cur_params.get("engine") or "ltx").lower()- if _mode != "train" and _engine not in ("h3", "music"):+ _waiting = payload["current"].get("waiting_note")+ if _waiting:+ # 4.17.4: a voice-only Lip-sync job holding for the separator+ # install says so, instead of "Loading pipeline" at 0 %.+ _started = payload["current"].get("started_ts") or 0+ payload["current"]["progress"] = {+ "phase": "waiting", "pct": 0, "phase_label": str(_waiting),+ "elapsed_sec": max(0.0, P.time.time() - _started) if _started else 0,+ }+ elif _mode != "train" and _engine not in ("h3", "music"):payload["current"]["progress"] = P._compute_progress(payload["current"], payload.get("log") or [],)@@ -256,6 +265,9 @@ def get_status(h, parsed) -> None:payload["h3"] = P.h3_status()payload["music"] = P.music_status()payload["music_install"] = P.music_install_status()+ # 4.17.4: can a render start at all (the engine venv), and the one-click+ # repair's progress. File checks only - cheap enough for every poll.+ payload["engine_env"] = P.engine_env_status()payload["train_profile"] = P.TRAIN_PROFILEpayload["train_presets"] = P.TRAIN_PRESETSpayload["train_style_presets"] = P.TRAIN_STYLE_PRESETSdiff --git a/scripts/check_post_update.js b/scripts/check_post_update.jsindex cb62588..423e4ee 100644--- a/scripts/check_post_update.js+++ b/scripts/check_post_update.js@@ -213,6 +213,9 @@ for (const [label, re] of mustRequire) {const PIN_PAIR = { mlx: "0.31.1", mflux: "0.18.0" }const pinSites = [["scripts/post_update.sh", "mlx"], ["install.js", "mlx"],+ // 4.17.4: install.js's engine step now lives here (one implementation the+ // panel's "Repair engine" re-runs too), so the mlx pin is asserted here.+ ["scripts/pinokio/ltx_engine_env.sh", "mlx"],["scripts/post_update.sh", "mflux"], ["install.js", "mflux"],["scripts/pinokio/mflux_pack.sh", "mflux"], ["install_qwen.js", "mflux"],]diff --git a/scripts/pinokio/a2v_stems_deps.sh b/scripts/pinokio/a2v_stems_deps.shindex cc9af6e..2f68a29 100755--- a/scripts/pinokio/a2v_stems_deps.sh+++ b/scripts/pinokio/a2v_stems_deps.sh@@ -26,11 +26,27 @@# Exit non-zero = not installed; callers treat that as a WARN, never as a# failed Install or Update.#+# OUTCOME RECORD (4.17.4). Every exit writes last_install.json next to the+# weights: {"outcome", "error_class", "via", "ts"} - closed words only, no+# paths. The panel reads it at boot and reports it once (docs/ANALYTICS.md,+# separator_install), so the fleet can tell an Update that left no separator+# apart from one nobody ran. PHOSPHENE_SEPARATOR_VIA names the caller.+## Usage: a2v_stems_deps.sh <path to the ltx-2-mlx checkout>set -uo pipefail-MLX_CHECKOUT="$(cd "${1:?ltx-2-mlx checkout required}" && pwd)"APP_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"+SEP_HOME="${PHOSPHENE_SEPARATOR_HOME:-$APP_ROOT/mlx_models/demucs}"+VIA="${PHOSPHENE_SEPARATOR_VIA:-install}"+record() {+ mkdir -p "$SEP_HOME" 2>/dev/null || return 0+ printf '{"outcome":"%s","error_class":"%s","via":"%s","ts":%s}\n' \+ "$1" "$2" "$VIA" "$(date +%s)" > "$SEP_HOME/last_install.json" 2>/dev/null+ return 0+}++MLX_CHECKOUT="$(cd "${1:?ltx-2-mlx checkout required}" && pwd)" \+ || { record failed no_venv; exit 1; }VENV=""for cand in "$MLX_CHECKOUT/env" "$MLX_CHECKOUT/.venv"; do@@ -41,6 +57,7 @@ for cand in "$MLX_CHECKOUT/env" "$MLX_CHECKOUT/.venv"; dodoneif [ -z "$VENV" ]; thenecho "no engine venv under $MLX_CHECKOUT - run the engine install first" >&2+ record failed no_venvexit 1fiPY="$VENV/bin/python3.11"@@ -49,7 +66,7 @@ PY="$VENV/bin/python3.11"# The weights live with Phosphene's other weights, not in a torch cache. NOT# ${TORCH_HOME:-...}: Pinokio's ENVIRONMENT may set TORCH_HOME for every app,# and the panel looks in mlx_models/demucs (or where it tells us to).-export TORCH_HOME="${PHOSPHENE_SEPARATOR_HOME:-$APP_ROOT/mlx_models/demucs}"+export TORCH_HOME="$SEP_HOME"unset PYTORCH_ENABLE_MPS_FALLBACK PYTORCH_MPS_FAST_MATHRUNNER="$APP_ROOT/scripts/a2v_separate.py"PROBE='import demucs.pretrained, demucs.apply, torch'@@ -77,10 +94,12 @@ PYPINSrm -f "$PINS"if [ $rc -ne 0 ]; thenecho 'vocal separation: package install failed' >&2+ record failed pip_failedexit 1fiif ! "$PY" -c "$PROBE"; thenecho 'vocal separation: installed but does not import' >&2+ record failed import_failedexit 1fifi@@ -90,6 +109,8 @@ fiif ! "$PY" "$RUNNER" --prefetch; thenecho 'vocal separation: the model did not load (network?)' >&2echo 'It will download on first use instead.' >&2+ record failed weights_failedexit 1fi+record ok ""echo "vocal separation ready (weights in $TORCH_HOME)"diff --git a/scripts/pinokio/engine_env_check.py b/scripts/pinokio/engine_env_check.pynew file mode 100644index 0000000..def4d17--- /dev/null+++ b/scripts/pinokio/engine_env_check.py@@ -0,0 +1,49 @@+"""Can a render start in this venv? Exit 0 = yes.++Run by scripts/pinokio/ltx_engine_env.sh with the ENGINE venv's own Python,+after the package install. It asks the panel's question+(mlx_ltx_panel.engine_env_fault): the engine packages exist as real+directories in site-packages - not only as the workspace's editable links,+which is what the dependency pass alone leaves, and which the codec patch+cannot find - and they import.++Stdlib only; prints one line per problem and never a path under the home+directory (Pinokio shows this output, and a bug report quotes it).+"""+from __future__ import annotations++import importlib+import sys+import sysconfig+from pathlib import Path++PACKAGES = ("ltx_core_mlx", "ltx_pipelines_mlx")+IMPORTS = ("ltx_core_mlx", "ltx_pipelines_mlx", "mlx.core")+++def problems() -> list[str]:+ out: list[str] = []+ site = Path(sysconfig.get_paths()["purelib"])+ for name in PACKAGES:+ if not (site / name).is_dir():+ out.append(f"{name} is not installed as a package directory "+ f"(missing, or only an editable link)")+ for mod in IMPORTS:+ try:+ importlib.import_module(mod)+ except Exception as exc: # noqa: BLE001+ out.append(f"import {mod} fails: {type(exc).__name__}")+ return out+++def main() -> int:+ found = problems()+ for p in found:+ print("engine check: " + p)+ if not found:+ print("engine check: ok")+ return 1 if found else 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/scripts/pinokio/ltx_engine_env.sh b/scripts/pinokio/ltx_engine_env.shnew file mode 100755index 0000000..f6bd086--- /dev/null+++ b/scripts/pinokio/ltx_engine_env.sh@@ -0,0 +1,232 @@+#!/usr/bin/env bash+# THE ENGINE ENVIRONMENT: the Python packages a render needs, installed into+# the engine venv (ltx-2-mlx/env). ONE implementation, three callers:+# install.js - Install / Resume Install / the sidebar Repair entry+# the panel - "Repair engine" (POST /engine/repair), which re-runs+# ONLY this step, no downloads, no venv rebuild+# by hand - bash scripts/pinokio/ltx_engine_env.sh+#+# WHY IT IS A SCRIPT NOW (4.17.4 fleet fix). `venv_broken` - "the engine venv+# has a Python but no packages" - on fresh installs, every version: 18+# installs in 30 days, nearly all at the very first boot. This step used to be+# install.js's inline message array, so nothing but Pinokio's /error:/i output+# match decided whether it had worked: the first transient network failure+# ended the whole Install, and nothing could re-run just this step - the only+# repair was the whole install.js, and only with the panel stopped.+#+# WHAT IT DOES+# * the same five uv commands install.js ran, in the same order (mlx trio ++# transformers cap, the dependency pass, the --reinstall --no-deps pass that+# turns the workspace's editable links into real copies, mlx-vlm, the+# runtime extras);+# * up to 3 attempts, so a dropped connection is retried, not fatal;+# * then VERIFIES the result the way the panel judges it+# (engine_env_check.py: real package directories in site-packages, and an+# import) - "uv exited 0" is not the question, "can a render start" is;+# * a lock file (env/.phosphene_engine_install, our pid) for the whole run:+# the panel reads it to say "still installing" instead of "broken" while a+# concurrent Install is mid-way, and a second run refuses to start.+#+# PINOKIO SEMANTICS. Pinokio 8.2.0 stops a run when its output matches+# /error:/i or /errno /i, and ignores exit codes. An attempt that will be+# retried must therefore not print uv's own "error:" lines verbatim - they are+# shown with the word defused. The FINAL failure prints "FATAL error:" on+# purpose, so Install stops there instead of downloading 37 GB into a venv that+# cannot render.+#+# Usage: ltx_engine_env.sh [path to the ltx-2-mlx checkout]+set -uo pipefail++APP_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"+MLX="${1:-$APP_ROOT/ltx-2-mlx}"+cd "$MLX" 2>/dev/null || { echo "FATAL error: no engine checkout at $MLX - run Install"; exit 1; }+PY=env/bin/python+if ! "$PY" -c 'import sys' >/dev/null 2>&1; then+ echo 'FATAL error: the engine venv has no working Python - run Install (it rebuilds the venv, models kept)'+ exit 1+fi++# The lock is a DIRECTORY: mkdir is atomic, so two runs starting together+# (Pinokio's Install and the panel's Repair) cannot both take it. Our pid+# goes inside; a lock whose pid is gone was left by a killed run and is+# taken over. Only the owner removes it.+LOCK=env/.phosphene_engine_install.d+take_lock() { mkdir "$LOCK" 2>/dev/null && printf '%s\n%s\n' "$$" "$(date +%s)" > "$LOCK/pid"; }+if ! take_lock; then+ # The owner writes its pid a moment AFTER mkdir: give it two seconds.+ other=''+ for _ in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do+ other="$(sed -n 1p "$LOCK/pid" 2>/dev/null)"+ [ -n "$other" ] && break+ sleep 0.1+ done+ if [ -n "$other" ] && kill -0 "$other" 2>/dev/null; then+ echo "FATAL error: another engine install is running (pid $other) - let it finish"+ exit 1+ fi+ rm -f "$LOCK/pid"; rmdir "$LOCK" 2>/dev/null+ take_lock || { echo 'FATAL error: another engine install just started - let it finish'; exit 1; }+fi+release_lock() {+ [ "$(sed -n 1p "$LOCK/pid" 2>/dev/null)" = "$$" ] && rm -f "$LOCK/pid" && rmdir "$LOCK"+}+trap release_lock EXIT++# uv's own failure lines, defused for Pinokio's matcher (see above).+defuse() { sed -u -e 's/[Ee][Rr][Rr][Oo][Rr]:/problem -/g' -e 's/[Ee]rrno /errno-/g'; }++attempt() {+ uv pip install --python env/bin/python 'mlx==0.31.1' 'mlx-lm==0.31.1' \+ 'mlx-metal==0.31.1' 'transformers>=5.0.0,<5.13.0' 2>&1 | defuse || return 1+ uv pip install --python env/bin/python --build-constraints ../pip-build-constraints.txt \+ ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx ./packages/ltx-trainer 2>&1 | defuse || return 1+ uv pip install --python env/bin/python --reinstall --no-deps \+ --build-constraints ../pip-build-constraints.txt \+ ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx ./packages/ltx-trainer 2>&1 | defuse || return 1+ uv pip install --python env/bin/python --no-deps 'mlx-vlm==0.4.4' 2>&1 | defuse || return 1+ uv pip install --python env/bin/python certifi pillow numpy 'huggingface-hub>=1.5.0,<2.0' \+ 'hf_transfer>=0.1.6' 'litellm>=1.83.14' 'smolagents>=1.24.0' 'pywebpush>=2.0' 2>&1 | defuse || return 1+ # The --reinstall above replaced the patched ltx_core_mlx: put the codec patch+ # back before anything renders (install.js runs it again after; idempotent).+ "$PY" "$APP_ROOT/patch_ltx_codec.py" 2>&1 | defuse || return 1+ "$PY" "$APP_ROOT/scripts/pinokio/engine_env_check.py" 2>&1 | defuse || return 1+}++echo '=== engine environment: installing the render packages ==='+"$PY" --version 2>&1+n=1+while :; do+ echo "--- attempt $n of 3 ---"+ if attempt; then+ echo 'engine environment ready - ltx_core_mlx, ltx_pipelines_mlx and mlx import'+ exit 0+ fi+ [ "$n" -ge 3 ] && break+ wait_s=$(( n * ${PHOSPHENE_ENGINE_RETRY_WAIT:-15} ))+ echo "attempt $n did not finish - retrying in ${wait_s} s (a network drop is the usual cause)"+ sleep "$wait_s"+ n=$(( n + 1 ))+done+echo 'FATAL error: the engine environment did not install after 3 attempts.'+echo 'Check the network, then run Install again (or press Repair engine in the panel).'+echo 'Nothing was deleted; every model is kept.'+exit 1++# ---- WHY EACH COMMAND ABOVE IS WHAT IT IS ------------------------------------+# Moved verbatim from install.js's inline step (4.17.4), where these notes sat+# beside the commands they explain. The diagnostics echoes became the+# python --version line and engine_env_check.py.+#+# v2.0.3: log Python identity before each pip step. KTDS hit a+# silent missing-package install and we had nothing in the log+# to diagnose it. These echoes leave a paper trail of which+# interpreter is being targeted by --python env/bin/python.+# (install.js ran: "echo '=== install diagnostics: pip install ==='")+# (install.js ran: "env/bin/python --version || echo 'venv python NOT executable'")+# (install.js ran: "env/bin/python -c 'import sys; print(\"sys.executable:\", sys.executable); print(\"sys.path[0]:\", sys.path[0] if sys.path else None)'")+# (install.js ran: "echo '=== /diagnostics ==='")+# Force the mlx pin BEFORE installing ltx-* packages so their deps+# resolve to the pinned version instead of pulling latest 0.31.x.+#+# SHIP-BLOCKER (2026-07-10, GitHub #40/#38/#37/#33): also pin+# transformers <5.13.0. mlx-lm 0.31.1 declares `transformers>=5.0.0`+# with NO upper bound, so any fresh install after transformers 5.13.0+# dropped (~Jul 9) pulls 5.13.0 — which breaks mlx_lm.tokenizer_utils.+# EVERY generation then crashes with "'str' object has no attribute+# '__module__'": the Gemma text-encoder load silently no-ops ("done in+# 0.0s") → downstream "Model not loaded. Call load() first." Known-good:+# 5.7.0 (our validated build) and 5.12.x. Cap it on the SAME resolve as+# mlx-lm so the constraint sticks. Diagnosed by @saved-j + @xandreau.+#+# The Update path enforces this too — scripts/post_update.sh step 2b,+# a `require` (fatal) step. That sentence used to live here as "uv+# downgrades an already-installed 5.13.0 on the next Update" and was+# simply false for a month: nothing in the update path constrained+# transformers at all, so an existing 5.13.0 survived every Update and+# the install stayed unable to generate anything. A promise about+# another file now names the step that keeps it.+# (install.js ran: "uv pip install --python env/bin/python 'mlx==0.31.1' 'mlx-lm==0.31.1' 'mlx-metal==0.31.1' 'transformers>=5.0.0,<5.13.0'")+# Y3 — Train Character ships in 3.0. Without ltx-trainer-mlx in+# the venv, the trainer subprocess fails at `import yaml` because+# pyyaml is a transitive dep of ltx-trainer (declared in its+# pyproject). Codex pre-ship review 2026-05-18 caught this.+#+# `--build-constraints ../pip-build-constraints.txt` pins the wheel+# BUILD backend (hatchling<1.32). Upstream's three pyprojects all+# declare `readme = "../../README.md"` — a path outside the package+# dir — which hatchling 1.32.0 turned into a hard error+# ("Readme path must be within the project directory" →+# metadata-generation-failed). uv resolves the build backend fresh+# from PyPI into an isolated env, so from the day 1.32.0 shipped+# this step failed for every NEW install on every pinned tag. See+# pip-build-constraints.txt; update.js runs the same uv command+# (it used to spell it `PIP_CONSTRAINT=`, which modern pip ignores+# by design — one lane now, one failure mode).+# (install.js ran: "uv pip install --python env/bin/python --build-constraints ../pip-build-constraints.txt ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx ./packag)+# v4.0 — THE SECOND PASS IS THE POINT, and it closes a trap that has+# shipped since the workspace landed. `ltx-2-mlx` is a uv WORKSPACE:+# the line above (with deps, without --reinstall) links its members+# EDITABLE. site-packages gets `_editable_impl_ltx_core_mlx.pth`+# instead of a copy, so `import ltx_core_mlx` resolves to+# `packages/ltx-core-mlx/src/...` — the GIT-TRACKED source. The codec+# patch further down then finds no ltx_core_mlx directory in+# site-packages and patches the tracked file, which is why a+# PERFECTLY SUCCESSFUL install ended with+# M packages/ltx-core-mlx/src/.../video_vae.py+# every single time — and why the v3.8.0 pin move hit "your local+# changes would be overwritten by checkout" for the whole fleet.+#+# v3.8.1 made the pin move survive that (reset --hard first) and+# v3.8.1's own notes filed this as the follow-up: cure the cause, so+# a FRESH install no longer starts dirty. `--reinstall --no-deps`+# replaces the .pth links with real copies and re-resolves nothing;+# it is the exact command update.js has run for many releases, so+# the end state is one every install already converges to on its+# first Update. One lane, one runtime shape.+# (install.js ran: "uv pip install --python env/bin/python --reinstall --no-deps --build-constraints ../pip-build-constraints.txt ./packages/ltx-core-mlx ./packages/ltx-)+# Auto-caption (Gemma 3 12B via mlx-vlm) needs the mlx-vlm+# package. Pinned to 0.4.4 — caption_with_gemma.py's import+# surface (load, generate, prompt_utils.apply_chat_template)+# is stable at that version. --no-deps so we don't drag in+# mlx-vlm's heavy default deps (PIL>=10, av, etc. that fight+# mflux/transformers pins). The runtime imports it lazily so+# a partial install doesn't break the rest of the panel.+# (install.js ran: "uv pip install --python env/bin/python --no-deps 'mlx-vlm==0.4.4'")+# hf_transfer is HuggingFace's Rust-based downloader — 5-10× faster+# than the default Python downloader for big repos like Q8 (~25 GB).+# The panel sets HF_HUB_ENABLE_HF_TRANSFER=1 in download envs; if the+# package is missing the hf CLI falls back gracefully with a warning.+# litellm: agent's chat client (multi-provider router for OpenAI /+# Anthropic / Ollama / mlx-lm.server). Pinned to >=1.83.14 — the+# March 2026 PyPI supply-chain incident affected earlier 1.x+# releases (stole SSH keys via a poisoned post-install script).+# See agent/engine.py for routing details. Falls back to stdlib+# urllib if missing — safe to omit but the loop is less robust.+#+# smolagents: Phase 2 of the agent-layer refactor. Powers+# the optional CodeAgent runtime in agent/runtime_smol.py,+# selectable per-request via PHOSPHENE_RUNTIME=smol. smolagents+# pulls transformers as a transitive dep — the huggingface-hub+# floor is bumped to >=1.5.0 to satisfy transformers' pin.+# smolagents itself ships with a pessimistic <1.0 hub pin that+# is empirically benign in practice.+#+# The hub pin range we settle on (>=1.5.0,<2.0) satisfies:+# - mflux>=0.17.5 wants >=1.1.6,<2.0+# - transformers (5.7.0+) wants >=1.5.0,<2.0+# - smolagents 1.24.0 warns about <1.0 but works+# - hf download CLI needs v1+ for the new command name+# 2026-05-31 review fix (E3): pin `certifi` explicitly. start.js+# points SSL_CERT_FILE at certifi's cacert.pem (the v3.0.4 fix for+# the CivitAI CERTIFICATE_VERIFY_FAILED on uv-Python). certifi was+# only ever a transitive dep — if a future dep change drops it, the+# SSL_CERT_FILE path vanishes and ALL panel stdlib HTTPS breaks.+# Naming it here keeps the cert bundle guaranteed-present.+# (install.js ran: "uv pip install --python env/bin/python certifi pillow numpy 'huggingface-hub>=1.5.0,<2.0' 'hf_transfer>=0.1.6' 'litellm>=1.83.14' 'smolagents>=1.24.0)+# v2.0.3: post-install confirmation that the local packages+# actually landed in site-packages. The Y1.034+ patch script's+# i2v target tolerates a missing ltx_pipelines_mlx — without+# this echo we'd discover the gap only at panel start time.+# (install.js ran: "echo '=== post-pip site-packages check ==='")+# (install.js ran: "ls env/lib/python3.11/site-packages/ | grep -E '^(ltx|mlx)' || echo 'WARN: no ltx_*/mlx packages in site-packages'")+# (install.js ran: "echo '=== /site-packages check ==='")diff --git a/scripts/post_update.sh b/scripts/post_update.shindex 4e0f45f..9890acb 100644--- a/scripts/post_update.sh+++ b/scripts/post_update.sh@@ -243,7 +243,7 @@ echo 'Installing/refreshing the mflux image-engine pack (Ideogram 4 + Qwen-Edit)# Existing installs get it here — the Lip-sync form's voice-only box has been# ON by default since 4.15 and nothing installed the separator before 4.17.x.# BEST-EFFORT and idempotent: ready installs print "ready" in about a second.-bash "$ROOT/scripts/pinokio/a2v_stems_deps.sh" "$ROOT/ltx-2-mlx" \+PHOSPHENE_SEPARATOR_VIA=update bash "$ROOT/scripts/pinokio/a2v_stems_deps.sh" "$ROOT/ltx-2-mlx" \|| echo 'WARN: vocal separation did not install - video is unaffected; the Lip-sync form offers Install.'# ---- 8. Weight self-heal ----------------------------------------------------diff --git a/scripts/test_analytics_dryrun.py b/scripts/test_analytics_dryrun.pyindex 49a233c..4d0b5ad 100644--- a/scripts/test_analytics_dryrun.py+++ b/scripts/test_analytics_dryrun.py@@ -1037,6 +1037,9 @@ class TestReceiverDirectives(AnalyticsTestCase):# step fired here is the one the worker owns.P._analytics_install_step("first_queue", "started")P._analytics_update_outcome("restart_pending", "failed", "4.15.0")+ # v4.17.4: one separator install outcome, the closed words only.+ P._analytics_separator_install("failed", "update", "pip_failed",+ ready=False, weights=False)# A refusal: the panel declining on purpose. Fired here for the same# reason as the rest — its payload has to carry the receiver# directives too, and it is the newest way to get an event out.diff --git a/test_codex_4170_safety.py b/test_codex_4170_safety.pyindex d51d6fc..4d9f85f 100644--- a/test_codex_4170_safety.py+++ b/test_codex_4170_safety.py@@ -336,8 +336,12 @@ def test_safety_4_a_queued_h3_job_restores_its_engine_and_h3_recipe():def test_safety_4_a_queued_ltx_job_restores_steps_and_export_method():+ # 4.17.4: on a DISTILLED quality make_job now clamps steps to 8 (the lane+ # cannot run anything else - clamp_distilled_steps), so a restorable,+ # non-default count has to live on an HQ quality, where `steps` is kept.ltx = p.make_job({"mode": "t2v", "engine": "ltx", "prompt": "a fox", "steps": "12",- "upscale": "fit_720p", "upscale_method": "pipersr", "quality": "standard"})["params"]+ "upscale": "fit_720p", "upscale_method": "pipersr", "quality": "high"})["params"]+ assert ltx["steps"] == 12ltx["source"] = "characters" # would have jumped to the Characters tabout = _load_recipe(ltx)assert ["setEngine", "ltx", {"persist": False}] in out["calls"]diff --git a/test_distilled_steps_clamp.py b/test_distilled_steps_clamp.pynew file mode 100644index 0000000..8cb2619--- /dev/null+++ b/test_distilled_steps_clamp.py@@ -0,0 +1,258 @@+"""4.17.4 fleet fix: a stray step count no longer fails a distilled render.++THE BUG (fleet, every version since 4.9): "steps=9 is above the 8-step+distilled schedule" — 113 failed renders in 30 days, one install at a time,+retried in loops (53 + 41 on one 4.15 install at steps=20, 5 on 4.17.3 at+steps=9). Also seen: 18, 30, and on the other side 1/4/5/6 ("below the 8-step+minimum"). The distilled LTX lane runs a fixed 9-point table, exactly 8+steps, and run_job_inner REFUSED any other count.++WHERE THE NUMBER CAME FROM. LTX and Hailuo H3 share ONE hidden #steps field.+H3 writes its tuned count (9) or a pinned Steps pill (12/16/20) into it, and+setEngine() back to LTX never put LTX's 8 back. Load Params of an H3 clip on+a Mac that lands on LTX restored it too (p.steps, then setEngine), and Retry+re-queues the job's own params, so the refusal repeated forever.++THE FIX, three layers, each tested here:+ 1. make_job clamps every LTX distilled job to 8 with one plain note+ (generation_clamp_notes -> Queue row + Now card). The Params/sidecar+ restore path posts the sidecar's values back through /queue/add, i.e.+ through make_job: covered by the sidecar-shaped form below.+ 2. run_job_inner clamps instead of refusing, for jobs written by an older+ panel, retries and API callers that never met make_job.+ 3. setEngine() re-applies the LTX quality's step count on the way out of+ H3 (run in node against the real functions).+The helper also clamps (belt), asserted on its source.+"""+from __future__ import annotations++import ast+import json+import os+import shutil+import subprocess+import sys+import tempfile+import unittest+from pathlib import Path+from unittest import mock++ROOT = Path(__file__).resolve().parent+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")+sys.path.insert(0, str(ROOT))+sys.path.insert(0, str(ROOT / "scripts"))++import mlx_ltx_panel as P # noqa: E402+from extract_panel_js import extract_function # noqa: E402++NODE = shutil.which("node")+++def _form(**extra) -> dict:+ form = {"mode": "t2v", "prompt": "a lighthouse keeper waves", "width": "1024",+ "height": "576", "frames": "121", "seed": "-1", "quality": "balanced",+ "accel": "off", "enhance": "off", "upscale": "off", "engine": "ltx"}+ form.update(extra)+ return form+++class MakeJobClamps(unittest.TestCase):+ def test_fleet_counts_land_on_8_with_one_note(self):+ for steps in ("9", "20", "18", "30", "4", "1"):+ for quality in ("balanced", "standard", "quick"):+ with self.subTest(steps=steps, quality=quality):+ job = P.make_job(_form(steps=steps, quality=quality))+ p = job["params"]+ self.assertEqual(p["steps"], 8)+ notes = p.get("generation_clamp_notes") or []+ self.assertEqual(sum("steps" in n for n in notes), 1, notes)+ self.assertIn(f"steps {steps} -> 8", notes[0])++ def test_eight_carries_no_note(self):+ p = P.make_job(_form(steps="8"))["params"]+ self.assertEqual(p["steps"], 8)+ self.assertFalse(any("steps" in n for n in p.get("generation_clamp_notes") or []))++ def test_sidecar_restore_of_an_h3_count_onto_ltx(self):+ """The Params restore path: an i2v sidecar carrying H3's tuned 9 posted+ back to /queue/add on the LTX engine — the 4.17.3 Balanced i2v case."""+ img = Path(tempfile.mkdtemp(prefix="steps-")) / "ref.png"+ img.write_bytes(b"\x89PNG\r\n\x1a\n")+ sidecar_params = {"mode": "i2v", "quality": "balanced", "steps": 9,+ "width": 1344, "height": 768, "frames": 121,+ "image": str(img), "engine": "ltx", "seed": "123",+ "prompt": "she turns to the window"}+ form = {k: [str(v)] for k, v in sidecar_params.items()}+ p = P.make_job(form)["params"]+ self.assertEqual(p["steps"], 8)+ self.assertTrue(p.get("generation_clamp_notes"))++ def test_lanes_with_their_own_steps_are_untouched(self):+ # H3 legitimately runs 9..20 on the same field.+ self.assertIsNone(P.clamp_distilled_steps(+ {"engine": "h3", "mode": "i2v", "quality": "balanced", "steps": 20}))+ # The HQ lane's `steps` is display-only; it reads stage1/stage2.+ hq = next((k for k in P.LTX_QUALITIES if P.ltx_quality_uses_hq(k)), None)+ if hq:+ prm = {"engine": "ltx", "mode": "t2v", "quality": hq, "steps": 18}+ self.assertIsNone(P.clamp_distilled_steps(prm))+ self.assertEqual(prm["steps"], 18)+ for mode in ("extend", "keyframe", "a2v", "retake", "upscale"):+ prm = {"engine": "ltx", "mode": mode, "quality": "balanced", "steps": 12}+ self.assertIsNone(P.clamp_distilled_steps(prm))+ self.assertEqual(prm["steps"], 12)++ def test_garbage_counts_clamp_too(self):+ for raw in ("abc", None, "", "9.0"):+ prm = {"engine": "ltx", "mode": "t2v", "quality": "balanced", "steps": raw}+ P.clamp_distilled_steps(prm)+ self.assertEqual(prm["steps"], 8, raw)+++class _Helper:+ ready_info: dict = {}++ def __init__(self):+ self.sent: list[dict] = []++ def is_alive(self):+ return True++ def kill(self, *a, **k):+ pass++ def run(self, spec, *a, **k):+ self.sent.append(spec)+ out = (spec.get("params") or {}).get("output_path")+ if out:+ Path(out).write_bytes(b"x")+ return {"seed_used": 1, "elapsed_sec": 0.1}+++class RunJobInnerRendersInsteadOfRefusing(unittest.TestCase):+ """A job that never met this make_job (queued by 4.17.3, a Retry of its+ params, an API caller): it used to die on the refusal; now it reaches the+ helper at 8 steps."""++ def _run(self, steps):+ job = P.make_job(_form())+ job["params"]["steps"] = steps+ job["params"].pop("generation_clamp_notes", None)+ helper = _Helper()+ with mock.patch.object(P, "HELPER", helper), \+ mock.patch.object(P, "OUTPUT", Path(tempfile.mkdtemp(prefix="steps-run-"))), \+ mock.patch.object(P, "hq_surface_missing", lambda *a, **k: []), \+ mock.patch.object(P, "write_sidecar", lambda *a, **k: True), \+ mock.patch.object(P, "_gemma4_tower_supported", lambda *a, **k: True), \+ mock.patch.object(P, "ltx_pack_preflight", lambda *a, **k: None):+ P.run_job_inner(job)+ return helper, job++ def test_steps_9_and_20_render_at_8(self):+ for steps in (9, 20, 4):+ with self.subTest(steps=steps):+ helper, job = self._run(steps)+ self.assertEqual(len(helper.sent), 1)+ self.assertEqual(helper.sent[0]["params"]["steps"], 8)+ self.assertTrue(any("steps" in n for n in+ job["params"].get("generation_clamp_notes") or []))++ def test_the_refusals_are_gone(self):+ src = (ROOT / "mlx_ltx_panel.py").read_text(encoding="utf-8")+ self.assertNotIn("is above the 8-step distilled schedule", src)+ self.assertNotIn("is below the 8-step minimum", src)+++class HelperBelt(unittest.TestCase):+ def test_helper_distilled_lane_clamps(self):+ src = (ROOT / "mlx_warm_helper.py").read_text(encoding="utf-8")+ tree = ast.parse(src)+ keep = [n for n in tree.body if (+ isinstance(n, ast.FunctionDef) and n.name == "_distilled_steps") or (+ isinstance(n, ast.Assign) and isinstance(n.targets[0], ast.Name)+ and n.targets[0].id == "_DISTILLED_STEPS")]+ self.assertEqual(len(keep), 2)+ logged: list = []+ ns: dict = {"emit": logged.append}+ exec(compile(ast.Module(body=keep, type_ignores=[]), "helper", "exec"), ns)+ self.assertEqual(ns["_distilled_steps"](9), 8)+ self.assertEqual(ns["_distilled_steps"]("20"), 8)+ self.assertEqual(ns["_distilled_steps"](8), 8)+ self.assertEqual(len(logged), 2)+ self.assertIn("num_steps=_distilled_steps(p.get(\"steps\", 8))", src)+++def _node(script: str):+ if NODE is None:+ raise unittest.SkipTest("node not on PATH")+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:+ fh.write(script)+ path = fh.name+ try:+ r = subprocess.run([NODE, path], capture_output=True, text=True,+ errors="replace", timeout=60)+ finally:+ Path(path).unlink(missing_ok=True)+ if r.returncode != 0:+ raise AssertionError(r.stderr[-2000:])+ return json.loads(r.stdout.strip().splitlines()[-1])+++class SetEngineGivesLtxItsStepsBack(unittest.TestCase):+ """The real setEngine + applyQuality + _qualityUsesHq in node, with the+ DOM and the unrelated surface painters stubbed."""++ def _script(self, quality: str, steps_before: str, engine: str) -> str:+ q = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")+ c = (ROOT / "webapp" / "js" / "characters.js").read_text(encoding="utf-8")+ fns = "\n".join([extract_function("setEngine", q),+ extract_function("applyQuality", q),+ extract_function("_qualityUsesHq", c)])+ return f"""+const els = {{}};+function el(id) {{ return els[id] || (els[id] = {{ id, value: '', hidden: false,+ textContent: '', classList: {{ toggle() {{}} }}, style: {{}} }}); }}+const document = {{ getElementById: el, body: {{ dataset: {{}} }},+ querySelectorAll: () => [], querySelector: () => null }};+const localStorage = {{ setItem() {{}}, getItem() {{ return null; }} }};+const BOOT = {{ ltx: {{ qualities: [{{ key: 'balanced', pipeline: 'distilled' }},+ {{ key: 'high', pipeline: 'hq' }}] }} }};+const ENGINES = [{{ id: 'ltx', builtin: true }}, {{ id: 'h3', builtin: true }}];+const H3_ENGINE_LS_KEY = 'k'; let currentMode = 't2v';+const QUALITY_PRESETS = {{ balanced: {{ upscale: 'fit_720p' }}, high: {{ upscale: 'off' }} }};+function engineById(id) {{ return ENGINES.find(e => e.id === id); }}+function defaultEngine() {{ return ENGINES[0]; }}+function renderEngineSwitch() {{}} function syncModeStripToEngine() {{}}+function snapFramesTo8kPlus1() {{}} function setUpscale() {{}}+function renderTierAxes() {{}} function _applyCharacterQualityStripVisibility() {{}}+function updateCustomizeSummary() {{}} function updateDerived() {{}}+function _syncEnginePromptTools() {{}} function _syncLoraPickerForEngine() {{}}+{fns}+el('quality').value = {json.dumps(quality)};+el('steps').value = {json.dumps(steps_before)};+setEngine({json.dumps(engine)}, {{ persist: false }});+console.log(JSON.stringify([String(el('steps').value)]));+"""++ def test_back_from_h3_restores_8(self):+ for before in ("9", "12", "16", "20"):+ (steps,) = _node(self._script("balanced", before, "ltx"))+ self.assertEqual(steps, "8", before)++ def test_back_from_h3_on_high_restores_its_own_count(self):+ (steps,) = _node(self._script("high", "9", "ltx"))+ self.assertEqual(steps, "18")++ def test_load_params_lands_the_engine_after_restoring_steps(self):+ """Load Params writes p.steps, THEN calls setEngine(): the order is what+ lets setEngine's LTX branch overwrite a restored H3 count."""+ src = extract_function("loadParams", (ROOT / "webapp" / "js" / "queue.js")+ .read_text(encoding="utf-8"))+ i_steps = src.index("document.getElementById('steps').value = p.steps")+ i_eng = src.index("setEngine(_eng, { persist: false })")+ self.assertLess(i_steps, i_eng)+++if __name__ == "__main__":+ unittest.main()diff --git a/test_engine_env_repair.py b/test_engine_env_repair.pynew file mode 100644index 0000000..e23c0e9--- /dev/null+++ b/test_engine_env_repair.py@@ -0,0 +1,431 @@+"""4.17.4 fleet fix: a half-installed engine venv is retried, caught, and+repaired from the panel in one click.++THE FIELD SHAPE (fleet, 30 days): `venv_broken` — "the engine venv has a+Python but no packages — ltx_pipelines_mlx never finished installing" — on 18+installs, nearly every one at the VERY FIRST BOOT (app_installed and the+failed engine_env check in the same second). Most recovered minutes later+with no repair at all, some on the same running panel: the panel came up+while Pinokio's Install was still writing the venv. Others gave up (one after+three failed renders). The only repair was the whole install.js, and only+from a stopped panel; the failure card offered Retry, which fails in one+second the same way.++THE FIX, each part tested here:+ * scripts/pinokio/ltx_engine_env.sh is install.js's engine step: retries a+ dropped connection (without printing a bare "error:", which would end the+ Pinokio run on the first attempt), VERIFIES what the panel checks, holds+ a lock for its whole run, and fails with "FATAL error:" when it cannot.+ * the panel reads that lock: "still installing" is not "broken", and it+ never starts a second installer into the same venv.+ * POST /engine/repair re-runs only that step; /status.engine_env drives a+ bar with the button; a venv_broken failure card offers Repair engine.+"""+from __future__ import annotations++import json+import os+import re+import shutil+import stat+import subprocess+import sys+import tempfile+import time+import unittest+from pathlib import Path+from unittest import mock++ROOT = Path(__file__).resolve().parent+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")+sys.path.insert(0, str(ROOT))+sys.path.insert(0, str(ROOT / "scripts"))++import mlx_ltx_panel as P # noqa: E402+from extract_panel_js import extract_function # noqa: E402+from panel import routes as R # noqa: E402+from panel import routes_models # noqa: E402++SCRIPT = ROOT / "scripts" / "pinokio" / "ltx_engine_env.sh"+CHECK = ROOT / "scripts" / "pinokio" / "engine_env_check.py"+PINOKIO_BREAK = re.compile(r"error:|errno ", re.I) # Pinokio 8.2.0's defaults+NODE = shutil.which("node")+++def _lock(env: Path, pid: int) -> None:+ d = env / P.ENGINE_ENV_LOCK_NAME+ d.mkdir(exist_ok=True)+ (d / "pid").write_text(f"{pid}\n0\n")+++def _x(path: Path, body: str) -> None:+ path.write_text(body)+ path.chmod(path.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)+++class _App:+ """A copy of the two scripts in a fake app tree, a fake engine venv whose+ `python` answers the probes, and a fake `uv` first on PATH. `uv_fails`+ = how many uv calls fail (with uv's own "error:" text) before they work;+ the engine check passes once the --reinstall pass has run."""++ def __init__(self, uv_fails: int = 0, reinstall_fixes: bool = True):+ self.tmp = Path(tempfile.mkdtemp(prefix="engine-env-"))+ pin = self.tmp / "scripts" / "pinokio"+ pin.mkdir(parents=True)+ shutil.copy(SCRIPT, pin / SCRIPT.name)+ shutil.copy(CHECK, pin / CHECK.name)+ self.mlx = self.tmp / "ltx-2-mlx"+ (self.mlx / "env" / "bin").mkdir(parents=True)+ self.mark = self.tmp / "installed.mark"+ self.count = self.tmp / "uv.count"+ self.count.write_text("0")+ _x(self.mlx / "env" / "bin" / "python",+ "#!/bin/bash\n"+ "case \"$1\" in\n"+ " -c) exit 0 ;;\n"+ " --version) echo 'Python 3.11.15'; exit 0 ;;\n"+ " *engine_env_check.py) if [ -f '%s' ]; then echo 'engine check: ok'; exit 0;"+ " else echo 'engine check: import ltx_pipelines_mlx fails: ModuleNotFoundError';"+ " exit 1; fi ;;\n"+ "esac\nexit 0\n" % self.mark)+ self.bin = self.tmp / "bin"+ self.bin.mkdir()+ _x(self.bin / "uv",+ "#!/bin/bash\n"+ "n=$(cat '%s'); n=$((n+1)); echo $n > '%s'\n"+ "if [ $n -le %d ]; then echo 'error: Failed to fetch: https://pypi.org/simple/mlx/'"+ " >&2; echo ' Caused by: [Errno 54] Connection reset by peer' >&2; exit 2; fi\n"+ "case \"$*\" in *--reinstall*) %s ;; esac\n"+ "echo 'Installed 3 packages'\n"+ % (self.count, self.count, uv_fails,+ f"touch '{self.mark}'" if reinstall_fixes else ":"))++ def run(self, *extra_env, timeout=60):+ env = dict(os.environ, PATH=f"{self.bin}:/usr/bin:/bin",+ PHOSPHENE_ENGINE_RETRY_WAIT="0")+ for kv in extra_env:+ k, v = kv.split("=", 1)+ env[k] = v+ return subprocess.run(["bash", str(self.tmp / "scripts" / "pinokio" / SCRIPT.name),+ str(self.mlx)], capture_output=True, text=True,+ env=env, timeout=timeout)+++class TheEngineStep(unittest.TestCase):+ def test_shape(self):+ self.assertTrue(os.access(SCRIPT, os.X_OK))+ self.assertEqual(subprocess.run(["bash", "-n", str(SCRIPT)]).returncode, 0)+ for n, line in enumerate(SCRIPT.read_text().splitlines(), 1):+ self.assertLessEqual(len(line), 350, f"line {n}: Pinokio 8 long-line hang")++ def test_a_dropped_connection_is_retried_and_never_ends_the_pinokio_run(self):+ app = _App(uv_fails=1)+ r = app.run()+ out = r.stdout + r.stderr+ self.assertEqual(r.returncode, 0, out)+ self.assertIn("attempt 2 of 3", out)+ self.assertIn("engine environment ready", out)+ self.assertIsNone(PINOKIO_BREAK.search(out),+ "a retried attempt printed a line Pinokio stops the Install on")+ self.assertFalse((app.mlx / "env" / P.ENGINE_ENV_LOCK_NAME).exists())++ def test_three_failures_end_loudly(self):+ app = _App(uv_fails=99)+ r = app.run()+ out = r.stdout + r.stderr+ self.assertEqual(r.returncode, 1)+ hits = [l for l in out.splitlines() if PINOKIO_BREAK.search(l)]+ self.assertEqual(len(hits), 1, hits)+ self.assertTrue(hits[0].startswith("FATAL error: the engine environment did not install"))+ self.assertFalse((app.mlx / "env" / P.ENGINE_ENV_LOCK_NAME).exists())++ def test_uv_exiting_zero_is_not_enough_the_result_is_verified(self):+ """The editable-links-only shape: every uv call 'works', the package+ directories never land. It used to carry on to the downloads."""+ app = _App(uv_fails=0, reinstall_fixes=False)+ r = app.run()+ self.assertEqual(r.returncode, 1)+ self.assertIn("ltx_pipelines_mlx", r.stdout)+ self.assertIn("FATAL error:", r.stdout)++ def test_a_second_run_refuses_while_one_holds_the_lock(self):+ app = _App()+ _lock(app.mlx / "env", os.getpid())+ r = app.run()+ self.assertEqual(r.returncode, 1)+ self.assertIn("another engine install is running", r.stdout)+ self.assertEqual(app.count.read_text().strip(), "0", "it installed anyway")++ def test_a_lock_left_by_a_dead_run_does_not_block(self):+ app = _App()+ _lock(app.mlx / "env", 999999)+ self.assertEqual(app.run().returncode, 0)++ def test_install_js_runs_the_step_and_keeps_no_second_copy(self):+ src = (ROOT / "install.js").read_text(encoding="utf-8")+ runnable = "\n".join(l for l in src.splitlines() if not l.strip().startswith("//"))+ self.assertIn('message: "bash scripts/pinokio/ltx_engine_env.sh"', runnable)+ self.assertNotIn("--reinstall --no-deps", runnable)+ # ...and the import gate still follows it.+ self.assertLess(runnable.index("ltx_engine_env.sh"),+ runnable.index("import ltx_core_mlx, ltx_pipelines_mlx, mlx"))++ def test_the_check_asks_the_panels_question(self):+ """engine_env_check.py fails exactly where engine_env_fault() does."""+ src = CHECK.read_text(encoding="utf-8")+ self.assertIn('"ltx_pipelines_mlx"', src)+ self.assertIn("is_dir()", src)+++class _Venv:+ def __init__(self, package=False):+ self.package = package++ def __enter__(self):+ self.tmp = Path(tempfile.mkdtemp(prefix="engine-venv-"))+ env = self.tmp / "ltx-2-mlx" / "env"+ (env / "bin").mkdir(parents=True)+ (env / "pyvenv.cfg").write_text("home = /usr/bin\n")+ self.site = env / "lib" / "python3.11" / "site-packages"+ self.site.mkdir(parents=True)+ (env / "bin" / "python3.11").write_text("#!/bin/sh\n")+ if self.package:+ (self.site / "ltx_pipelines_mlx").mkdir()+ self.env = env+ self.prev = P.HELPER_PYTHON+ P.HELPER_PYTHON = env / "bin" / "python3.11"+ with P.ENGINE_REPAIR_LOCK:+ self.prev_rep = dict(P.ENGINE_REPAIR)+ P.ENGINE_REPAIR.clear()+ P.ENGINE_REPAIR.update({"state": "idle", "active": False})+ return self++ def __exit__(self, *a):+ P.HELPER_PYTHON = self.prev+ with P.ENGINE_REPAIR_LOCK:+ P.ENGINE_REPAIR.clear()+ P.ENGINE_REPAIR.update(self.prev_rep)+++class ThePanel(unittest.TestCase):+ def test_status_says_installing_while_the_lock_is_alive(self):+ with _Venv() as v:+ st = P.engine_env_status()+ self.assertFalse(st["ok"])+ self.assertFalse(st["installing"])+ _lock(v.env, os.getpid())+ self.assertTrue(P.engine_env_status()["installing"])+ code, payload = P.engine_env_repair_start()+ self.assertEqual(code, 409)+ self.assertTrue(payload.get("installing"))+ _lock(v.env, 999999)+ self.assertFalse(P.engine_env_status()["installing"])++ def test_a_healthy_engine_has_nothing_to_repair(self):+ with _Venv(package=True):+ self.assertEqual(P.engine_env_repair_start()[0], 200)+ self.assertTrue(P.engine_env_status()["ok"])++ def test_repair_runs_only_the_engine_step_and_clears_the_fault(self):+ with _Venv() as v:+ fake = v.tmp / "fake_engine_env.sh"+ fake.write_text(+ "#!/bin/bash\necho 'attempt 1 of 3'\n"+ f"mkdir -p '{v.site}/ltx_pipelines_mlx'\n"+ "echo 'engine environment ready'\n")+ steps = []+ with mock.patch.object(P, "ENGINE_ENV_INSTALLER", str(fake)), \+ mock.patch.object(P, "ROOT", Path("/")), \+ mock.patch.object(P, "_music_install_env", return_value=dict(os.environ)), \+ mock.patch.object(P, "_analytics_install_step",+ side_effect=lambda *a, **k: steps.append(a)):+ code, _ = P.engine_env_repair_start()+ self.assertEqual(code, 202)+ for _ in range(100):+ if not P.engine_env_status()["repair"]["active"]:+ break+ time.sleep(0.05)+ st = P.engine_env_status()+ self.assertTrue(st["ok"], st)+ self.assertEqual(st["repair"]["state"], "done")+ self.assertIn("engine environment ready", st["repair"]["log"])+ self.assertEqual(steps, [("engine_env", "ok", "")])++ def test_a_failed_repair_names_the_scripts_reason(self):+ with _Venv() as v:+ fake = v.tmp / "fake_engine_env.sh"+ fake.write_text("#!/bin/bash\necho 'FATAL error: the engine environment "+ "did not install after 3 attempts.'\nexit 1\n")+ with mock.patch.object(P, "ENGINE_ENV_INSTALLER", str(fake)), \+ mock.patch.object(P, "ROOT", Path("/")), \+ mock.patch.object(P, "_music_install_env", return_value=dict(os.environ)), \+ mock.patch.object(P, "_analytics_install_step"):+ P.engine_env_repair_start()+ for _ in range(100):+ if not P.engine_env_status()["repair"]["active"]:+ break+ time.sleep(0.05)+ rep = P.engine_env_status()["repair"]+ self.assertEqual(rep["state"], "failed")+ self.assertIn("did not install after 3 attempts", rep["error"])++ def test_route_and_status_field(self):+ self.assertIs(R.POST_ROUTES["/engine/repair"], routes_models.post_engine_repair)+ src = (ROOT / "panel" / "routes_queue.py").read_text(encoding="utf-8")+ self.assertIn('payload["engine_env"] = P.engine_env_status()', src)++ def test_the_render_error_still_files_as_venv_broken_and_names_the_button(self):+ msg = (f"engine venv is not usable: the engine venv has a Python but no "+ f"packages. {P.ENGINE_ENV_REPAIR}")+ self.assertEqual(P._analytics_error_class(msg), "venv_broken")+ self.assertIn("Repair engine", P.ENGINE_ENV_REPAIR)+++class CodexFindings(unittest.TestCase):+ """The one Codex pass over 4.17.4 (codex4174/review.log), each pinned."""++ def test_1_not_ready_while_a_repair_is_still_writing_the_venv(self):+ with _Venv(package=True):+ with P.ENGINE_REPAIR_LOCK:+ P.ENGINE_REPAIR.update(active=True, state="running")+ st = P.engine_env_status()+ self.assertFalse(st["ok"], "the package dir appeared mid-repair and read as ready")+ self.assertTrue(st["installing"])+ self.assertTrue(P.engine_env_busy())+ helper = P.WarmHelper.__new__(P.WarmHelper)+ helper.lock = __import__("threading").Lock()+ helper.proc = None+ with self.assertRaises(RuntimeError) as cm:+ helper._ensure()+ self.assertIn("being installed or repaired", str(cm.exception))++ def test_2_the_engine_step_reapplies_the_codec_patch(self):+ src = SCRIPT.read_text(encoding="utf-8")+ body = src.split("attempt() {")[1].split("\n}")[0]+ self.assertLess(body.index("--reinstall"), body.index("patch_ltx_codec.py"))+ self.assertLess(body.index("patch_ltx_codec.py"), body.index("engine_env_check.py"))++ def test_3_a_hung_installer_is_ended_at_the_deadline(self):+ with _Venv() as v:+ fake = v.tmp / "hang.sh"+ fake.write_text("#!/bin/bash\necho starting\nsleep 600\n")+ with mock.patch.object(P, "ENGINE_ENV_INSTALLER", str(fake)), \+ mock.patch.object(P, "ROOT", Path("/")), \+ mock.patch.object(P, "ENGINE_REPAIR_TIMEOUT_S", 1.0), \+ mock.patch.object(P, "_music_install_env", return_value=dict(os.environ)), \+ mock.patch.object(P, "_analytics_install_step"):+ P.engine_env_repair_start()+ for _ in range(200):+ if not P.engine_env_status()["repair"]["active"]:+ break+ time.sleep(0.05)+ rep = P.engine_env_status()["repair"]+ self.assertFalse(rep["active"], "the repair stayed active past its deadline")+ self.assertIn("longer than 30 minutes", rep["error"])++ def test_4_a_running_separator_install_is_waited_for_even_if_files_exist(self):+ calls = []+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ saved = dict(P.A2V_SEPARATOR_INSTALL)+ P.A2V_SEPARATOR_INSTALL.update(active=True, state="running")+ try:+ def fake_wait(job):+ calls.append("wait")+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=False, state="done")+ stem = Path(tempfile.mkdtemp(prefix="sep-")) / "v.wav"+ stem.write_bytes(b"RIFF")+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]), \+ mock.patch.object(P, "_a2v_separator_wait", side_effect=fake_wait), \+ mock.patch.object(P, "_a2v_separate_vocals",+ side_effect=lambda *a: calls.append("separate") or stem):+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, "/x/song.wav")+ finally:+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.clear()+ P.A2V_SEPARATOR_INSTALL.update(saved)+ self.assertEqual(calls, ["wait", "separate"])++ def test_5_two_runs_started_together_install_once(self):+ app = _App()+ # A slower uv so the two runs overlap for real.+ uv = app.bin / "uv"+ uv.write_text(uv.read_text().replace("echo 'Installed 3 packages'",+ "sleep 0.3; echo 'Installed 3 packages'"))+ env = dict(os.environ, PATH=f"{app.bin}:/usr/bin:/bin", PHOSPHENE_ENGINE_RETRY_WAIT="0")+ cmd = ["bash", str(app.tmp / "scripts" / "pinokio" / SCRIPT.name), str(app.mlx)]+ a = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE, text=True)+ b = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE, text=True)+ outs = [p.communicate(timeout=60)[0] for p in (a, b)]+ codes = sorted([a.returncode, b.returncode])+ self.assertEqual(codes, [0, 1], outs)+ self.assertTrue(any("another engine install" in o for o in outs), outs)+ self.assertEqual(int(app.count.read_text()), 5, "both runs installed")+ self.assertFalse((app.mlx / "env" / P.ENGINE_ENV_LOCK_NAME).exists())+++def _node(fns: list[str], calls: list[str]) -> list:+ if NODE is None:+ raise unittest.SkipTest("node not on PATH")+ src = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")+ code = ("function escapeHtml(s){return String(s).replace(/[&<>\"]/g,'');}\n"+ + "\n".join(extract_function(n, src) for n in fns)+ + "\nconsole.log(JSON.stringify([" + ",".join(calls) + "]));")+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:+ fh.write(code)+ path = fh.name+ r = subprocess.run([NODE, path], capture_output=True, text=True,+ errors="replace", timeout=60)+ if r.returncode != 0:+ raise AssertionError(r.stderr[-2000:])+ return json.loads(r.stdout.strip().splitlines()[-1])+++class TheCardAndTheBar(unittest.TestCase):+ RAW = ("engine venv is not usable: the engine venv has a Python but no packages "+ "— ltx_pipelines_mlx never finished installing into it. ")++ def test_the_failure_card_offers_repair_not_retry(self):+ raw = self.RAW + P.ENGINE_ENV_REPAIR+ job = {"id": "j1", "status": "failed", "error": raw}+ fr, html = _node(+ ["_redactLocalPaths", "friendlyJobError", "nowCardFailureActions"],+ [f"friendlyJobError({json.dumps(raw)})",+ f"nowCardFailureActions({json.dumps(job)}, friendlyJobError({json.dumps(raw)}))"])+ self.assertEqual(fr["action"], "repair_engine")+ self.assertIn("did not finish installing", fr["friendly"])+ self.assertIn('data-action="repair-engine"', html)+ self.assertNotIn('data-action="retry"', html)++ def test_the_bar_says_installing_broken_or_failed(self):+ broken = {"ok": False, "installing": False, "repair": {"state": "idle"}}+ busy = {"ok": False, "installing": True,+ "repair": {"state": "running", "log": ["patched /Users/someone/x/video_vae.py"]}}+ failed = {"ok": False, "installing": False,+ "repair": {"state": "failed", "error": "no network"}}+ ok = {"ok": True}+ b, i, f, o = _node(["_redactLocalPaths", "engineEnvBannerHtml"],+ [f"engineEnvBannerHtml({json.dumps(x)})"+ for x in (broken, busy, failed, ok)])+ self.assertIn('data-action="repair-engine"', b)+ self.assertIn("Repair engine", b)+ self.assertIn("Installing the render engine", i)+ self.assertNotIn("data-action", i, "no second installer while one runs")+ self.assertNotIn("/Users/", i, "a home-directory path reached the bar")+ self.assertIn("no network", f)+ self.assertIn("Try again", f)+ self.assertEqual(o, "")++ def test_the_click_is_wired(self):+ main = (ROOT / "webapp" / "js" / "main.js").read_text(encoding="utf-8")+ self.assertIn('[data-action="repair-engine"]', main)+ self.assertIn("engineRepairStart()", main)+ q = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")+ self.assertIn("renderEngineEnvBanner(s.engine_env)", q)+ self.assertRegex(q, r"Object\.assign\(globalThis, \{\s*openFailedJobInForm, engineRepairStart,")+++if __name__ == "__main__":+ unittest.main()diff --git a/test_lipsync_mode.py b/test_lipsync_mode.pyindex 661002f..5b84c3d 100644--- a/test_lipsync_mode.py+++ b/test_lipsync_mode.py@@ -473,11 +473,10 @@ class SegmentRetake(unittest.TestCase):self.assertIn('emit({"event": "error"', block)def test_retake_exempted_from_the_distilled_step_count_gate(self):- self.assertIn(- 'if mode not in ("extend", "retake", "keyframe", "a2v", "restore", '- '"ingredients", "control", "upscale") and not ltx_quality_uses_hq(quality) '- 'and int(p.get("steps", 8)) < 8:',- PANEL_SRC)+ # 4.17.4: the gate became a clamp (clamp_distilled_steps); retake keeps+ # its own retake_steps and must stay outside it.+ self.assertIn('"retake"', PANEL_SRC.split("_LTX_OWN_STEP_MODES = frozenset((")[1].split("))")[0])+ self.assertIn("_steps_note = clamp_distilled_steps(p)", PANEL_SRC)def test_ui_present(self):self.assertIn('id="retakeModal"', INDEX_HTML)diff --git a/test_lipsync_quality.py b/test_lipsync_quality.pyindex fb8f133..34f4b59 100644--- a/test_lipsync_quality.py+++ b/test_lipsync_quality.py@@ -292,10 +292,18 @@ def test_the_installer_never_moves_torch_and_never_uses_the_cli():def test_the_installer_refuses_a_checkout_without_a_venv(tmp_path):+ # PHOSPHENE_SEPARATOR_HOME keeps the 4.17.4 outcome record out of the real+ # mlx_models/demucs: a test must never leave a "failed" for a panel to report.+ sep_home = tmp_path / "sep"+ env = dict(os.environ, PHOSPHENE_SEPARATOR_HOME=str(sep_home))r = subprocess.run(["bash", str(ROOT / "scripts" / "pinokio" / "a2v_stems_deps.sh"),- str(tmp_path)], capture_output=True, text=True, timeout=30)+ str(tmp_path)], capture_output=True, text=True, timeout=30,+ env=env)assert r.returncode != 0assert "no engine venv" in r.stderr+ rec = json.loads((sep_home / "last_install.json").read_text())+ assert rec["outcome"] == "failed" and rec["error_class"] == "no_venv"+ assert rec["via"] == "install" and isinstance(rec["ts"], int)def test_separator_routes_are_registered_with_the_dispatch_signatures():diff --git a/test_refusal_now_card.py b/test_refusal_now_card.pyindex 689eeee..1eab2af 100644--- a/test_refusal_now_card.py+++ b/test_refusal_now_card.py@@ -91,6 +91,36 @@ class RefusedJobsDoNotOfferRetry(unittest.TestCase):self.assertIn('data-action="retry"', plain)self.assertIn('data-action="retry-smaller"', smaller)+ def test_a_missing_input_file_reopens_the_job_instead_of_retrying(self):+ # Fleet 4.17.x: 11 input_missing failures on 3 installs, each re-tried+ # as is and failing the same way (the file is still gone).+ lines = [+ "The reference image is no longer on disk: /Users/someone/Desktop/a.png. "+ "It was moved, renamed or deleted after it was picked.",+ "Image mode on H3 needs a reference image \u2014 pick one, or switch to Text mode.",+ "LoRA file not found: /Users/someone/pinokio/api/phosphene.git/mlx_models/loras/x.safetensors",+ "audio file not found: /Users/someone/Music/take3.wav",+ ]+ calls = []+ for i, raw in enumerate(lines):+ job = {"id": f"m{i}", "status": "failed", "error": raw}+ calls.append(f"(() => {{ const f = friendlyJobError({json.dumps(raw)}); "+ f"return [f, nowCardFailureActions({json.dumps(job)}, f)]; }})()")+ model = "X can't run: the LTX-2.5 Q4 model is incomplete. Missing 2 file(s) in /m: a, b."+ calls.append(f"friendlyJobError({json.dumps(model)})")+ out = _node(calls)+ for raw, (fr, html) in zip(lines, out[:-1]):+ self.assertEqual(fr.get("action"), "reopen", raw)+ self.assertIn('data-action="reopen"', html, raw)+ self.assertNotIn('data-action="retry"', html, raw)+ self.assertNotIn("/Users/", fr["hint"], raw)+ self.assertEqual(out[-1].get("action"), "models") # weights stay Open Models++ def test_reopen_click_is_wired(self):+ main = (ROOT / "webapp" / "js" / "main.js").read_text(encoding="utf-8")+ self.assertIn('[data-action="reopen"]', main)+ self.assertIn("btn.dataset.action === 'reopen'", main)+def test_split_reopens_the_failed_job_not_the_current_form(self):# Codex 4.17.3: splitting "whatever the form holds now" would queue a# different song after the user moved on, or fail after a reload. Thediff --git a/test_separator_autoinstall.py b/test_separator_autoinstall.pynew file mode 100644index 0000000..4b77a3d--- /dev/null+++ b/test_separator_autoinstall.py@@ -0,0 +1,284 @@+"""4.17.4 fleet fix: a missing voice separator installs itself; jobs wait.++THE FIELD CASE (fleet, 2026-10-01, one 16 GB M4). The install pressed the+panel's own "Update now" on 4.17.2: /version/pull is `git pull` and nothing+else, and the restart that follows (the "Restart to finish update" pill, or a+Stop/Start) never runs scripts/post_update.sh — so step 7b, the separator+4.17.3 shipped, never ran. 4.17.3 booted at 10:35:41 and its three queued+voice-only Lip-sync jobs were refused within the second (`vocal_separator`),+which tripped queue_paused_breaker (n_failed 3, error_class refused). A+reboot at 11:07 refused again. Nothing in the data said the separator was+missing.++THE FIX, each part tested here:+ (b) at boot the panel installs a missing separator in the background, once+ per process; a voice-only job queued meanwhile WAITS for it (Now card+ says so) and then runs. The auto path is OFF at import, so a test or+ a gate can never pip-install into a real venv.+ (c) a refusal no longer counts toward the queue circuit breaker.+ (d) separator_install telemetry: ok/failed + a closed error class + which+ path ran it, reported once — the installer's own outcome record is read+ at the next boot, never its output text.+"""+from __future__ import annotations++import json+import os+import sys+import tempfile+import threading+import time+import unittest+from pathlib import Path+from unittest import mock++ROOT = Path(__file__).resolve().parent+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")+sys.path.insert(0, str(ROOT))++import mlx_ltx_panel as P # noqa: E402+from panel import routes_queue # noqa: E402+++class _Reset(unittest.TestCase):+ def setUp(self):+ self._auto = dict(P.A2V_SEPARATOR_AUTO)+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ self._inst = dict(P.A2V_SEPARATOR_INSTALL)+ P.A2V_SEPARATOR_INSTALL.clear()+ P.A2V_SEPARATOR_INSTALL.update({"state": "idle", "active": False})+ self.tmp = Path(tempfile.mkdtemp(prefix="sep-auto-"))+ self.addCleanup(self._restore)++ def _restore(self):+ P.A2V_SEPARATOR_AUTO.clear()+ P.A2V_SEPARATOR_AUTO.update(self._auto)+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.clear()+ P.A2V_SEPARATOR_INSTALL.update(self._inst)+++class ImportNeverInstalls(unittest.TestCase):+ def test_auto_install_is_off_until_main_turns_it_on(self):+ self.assertFalse(P.A2V_SEPARATOR_AUTO["enabled"])+ with mock.patch.object(P, "_a2v_separator_command", return_value=None), \+ mock.patch.object(P, "a2v_separator_install_start") as start:+ self.assertFalse(P.a2v_separator_auto_start("job"))+ with self.assertRaises(P.RenderRefused):+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, "/x/song.wav")+ start.assert_not_called()++ def test_boot_runs_before_the_worker_in_main(self):+ src = (ROOT / "mlx_ltx_panel.py").read_text(encoding="utf-8")+ main = src.split('if __name__ == "__main__":')[1]+ self.assertLess(main.index("a2v_separator_boot()"),+ main.index("threading.Thread(target=worker_loop"))+++class BootInstallsAMissingSeparator(_Reset):+ def _status(self, ready):+ return {"ready": ready, "weights": False, "package": ready, "torch": True,+ "model": "htdemucs", "install": {}}++ def test_missing_at_boot_starts_one_background_install(self):+ with mock.patch.object(P, "a2v_separator_status", return_value=self._status(False)), \+ mock.patch.object(P, "engine_env_fault", return_value=""), \+ mock.patch.object(P, "_a2v_separator_record", return_value=None), \+ mock.patch.object(P, "a2v_separator_install_start",+ return_value=(202, {"ok": True})) as start, \+ mock.patch.dict(os.environ, {"PHOSPHENE_SEPARATOR_AUTOINSTALL": ""}):+ P.a2v_separator_boot()+ start.assert_called_once_with("boot")+ self.assertTrue(P.A2V_SEPARATOR_AUTO["enabled"])+ self.assertTrue(P.A2V_SEPARATOR_AUTO["attempted"])+ # ONE automatic attempt per process: a job later does not retry.+ self.assertFalse(P.a2v_separator_auto_start("job"))+ self.assertEqual(start.call_count, 1)++ def test_ready_or_broken_venv_or_opt_out_starts_nothing(self):+ cases = [+ (self._status(True), "", ""),+ (self._status(False), "the engine venv has a Python but no packages", ""),+ (self._status(False), "", "0"),+ ]+ for st, fault, env in cases:+ with self.subTest(fault=fault, env=env):+ P.A2V_SEPARATOR_AUTO.update(enabled=False, attempted=False)+ with mock.patch.object(P, "a2v_separator_status", return_value=st), \+ mock.patch.object(P, "engine_env_fault", return_value=fault), \+ mock.patch.object(P, "_a2v_separator_record", return_value=None), \+ mock.patch.object(P, "a2v_separator_install_start") as start, \+ mock.patch.dict(os.environ, {"PHOSPHENE_SEPARATOR_AUTOINSTALL": env}):+ P.a2v_separator_boot()+ start.assert_not_called()+++class QueuedVoiceOnlyJobsWait(_Reset):+ def test_queue_add_accepts_while_an_install_runs(self):+ params = {"mode": "a2v", "audio_stem_auto": "on"}+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=True, state="running")+ with mock.patch.object(P, "_a2v_separator_command", return_value=None):+ self.assertIsNone(P.a2v_stem_refusal(params))++ def test_queue_add_still_refuses_once_the_install_failed(self):+ params = {"mode": "a2v", "audio_stem_auto": "on"}+ P.A2V_SEPARATOR_AUTO.update(enabled=True, attempted=True)+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=False, state="failed",+ error="the install stopped (exit 1)")+ with mock.patch.object(P, "_a2v_separator_command", return_value=None), \+ mock.patch.object(P, "a2v_separator_status",+ return_value={"ready": False, "weights": False}):+ note = P.a2v_stem_refusal(params)+ self.assertIn("did not install", note)+ self.assertIn("exit 1", note)+ self.assertIn("full mix", note)++ def test_a_job_waits_for_the_running_install_then_separates(self):+ """The field sequence: the job reaches the worker while the boot+ install runs. Before 4.17.4 it was refused at once."""+ song = self.tmp / "song.wav"+ song.write_bytes(b"RIFF....WAVE")+ stem = self.tmp / "vocals.wav"+ stem.write_bytes(b"RIFF....WAVE")+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=True, state="running",+ log=["Installing vocal separation"])+ ready = {"v": False}+ job = {"id": "j1", "params": {"mode": "a2v"}}+ notes: list = []++ def finish():+ time.sleep(1.2)+ notes.append(job.get("waiting_note"))+ ready["v"] = True+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=False, state="done")++ threading.Thread(target=finish, daemon=True).start()+ with mock.patch.object(P, "_a2v_separator_command",+ side_effect=lambda: ["sep"] if ready["v"] else None), \+ mock.patch.object(P, "a2v_separator_status",+ side_effect=lambda: {"ready": ready["v"], "weights": True}), \+ mock.patch.object(P, "_thread_job", return_value=job), \+ mock.patch.object(P, "_a2v_separate_vocals", return_value=stem):+ got, note = P.a2v_conditioning_audio({"audio_stem_auto": "on"}, str(song))+ self.assertEqual(got, str(stem))+ self.assertIn("separated vocal", note)+ self.assertTrue(notes and "Installing vocal separation" in notes[0])+ self.assertNotIn("waiting_note", job)++ def test_stop_ends_the_wait(self):+ with P.A2V_SEPARATOR_INSTALL_LOCK:+ P.A2V_SEPARATOR_INSTALL.update(active=True, state="running")+ job = {"id": "j2", "cancel_requested": True}+ with mock.patch.object(P, "_a2v_separator_command", return_value=None), \+ mock.patch.object(P, "_thread_job", return_value=job):+ with self.assertRaises(P.JobCancelled):+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, "/x/song.wav")++ def test_the_now_card_says_what_it_waits_for(self):+ class _H:+ def _json(self, payload, code=200):+ self.payload, self.code = payload, code+ with P.LOCK:+ saved = P.STATE["current"]+ P.STATE["current"] = {"id": "j3", "params": {"mode": "a2v", "engine": "ltx"},+ "started_ts": time.time() - 5,+ "waiting_note": "Installing vocal separation (once)"}+ try:+ h = _H()+ routes_queue.get_status(h, P.urlparse("/status"))+ finally:+ with P.LOCK:+ P.STATE["current"] = saved+ prog = h.payload["current"]["progress"]+ self.assertEqual(prog["phase"], "waiting")+ self.assertIn("Installing vocal separation", prog["phase_label"])+++class RefusalsDoNotTripTheBreaker(unittest.TestCase):+ def setUp(self):+ self._saved = dict(P._CONSEC_FAIL)+ P._CONSEC_FAIL.update(sig="", n=0)+ self.addCleanup(lambda: P._CONSEC_FAIL.update(self._saved))++ def test_three_refusals_count_zero(self):+ for _ in range(3):+ n = P._breaker_count(P.RenderRefused("vocal_separator", P.A2V_STEM_MISSING_NOTE))+ self.assertEqual(n, 0)+ self.assertEqual(P._CONSEC_FAIL["n"], 0)++ def test_real_failures_still_trip_and_refusals_do_not_break_the_streak(self):+ boom = RuntimeError("model file incomplete: transformer.safetensors")+ self.assertEqual(P._breaker_count(boom), 1)+ self.assertEqual(P._breaker_count(P.RenderRefused("hardware_tier", "no")), 0)+ self.assertEqual(P._breaker_count(boom), 2)+ self.assertEqual(P._breaker_count(boom), 3)++ def test_worker_loop_counts_through_it(self):+ src = (ROOT / "mlx_ltx_panel.py").read_text(encoding="utf-8")+ body = src.split("def worker_loop() -> None:")[1].split("\ndef ")[0]+ self.assertIn("_breaker_count(exc)", body)+ self.assertNotIn('_CONSEC_FAIL["n"] += 1', body)+++class SeparatorInstallTelemetry(_Reset):+ def _spy(self):+ seen: list = []+ return seen, mock.patch.object(P, "_analytics_capture",+ side_effect=lambda ev, props=None: seen.append((ev, props)))++ def test_closed_props_only(self):+ seen, spy = self._spy()+ with spy:+ P._analytics_separator_install("failed", "update", "/Users/x/secret path",+ ready=False, weights=False)+ P._analytics_separator_install("ok", "panel_boot", "", ready=True, weights=True)+ P._analytics_separator_install("weird", "update", "", ready=True, weights=True)+ P._analytics_separator_install("ok", "somewhere", "", ready=True, weights=True)+ self.assertEqual([e for e, _ in seen], ["separator_install"] * 2)+ failed, ok = seen[0][1], seen[1][1]+ self.assertEqual(failed["error_class"], "other") # never the raw text+ self.assertEqual(set(failed), {"outcome", "via", "error_class", "ready",+ "weights", "version", "ram_gb"})+ self.assertNotIn("error_class", ok)+ self.assertIn("separator_install", P._ANALYTICS_EVENTS)++ def test_boot_reports_the_installers_record_once(self):+ rec_dir = self.tmp / "demucs"+ rec_dir.mkdir()+ (rec_dir / "last_install.json").write_text(json.dumps(+ {"outcome": "failed", "error_class": "pip_failed", "via": "update",+ "ts": 1790000000}))+ store: dict = {}+ seen, spy = self._spy()+ with spy, \+ mock.patch.object(P, "a2v_separator_torch_home", return_value=rec_dir), \+ mock.patch.object(P, "get_settings", side_effect=lambda: dict(store)), \+ mock.patch.object(P, "_settings_set_internal",+ side_effect=lambda **kv: store.update(kv)), \+ mock.patch.object(P, "a2v_separator_status",+ return_value={"ready": True, "weights": True}), \+ mock.patch.dict(os.environ, {"PHOSPHENE_SEPARATOR_AUTOINSTALL": "0"}):+ P.a2v_separator_boot()+ P.a2v_separator_boot() # a second boot does not re-report+ self.assertEqual(len(seen), 1)+ props = seen[0][1]+ self.assertEqual((props["outcome"], props["via"], props["error_class"]),+ ("failed", "update", "pip_failed"))++ def test_the_update_and_the_panel_tag_who_ran_the_installer(self):+ sh = (ROOT / "scripts" / "post_update.sh").read_text(encoding="utf-8")+ self.assertIn('PHOSPHENE_SEPARATOR_VIA=update bash "$ROOT/scripts/pinokio/a2v_stems_deps.sh"', sh)+ src = (ROOT / "mlx_ltx_panel.py").read_text(encoding="utf-8")+ self.assertIn('env["PHOSPHENE_SEPARATOR_VIA"] = f"panel_{trigger}"', src)+ doc = (ROOT / "docs" / "ANALYTICS.md").read_text(encoding="utf-8")+ for word in P._SEPARATOR_INSTALL_VIA + P._SEPARATOR_INSTALL_ERRORS:+ self.assertIn(f"`{word}`", doc)+++if __name__ == "__main__":+ unittest.main()diff --git a/webapp/js/characters.js b/webapp/js/characters.jsindex 31b290e..451079b 100644--- a/webapp/js/characters.js+++ b/webapp/js/characters.js@@ -1423,12 +1423,16 @@ async function audioStudioGenerate(opts) {return;}- // "Listen to the voice only" on a Mac without the separator: say so and- // offer the install instead of queueing a render the server refuses.+ // "Listen to the voice only" on a Mac without the separator. 4.17.4: while+ // an install runs - or when the panel can start one - the job queues and+ // waits for it (the server decides and answers 400 when it cannot). Only a+ // FAILED install stops the submit here, with its Try again just above.const _stemBox = document.getElementById('audioStudioStemAuto');- if (_stemBox && _stemBox.checked && A2V_SEPARATOR.ready === false) {+ const _sepWaits = !!(_stemBox && _stemBox.checked && A2V_SEPARATOR.ready === false);+ const _sepInst = (_sepWaits && ((A2V_SEPARATOR.last || {}).install)) || {};+ if (_sepWaits && !_sepInst.active && _sepInst.state === 'failed') {audioStudioRenderSeparator();- if (status) status.textContent = 'Install vocal separation first (just above), or untick \u201cListen to the voice only\u201d.';+ if (status) status.textContent = 'Vocal separation did not install - press Try again just above, or untick \u201cListen to the voice only\u201d.';return;}@@ -1482,10 +1486,12 @@ async function audioStudioGenerate(opts) {throw new Error(audioStudioSubmitError(r.status, txt));}if (status) {- status.textContent = draft+ status.textContent = (draft? 'Draft queued (~3s, same seed) — check the mouth, then Generate the full clip.'- : 'Submitted. Watch Now / Recent.';+ : 'Submitted. Watch Now / Recent.')+ + (_sepWaits ? ' It starts when vocal separation finishes installing.' : '');}+ if (_sepWaits) audioStudioRefreshSeparator();if (typeof phosToast === 'function') {phosToast(draft? 'Draft queued · ~3s at this seed — watch Now, then Generate for the full clip'diff --git a/webapp/js/main.js b/webapp/js/main.jsindex 36f05da..75c7aef 100644--- a/webapp/js/main.js+++ b/webapp/js/main.js@@ -62,11 +62,17 @@ document.addEventListener('visibilitychange', () => { if (!document.hidden) poll// click that landed mid-rewrite could be lost. A single delegated// listener on document survives every rewrite + costs nothing.document.addEventListener('click', (e) => {- const btn = e.target.closest('[data-action="retry"], [data-action="retry-smaller"], [data-action="dismiss"], [data-action="stop-early"], [data-action="resume"], [data-action="split"]');+ const btn = e.target.closest('[data-action="retry"], [data-action="retry-smaller"], [data-action="dismiss"], [data-action="stop-early"], [data-action="resume"], [data-action="split"], [data-action="reopen"], [data-action="repair-engine"]');if (!btn) return;e.stopPropagation();e.preventDefault();if (btn.dataset.action === 'resume') { if (typeof togglePause === 'function') togglePause(); return; }+ // 4.17.4: the engine-env bar and a venv_broken failure card. Not tied to a+ // job id - the bar has none - so it is handled before the id lookup.+ if (btn.dataset.action === 'repair-engine') {+ if (typeof engineRepairStart === 'function') engineRepairStart();+ return;+ }// A third delegated action in the same row, for the same reason the other// two are delegated: poll() rewrites this element every 1.5 s, and an inline// handler would be lost to that race mid-click.@@ -74,7 +80,7 @@ document.addEventListener('click', (e) => {const actions = btn.closest('.now-card-actions');const id = actions ? actions.dataset.jobId : '';if (!id) return;- if (btn.dataset.action === 'split') {+ if (btn.dataset.action === 'split' || btn.dataset.action === 'reopen') {// 4.17.3: a Lip-sync clip refused for its length on a Compact Mac. Reopen// THAT job (its song, start, picture, settings) in the Lip-sync form —// never whatever the form holds now — where the length note offersdiff --git a/webapp/js/queue.js b/webapp/js/queue.jsindex 71665cb..bc980e9 100644--- a/webapp/js/queue.js+++ b/webapp/js/queue.js@@ -783,6 +783,15 @@ function setEngine(engine, opts) {if (typeof snapFramesTo8kPlus1 === 'function') {try { snapFramesTo8kPlus1(); } catch (e) {}}+ // ...and give LTX its own step count back. H3 writes its tuned count (9)+ // or a pinned Steps pill (12/16/20) into the SHARED #steps field, and+ // Load Params of an H3 or High clip restores one too; LTX's distilled+ // lane runs exactly 8 and the server used to refuse anything else (fleet+ // 4.17.4: "steps=9 is above the 8-step distilled schedule", 113 failed+ // renders). make_job clamps it now as well — this keeps the form honest.+ if (typeof applyQuality === 'function') {+ try { applyQuality(); } catch (e) {}+ }// Give the active quality preset its upscale back (H3 forced it off).if (typeof setUpscale === 'function' && typeof QUALITY_PRESETS === 'object') {const _qp = QUALITY_PRESETS[(document.getElementById('quality') || {}).value];@@ -2829,6 +2838,81 @@ async function repairModel(key) {} catch (e) { alert('Repair failed: ' + e); }}+// 4.17.4 (fleet: `venv_broken` on fresh installs, nearly all at first boot):+// the render engine's Python packages are not in its venv, so no render can+// start. /status.engine_env says so; this bar says what is happening and puts+// the one-click repair (POST /engine/repair - re-installs only the engine's+// packages, no downloads, no Stop) where the user is already looking. While+// Pinokio's own Install is still writing the venv it says "installing" and+// offers nothing: a second installer into the same venv would race it.+let _engineEnvWasBroken = false;+function engineEnvBannerHtml(st) {+ if (!st || st.ok) return '';+ const rep = st.repair || {};+ const last = (rep.log || []).slice(-1)[0] || '';+ if (st.installing || rep.active) {+ return '<span style="font-weight:700">Installing the render engine\u2026</span>'+ + '<span style="opacity:.92">' + escapeHtml(_redactLocalPaths(last) || 'Installing its Python packages')+ + ' \u2014 renders can start when it finishes. Models are not touched.</span>';+ }+ const pinokio = '<span style="opacity:.85;flex-basis:100%">Or from Pinokio: Stop Phosphene, then '+ + 'click \u201cRepair Phosphene engine (models kept)\u201d.</span>';+ if (rep.state === 'failed') {+ return '<span style="font-weight:700">The engine repair did not finish:</span>'+ + '<span style="opacity:.92">' + escapeHtml(rep.error || 'unknown error') + '</span>'+ + '<span style="margin-left:auto;display:flex;gap:8px">'+ + '<button class="btn btn-primary" data-action="repair-engine">Try again</button></span>'+ + pinokio;+ }+ return '<span style="font-weight:700">The render engine did not finish installing</span>'+ + '<span style="opacity:.92">Its Python packages are missing from its environment, so '+ + 'renders cannot start. Repair re-installs only those packages (a few minutes); '+ + 'every model is kept.</span>'+ + '<span style="margin-left:auto;display:flex;gap:8px">'+ + '<button class="btn btn-primary" data-action="repair-engine">Repair engine</button></span>'+ + pinokio;+}+function renderEngineEnvBanner(st) {+ const html = engineEnvBannerHtml(st);+ let el = document.getElementById('engineEnvBanner');+ if (!html) {+ if (el) el.remove();+ if (_engineEnvWasBroken && st && st.ok && typeof phosToast === 'function') {+ phosToast('The render engine is repaired \u2014 renders can run. Press Retry on a failed render.',+ { kind: 'success', duration: 8000 });+ }+ _engineEnvWasBroken = false;+ return;+ }+ _engineEnvWasBroken = true;+ if (!el) {+ el = document.createElement('div');+ el.id = 'engineEnvBanner';+ document.body.appendChild(el);+ }+ const busy = !!(st.installing || (st.repair || {}).active);+ const above = document.getElementById('integrityBanner');+ el.style.cssText = 'position:fixed;left:0;right:0;z-index:9998;'+ + 'top:' + (above ? above.offsetHeight : 0) + 'px;'+ + 'background:' + (busy ? '#6b4a00' : '#7a1f1f') + ';color:#fff;padding:10px 16px;'+ + 'font-size:13px;line-height:1.4;display:flex;align-items:center;gap:12px;'+ + 'flex-wrap:wrap;box-shadow:0 2px 10px rgba(0,0,0,.45)';+ if (el.dataset.html !== html) { el.innerHTML = html; el.dataset.html = html; }+}+async function engineRepairStart() {+ try {+ const r = await fetch('/engine/repair', { method: 'POST', body: new URLSearchParams({}) });+ const res = await r.json().catch(() => ({}));+ if (!r.ok && typeof phosToast === 'function') {+ phosToast(res.error || ('Repair could not start: HTTP ' + r.status),+ { kind: res.installing ? 'info' : 'danger', duration: 8000 });+ }+ } catch (e) {+ if (typeof phosToast === 'function') phosToast('Repair could not start: ' + (e.message || e), { kind: 'danger' });+ }+ if (typeof poll === 'function') poll();+}+// Translate a cryptic engine error into actionable user guidance. Extracted// from the Now card 2026-08-11 so a storyboard shot's failure reads EXACTLY// like a manual one — one if/else, two callers, no way for the two to drift.@@ -2879,6 +2963,22 @@ function nowCardFailureActions(last, info) {`<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +`<span>Open in Lip-sync to split</span></button>` + dismiss;}+ // A file the job needs is gone (moved, renamed, deleted, never picked):+ // the same job fails the same way, so reopen it in its form to re-pick.+ if (action === 'reopen') {+ return `<button type="button" class="now-card-retry" data-action="reopen" ` ++ `title="Reopen this job in its form to pick the missing file again">` ++ `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` ++ `<span>Open in the form</span></button>` + dismiss;+ }+ // 4.17.4: the engine's packages are not installed - every render fails the+ // same way until they are, so the card offers the repair, never a Retry.+ if (action === 'repair_engine') {+ return `<button type="button" class="now-card-retry" data-action="repair-engine" ` ++ `title="Re-install only the render engine's Python packages (a few minutes, models kept)">` ++ `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` ++ `<span>Repair engine</span></button>` + dismiss;+ }if (refusedTier && action !== 'models') return dismiss;return (action === 'models'? `<button type="button" class="now-card-retry" onclick="openModelsModal()" ` +@@ -2900,6 +3000,19 @@ function nowCardFailureActions(last, info) {}function friendlyJobError(raw, engine) {raw = raw || 'unknown error';+ // 4.17.4 (fleet: venv_broken, 18 installs in 30 days): the engine venv has+ // no engine packages - "Retry" fails the same way in one second, every time.+ // One gave up after three. Point at the one-click repair instead.+ if (/engine venv is not usable|venv has a Python but no packages|never finished installing into it/i.test(raw)) {+ return {+ friendly: 'The render engine did not finish installing.',+ hint: 'Its Python packages are missing, so no render can start. Press Repair engine: '+ + 'it re-installs only those packages (a few minutes) and keeps every model. '+ + 'Retrying as is fails the same way.',+ details: _redactLocalPaths(raw) || raw,+ action: 'repair_engine',+ };+ }if (/music engine isn't installed|YuE2 needs about|YuE2 weights.*repair/i.test(raw)) {return { friendly: 'Stopped before generating — the music engine is not ready.',hint: 'Install or repair it from the Phosphene sidebar in Pinokio. Everything else in the panel is unaffected.' };@@ -3009,6 +3122,21 @@ function friendlyJobError(raw, engine) {action: 'models',};}+ // Next-release fix (fleet 4.17.x: 11 input_missing failures on 3 installs,+ // each re-tried as is): a picture, audio, video or LoRA file the job points+ // at is gone, or an image mode was sent without one. Retry re-queues the+ // same path and fails the same way, so the card reopens the job instead.+ // Model weights are NOT this branch (they say "model is incomplete" and+ // go to Open Models above).+ if (/no longer on disk|no longer exists|needs a reference image|needs at least 1 reference|\b(lora|audio|image|video|reference|picture)( file)? not found|\b(audio|image|video|reference|picture)( file)? does not exist/i.test(raw)+ && !/model is\s+incomplete|\.safetensors\b.*mlx_models|mlx_models\/(?!loras)/i.test(raw)) {+ return {+ friendly: 'A file this render needs is missing.',+ hint: (_redactLocalPaths(raw) || raw) + ' Pick it again in the form and press Generate '+ + '\u2014 retrying as is fails the same way.',+ action: 'reopen',+ };+ }if (/model is\s+incomplete\. Missing/i.test(raw)) {const m = /Missing \d+ file\(s\) in [^:]+: ([^.]+)\./.exec(raw);return {@@ -3180,6 +3308,7 @@ async function poll() {// Corrupt/partial-weight banner (mosaic self-heal).try { renderIntegrityBanner(mergeIntegrity(s.model_integrity, s.deep_verify)); } catch (_) {}+ try { renderEngineEnvBanner(s.engine_env); } catch (_) {}try { renderDeepVerifyStatus(s.deep_verify); } catch (_) {}// Memory@@ -8092,7 +8221,7 @@ function draftAutosaveInstall() {// Inline handlers in the markup and the other files resolve these through// the global scope; everything NOT listed here is private to this module.Object.assign(globalThis, {- openFailedJobInForm,+ openFailedJobInForm, engineRepairStart,notifyJobsDone, notifyOneJob, playDoneChime,h3FinishSetTier, h3FinishActive, setEngine, _syncEnginePromptTools,ltxFinishSetTier, ltxFinishActive, _syncFinishAffordance,