Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- tasks/t16-shottracer-effects/README.mdAdded+205
- tasks/t16-shottracer-effects/environment/DockerfileAdded+127
- tasks/t16-shottracer-effects/environment/debs/libasound2-plugins_1.2.7.1-1_amd64.debAdded
- tasks/t16-shottracer-effects/environment/debs/libpulse-mainloop-glib0_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t16-shottracer-effects/environment/debs/libpulsedsp_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t16-shottracer-effects/environment/debs/libspeexdsp1_1.2.1-1_amd64.debAdded
- tasks/t16-shottracer-effects/environment/debs/libwrap0_7.6.q-32_amd64.debAdded
- tasks/t16-shottracer-effects/environment/debs/pulseaudio-utils_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t16-shottracer-effects/environment/docker-compose.local.yamlAdded+12
- tasks/t16-shottracer-effects/environment/friction-autostart.desktopAdded+10
- tasks/t16-shottracer-effects/environment/friction-launcher.shAdded+21
- tasks/t16-shottracer-effects/environment/friction.desktopAdded+13
- tasks/t16-shottracer-effects/environment/kiosk/kioskrcAdded+17
- tasks/t16-shottracer-effects/environment/no-terminal.shAdded+12
- tasks/t16-shottracer-effects/environment/reference/README.mdAdded+14
- tasks/t16-shottracer-effects/environment/reference/oracle.frictionAdded
- tasks/t16-shottracer-effects/environment/reference/svg/shot_01.svgAdded
- tasks/t16-shottracer-effects/environment/reference/svg/shot_02.svgAdded
- tasks/t16-shottracer-effects/environment/reference/svg/shot_03.svgAdded
- tasks/t16-shottracer-effects/environment/reference/svg/shot_04.svgAdded
- tasks/t16-shottracer-effects/environment/shotcut-menu.desktopAdded+8
- tasks/t16-shottracer-effects/instruction.mdAdded+8
- tasks/t16-shottracer-effects/task.tomlAdded+64
- tasks/t16-shottracer-effects/tests/_vedit_verifier.pyAdded+359
- tasks/t16-shottracer-effects/tests/reference/tracer-reference.jsonAdded+1
- tasks/t16-shottracer-effects/tests/shots.jsonAdded+93
- tasks/t16-shottracer-effects/tests/source.sha256Added+10
- tasks/t16-shottracer-effects/tests/svgpath.pyAdded+193
- tasks/t16-shottracer-effects/tests/test.shAdded+52
- tasks/t16-shottracer-effects/tests/test_outputs.pyAdded+472
- tasks/t16-shottracer-effects/tests/tracer_intervals.pyAdded+88
- tasks/t18-friction-tutorial/environment/reference/README.mdAdded+15
- tasks/t24-friction-pong/README.mdAdded+141
- tasks/t24-friction-pong/environment/DockerfileAdded+109
- tasks/t24-friction-pong/environment/debs/libasound2-plugins_1.2.7.1-1_amd64.debAdded
- tasks/t24-friction-pong/environment/debs/libpulse-mainloop-glib0_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t24-friction-pong/environment/debs/libpulsedsp_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t24-friction-pong/environment/debs/libspeexdsp1_1.2.1-1_amd64.debAdded
- tasks/t24-friction-pong/environment/debs/libwrap0_7.6.q-32_amd64.debAdded
- tasks/t24-friction-pong/environment/debs/pulseaudio-utils_16.1+dfsg1-2+b1_amd64.debAdded
- tasks/t24-friction-pong/environment/docker-compose.local.yamlAdded+8
- tasks/t24-friction-pong/environment/friction-autostart.desktopAdded+10
- tasks/t24-friction-pong/environment/friction-gui-only.cppAdded+135
- tasks/t24-friction-pong/environment/friction-launcher.shAdded+21
- tasks/t24-friction-pong/environment/friction.desktopAdded+13
- tasks/t24-friction-pong/environment/harden-desktop.pyAdded+56
- tasks/t24-friction-pong/environment/kiosk/kioskrcAdded+17
- tasks/t24-friction-pong/environment/no-terminal.shAdded+12
- tasks/t24-friction-pong/environment/shotcut-menu.desktopAdded+8
- tasks/t24-friction-pong/instruction.mdAdded+21
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205# t16-shottracer-effects — Friction shot tracers (one clip per swing) + Shotcut assembly [real footage, no clones]
**Status 2026-09-04: rubric v2 (reference-based, Friction = 0.76 of the score), GUI-only image, snapshot `refresh-fcpx-env-t16-20260904c` = `current_t16`, oracle **1.00**. Reference approved; GUI-only runs 2026-09-04: fable 5.1 **0.60**, opus 5 **0.49** (0.53 corrected) — both completed in the GUI with zero terminal attempts, both lost the tracer block on trajectory shape (see live runs).**0.92** = designceiling without a GUI-saved `.friction`(`jobs/t16-shottracer-effects-local-185929`), snapshots`refresh-fcpx-env-t16-20260903`, `20260904` (Friction niced) and `20260904b` (= `current_t16`, GUI-only — see below, not yet run). Live runs: see the table atthe end.**
The brief (Sid, 2026-09-03): four vertical iPhone clips of golfers hitting aball. In **Friction** (1.0.0-rc.3, the open-source After-Effects tier) theagent opens each clip, steps to the impact frame, zooms in on the ball, drawsthe flight with the **Add Path** tool frame by frame (zooming in orextrapolating where the ball is hard to see), animates it with the**Sub-Path** path effect so the line grows with the ball until it lands, andrenders each traced clip. Then in **Shotcut** it stitches the four renders inorder and exports. Every Friction and Shotcut export is pulled out of the job(`artifacts` in task.toml + tests/test.sh → `verifier/artifacts/`).
Pipeline the instruction asks for: `/root/media/shot_01..04.mp4` → Friction →`/root/edit/*.friction` + `/root/edit/traced/shot_0N.mp4` (×4) → Shotcut →`/root/edit/project.mlt` + `/root/Desktop/final.mp4`.
## GUI-only (v1.1, 2026-09-04) — NOT YET RUN
Both first live runs solved the hard part outside the GUI: opus 5 opened xtermat step 6 and fable 5.1 at step 290, both wrote Python ball-detection scriptsover the source frames (fable then wrote the tracer paths as SVG and importedthem into Friction). Sid: the task must be done entirely in the applications.Snapshots `refresh-fcpx-env-t16-20260904b` and `20260904c` (image rebuilt 2026-09-04) closethe routes we found:
* every terminal binary (`xterm`, `uxterm`, `lxterm`, `koi8rxterm`, `x-terminal-emulator`, plus `xfce4-terminal`/`xfce4-appfinder`/`xfrun4` names) is a stub, `environment/no-terminal.sh`: it appends the attempt to `/logs/artifacts/terminal-attempts.log`, pops an xmessage "There is no terminal in this environment", exits 127;* the Terminal and Kdenlive Desktop icons, the terminal / python3 / ImageMagick-display / Kdenlive / file-manager / settings-editor menu entries, the XFCE terminal helpers and the Ctrl+Alt+T shortcut are removed; `helpers.rc` has no TerminalEmulator;* XFCE kiosk mode (`environment/kiosk/kioskrc`): no panel customisation (a panel launcher's Exec runs anything), no desktop-menu editing;* Shotcut has a real Applications-menu entry (Multimedia → Shotcut) — it had none, which is one reason agents reached for xterm;* the instruction says the machine has no terminal;* **rubric gate:** a non-empty `terminal-attempts.log` at grading time sets the reward to 0 (printed as `GUI-ONLY GATE`). Oracle unaffected (1 run, 0.92).
Still open: python3 stays in the image because the verifier needs it and noGUI route to it is left; Friction's own expression editor ("Calculate" on aproperty, fable used it once) is part of the tool and allowed. Re-run bothmodels on 20260904b when Sid gives the go.
## Reference-based verifier (advice, 2026-09-04)
Friction cannot write a readable project (`.friction` is binary) but it CANexport an animated SVG (`ExportSvgDialog` / `AnimationSaverSVG` in the rc.3binary; File → Export → SVG). Three ways to grade against fable 5.1's run:
1. **Frame-based reference (recommended, works today).** Pixel-diff fable's `traced/shot_0N.mp4` against the source gives, for every frame, the drawn mask, its bbox and the tip (drawn pixel farthest from the ball). `tests/reference/fable51-tracer-tracks.json` holds exactly that for all four clips. A verifier compares the agent's render the same way: tip within ~60–80 px of the reference tip on ≥ 80 % of the flight frames, onset frame within ±3, line footprint IoU or chamfer distance vs the reference mask. Caveat: fable's shot_03 stalls from frame 66 to 170 (the 0.04 it lost), so that clip's reference is weak — keep the current growth check there or hand-correct it.2. **Animated SVG export.** Ask the agent to also File → Export → SVG each scene to `/root/edit/tracer_0N.svg`; parse `<path d>` + `<animate>` for the Sub-Path range and compare node positions / keyframe values with fable's exported SVG. Structural and exact, but adds a step the agent can fail independently, and whether Sub-Path survives the SVG export needs a sandbox test first.3. **LLM judge.** `suite/vision_judge.py` over side-by-side frames (reference vs agent at 6 frames per shot): "does the tip sit on the ball / match the reference arc, is the line smooth". Advisory only (cost, non-determinism), good for the questions pixels cannot answer.
## Footage
`media-raw/` (gitignored) holds Sid's five 4K files. Only four are distinctswings: `IMG_4120 copy 2.MOV` is the whole 157 s range session (t13's source)and the four short files are Sid's cuts of its four swings — frame-matched tothe session at 11.5 / 51.5 / 110.5 / 145.5 s. The task ships those four, insession order, transcoded to 1080×1920 30 fps (`tools/prepare-media.sh`,checksums in `tests/source.sha256`); the session itself is not in the image(it would repeat every swing and contradict the one-clip-one-shot brief —**assumption to confirm with Sid**).
| clip | raw | length | impact | ball at impact (1080×1920 px) ||---|---|---|---|---|| shot_01 | IMG_4120.MOV | 5.00 s | 1.03 s | (600, 1300) || shot_02 | IMG_4120 copy.MOV | 7.54 s | 1.30 s | (680, 1302) || shot_03 | IMG_4120 copy 4.MOV | 5.83 s | 1.88 s | (674, 1300) || shot_04 | IMG_4120 copy 3.MOV | 4.93 s | 1.53 s | (600, 1300) |
Impact frames were read frame by frame off the 4K raw (15 fps contact sheetscropped to the ball, ±1 frame); every ball flies up and to the left of thegolfer (camera behind). Ground truth lives in `tests/shots.json`.
## Rubric v2 (tests/test_outputs.py) — graded against an approved reference
Sid (2026-09-04): Friction's output is the heaviest part; grade against thefable-5.1 run's renders; deterministic first, LLM judge advisory.
| weight | block | checkpoint ||---|---|---|| 0.04 | A Friction | a `.friction` under /root mentions each clip (4 × 0.01) || 0.16 | B Friction | `traced/shot_0N.mp4` exists, portrait, source length ± 0.5 s (4 × 0.04) || 0.44 | C Friction | per clip 0.11: **onset** first line frame within ±3 of the reference (0.02); **tracking** tip within 100 px of the reference tip on ≥ 70 % of flight frames, frame by frame (0.05); **footprint** end-of-shot line within 40 px of the reference line both ways ≥ 80 % (0.03); **clean** nothing drawn 0.5 s / 0.2 s before impact (0.01) || 0.12 | D Friction | SVG export (`svg/shot_0N.svg`) parses to a path (0.01) and lies within 60 px of the reference path both ways ≥ 80 % (0.02) || 0.12 | E Shotcut | project references the 4 traced renders (4 × 0.01); exactly 4 clips (0.02); each clip frame-matches the final in order (4 × 0.015) || 0.12 | F Export | final 1080×1920 / 30 fps / H.264 (0.04); duration = sum ± 1 s (0.02); tracer visible in the final per shot (4 × 0.015) || gate | | any logged terminal attempt → reward 0 |
Friction blocks A–D = **0.76**, Shotcut 0.12, export 0.12.
**Reference** = `tests/reference/tracer-reference.json`, built by`tools/build-reference.py` from `environment/reference/renders/` (the fable-5.1run `jobs/t16-cu-fable51-20260904-a1`) + `environment/reference/svg/` (thepaths it imported) + `oracle.friction` (its saved project). Per frame: drawnpx, tip (drawn pixel farthest from the ball); final-frame mask (RLE); SVGpolyline. Swap the reference by replacing those files and re-running thebuilder — nothing else changes. Review sheets: `tests/reference/review/`.**Approved by Sid 2026-09-04** ("very accurate"); Sid also confirmed Friction's File → Export → SVG in a GUI session.
**Mechanics.** Per clip ONE ffmpeg filter graph produces every frame's tracermask (|render − source[f−1,f,f+1]| → max channel → min over the three →> 80), so tracking is genuinely frame by frame at ~10 s per clip. The SVG isparsed by `tests/svgpath.py` (pure Python: path commands, transforms,viewBox, and Friction's animated export — no `d`, one path string per framein `<animate values>`; the longest one is the grown line). Calibration 2026-09-04, host-side: fable a2 artifacts = **1.00**,opus a1 artifacts = **0.56** (0 % tip agreement — its tall narrow arcs vs thereference's low ones; no SVG). Harbor oracle (reference renders + SVGs +.friction copied from /opt/t16-reference, real melt XML) = **1.00**.
**Vision judge (advisory, step 3).** `suite/vision_judge.py jobs/<job>` nowauto-detects t16 (a `traced/` artifact dir): 6 frames per shot, agent next toreference, opus-5 structured output → `verifier/judge.json`, never touchesthe reward. ~11 k input tokens per trial (≈ $0.30). Calibration: opus a1 →2/5 ("tall near-vertical arches, tip has no downrange travel"), fable a2 →5/5 (it is the reference). It agrees with the deterministic 0.56 / 1.00.
## Environment
`refresh-fcpx-t16:dev` = `vedit-task:base` + Friction rc.3 (pinned tarball +debs via `tools/fetch-friction.sh`, null-sink PulseAudio launcher, xfdesktop4)+ the four clips. **Friction autostarts** (`APP=friction`,`friction-autostart.desktop`, t18 pattern); Shotcut is in the Applicationsmenu, on the Desktop and as `shotcut` in xterm. `friction.desktop` now has`Categories=` so it also appears in the Applications menu (smoke a3 found noentry and used xterm). Open wart: xfdesktop needs Thunar's D-Bus service tolaunch a Desktop `.desktop` icon — agents use the menu or xterm.
```bash./suite/suite.sh base build # vedit-task:base (check its date first!)tasks/t16-shottracer-effects/tools/fetch-friction.sh # tarball + .deb into environment/tasks/t16-shottracer-effects/tools/prepare-media.sh # media-raw -> environment/mediadocker build --platform linux/amd64 \ -f tasks/t16-shottracer-effects/environment/Dockerfile \ -t refresh-fcpx-t16:dev tasks/t16-shottracer-effects/environmentDOCKER_HOST=unix://$HOME/.colima/default/docker.sock \ ./suite/suite.sh run tasks/t16-shottracer-effects --env local -a oracle # expect 0.92daytona snapshot push refresh-fcpx-t16:dev --name refresh-fcpx-env-t16-<date> \ -e /usr/local/bin/start-editor --cpu 4 --memory 8 --disk 10 # then set current_t16```
Live runs (computer-1, 16× agent budget, one attempt per job via`suite/run_until_reward.sh`; launched detached with`suite/launch_detached.py` because the Bash tool kills anything after 10 min):
```bashDAYTONA_API_KEY=... MODEL=claude-fable-5-1 ./suite/launch_detached.py \ tasks/t16-shottracer-effects refresh-fcpx-env-t16-20260903 t16-cu-fable51-20260903DAYTONA_API_KEY=<group key> MODEL=claude-opus-5 ./suite/launch_detached.py \ tasks/t16-shottracer-effects refresh-fcpx-env-t16-20260903 t16-cu-opus5-20260903```
Two 8 GB sandboxes need the default key AND the group key (10 GiB cap perkey). Upload every finished job to trajectories.sh (README-shop-task-runs.mdrecipe; `traced/` and `.friction` artifacts ride along).
## History
* v0 (2026-09-02): two clips, Shotcut cut graded against t13's FCPXML EDL, one Friction tracer over the cut; oracle 0.95; snapshots `refresh-fcpx-env-t16-20260902` (stale base, KNOWN BAD, deleted) and `20260902b`. Smoke task `tasks/t16-import-smoke` (a3 = 1.00 on 20260902b) proved both editors import and save under computer-1.* v1 (2026-09-03): Sid's per-clip brief — Friction first, Add Path + Sub-Path, per-clip renders, Shotcut assembly, rubric mapped to his 10 points, Friction autostarts, all exports harvested.
## Live runs
| job | model | snapshot | reward | notes / trajectory ||---|---|---|---|---|| jobs/t16-cu-fable51-20260904c-a1 | claude-fable-5-1 | refresh-fcpx-env-t16-20260904c (GUI-only, rubric v2) | **0.60** | 882 steps, ~3 h 20 min, agent declared completion, NO terminal attempts. Four .friction projects, Add Path + Sub-Path keyframed ~every 5 frames, four renders, four SVG exports (parsed: 97–109 pts), Shotcut stitch. Every A/B/E/F point and every onset + clean check pass; lost tracking/footprint/SVG-shape: lines climb in near-straight diagonals with no apex (shot_01/02 end in hairpin loops), 1–32 % tip agreement. Judge 2/5 ("right instinct, never applies gravity"). https://trajectories.sh/t/51b17e40-f8bc-47b0-bfda-010dc7c125c3 || jobs/t16-cu-opus5-20260904c-a1 | claude-opus-5 | refresh-fcpx-env-t16-20260904c (GUI-only, rubric v2) | **0.49** in-sandbox (0.53 after the SVG-parser fix below) | 783 steps, ~3 h, agent declared completion, NO terminal attempts (gate clean). Did the whole thing in the GUI: four scenes, Add Path + Sub-Path, all four renders (shot_03 came out 4.97 s vs 5.83 s), SVG exports, Shotcut stitch. Lost the tracer block: its arcs are tall near-vertical rockets that reach full height ~0.4 s after impact, 0–2 % tip agreement with the reference; judge 2/5 ("line craft is genuinely good; trajectory and timing wrong"). Exposed a rubric bug: Friction's SVG export has no `d` — the path lives in `<animate values=…>` per frame; `tests/svgpath.py` now reads it (D block re-scored 0.04 host-side). https://trajectories.sh/t/53bee8fe-b621-4ed6-85d6-955799e698a4 || jobs/t16-cu-fable51-20260904-a1 | claude-fable-5-1 | refresh-fcpx-env-t16-20260904 (Friction niced) | **0.96** | 708 steps, ~3 h 20 min, agent declared completion. One project with four scenes, every clip's tracer starts on the ball (3–6 px) within 0.07 s of impact, grows and rises, Shotcut stitch + export pass. Only miss: shot_03's growth (147→241 px with a flat middle — the line barely lengthens after 1 s). Shortcut worth knowing: it wrote the tracer paths as SVG files from the terminal and imported them into Friction instead of drawing with Add Path, then animated them with Sub-Path in Friction. https://trajectories.sh/t/f8f1702f-a1f0-4c87-af82-56f2ff98eda7 || jobs/t16-cu-fable51-20260903-a1 | claude-fable-5-1 | refresh-fcpx-env-t16-20260903 | **no reward** (host-side rubric on the harvested renders: 0.76 = every Friction check) | 1143 steps, ~5 h. Best tracer work so far: one project with four scenes, Sub-Path keyframed in ~10-frame steps, onset within 0.07 s and 2–8 px of the ball, growth passes on all four clips, rendered all four. The sandbox then died — `Runtime action 'screenshot' failed (143): Terminated` while Friction rendered shot_04 (CPU/RAM saturation → Daytona exec deadline, the t10i pattern) — before the Shotcut step. Fix: `nice -n 15` in the Friction launcher → snapshot 20260904. https://trajectories.sh/t/853bd647-fb6a-460f-b666-9030588326c2 || jobs/t16-cu-opus5-20260903-a1 | claude-opus-5 | refresh-fcpx-env-t16-20260903 | **0.88** | 493 steps, ~95 min. Four scenes, real Sub-Path keyframes, impact onset within 0.07 s and 2–4 px of the ball on every clip, saved tracers.friction, Shotcut stitch + export all pass. Missed growth on 3/4 clips: it animated a full inverted-U arc (up and back down to the grass) in ~1.2 s after impact and then held it — the ball is out of frame / invisible after ~0.5 s and it invented the rest, so the tip does not pace the ball to landing. https://trajectories.sh/t/19dbf739-dd61-49c1-a6ce-566872b1c0cf |123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127# t16-shottracer-effects — Friction (frame-by-frame shot tracer, one clip per# swing) + Shotcut (assembly) over REAL golf footage.## Layers onto vedit-task:base (Kdenlive + Natron + Shotcut + xterm + desktop# stack, built by `./suite/suite.sh base build` — REBUILD it if it predates# 2026-08-24, the stale Aug-19 base had no Shotcut/xterm):# - Friction 1.0.0-rc.3, the open-source After-Effects-tier 2D motion# graphics app (layers, paths, keyframes, ffmpeg video import/export).# Natron was the original AE tier for this task but crashes on the# author's Mac, so no rubric could be built against it (2026-09-02).# - four 1080x1920 swing clips shot_01..04.mp4 (environment/media/,# gitignored, ~22 MB, built by tools/prepare-media.sh from Sid's 4K# splits, checksummed in tests/source.sha256) REPLACING the synthetic# seed media.## Build (from the repo root, after `suite base build`):# docker build --platform linux/amd64 \# -f tasks/t16-shottracer-effects/environment/Dockerfile \# -t refresh-fcpx-t16:dev tasks/t16-shottracer-effects/environment## REMOTE RUNS: push the Daytona snapshot from THIS image with# `-e /usr/local/bin/start-editor --cpu 4 --memory 8 --disk 10` and record it# as current_t16 in environments/vedit/env.toml [snapshots].FROM vedit-task:base
# Friction: pinned portable tarball (bundles its own Qt5, Skia, ffmpeg, xcb# libs — ldd against vedit-task:base resolved everything except# libpulse-mainloop-glib.so.0) plus a PulseAudio server: Friction's audio# handler pops a modal "Critical Error: audiohandler.cpp toAVAudioFormat()# Unsupported sample format 0" at EVERY launch when no Pulse server answers# (Xvfb smoke, 2026-09-02); the launcher below starts one with a null sink.# All artifacts are COPIED from the build context, fetched beforehand by# tools/fetch-friction.sh (sha256-pinned): the build needs no network and no# apt, which that day's "invalid signature" mirror failure showed matters.# The ldd assertion fails the build if the bundle's layout or deps change,# instead of letting a broken launcher reach a live run. bin/portable.txt is# removed: with it Friction opens a modal "You are in portable mode" box on# every launch — without it config lives in ~/.config like any Qt app.COPY friction.tar.xz /tmp/COPY debs/ /tmp/debs/RUN dpkg -i /tmp/debs/*.deb \ && mkdir -p /opt/friction \ && tar -xJf /tmp/friction.tar.xz -C /opt/friction --strip-components=1 \ && rm -rf /tmp/friction.tar.xz /tmp/debs \ && test -x /opt/friction/bin/friction \ && rm -f /opt/friction/bin/portable.txt \ && missing="$(ldd /opt/friction/bin/friction | grep 'not found' || true)" \ && { [ -z "$missing" ] || { echo "friction: unresolved libs:"; echo "$missing"; exit 1; }; }COPY friction-launcher.sh /usr/local/bin/frictionRUN chmod 755 /usr/local/bin/friction
# The clips the agent edits with (one swing each). The synthetic seed media# from the base image is replaced entirely so the bin isn't cluttered with# distractors. ASSERT all four are present — a build from an empty media/# (fresh clone without tools/prepare-media.sh) must not reach a snapshot.RUN rm -f /root/media/*.mp4COPY media/ /root/media/RUN rm -f /root/media/.DS_Store \ && for i in 1 2 3 4; do test -s /root/media/shot_0$i.mp4; done \ && mkdir -p /root/edit/traced /root/edit/svg
# Shotcut: skip the first-run wizard, software GL (t08/t09 standing rules),# default to the vertical 1080x1920 30fps profile the deliverable asks for.RUN mkdir -p /root/.config/Meltytech /root/edit /root/Desktop \ && printf '[General]\nfirstRun=false\ncheckUpgradeAutomatic=false\naskUpgradeAutomatic=false\ndrawMethod=2\nplayerGPU=false\nvideoMode=vertical_hd_30\n' \ > /root/.config/Meltytech/Shotcut.conf
# Friction AUTOSTARTS with the XFCE session (APP=friction → start-editor# copies /opt/autostart/friction-autostart.desktop, t18 pattern) — the work# starts with the tracers. Shotcut stays reachable via the base's# shotcut.desktop launcher, the Applications menu and `shotcut` in xterm.# Desktop launcher for Friction (relaunch after a quit/crash). The icon# layer that renders them is xfdesktop4 (in debs/ above): the vedit base has# xfce4-panel/xfwm4/xfce4-session but no xfdesktop, and the first Daytona# smoke (t16-smoke-cu-opus5-a1, 2026-09-02) saw a bare black root window with# no way to start Friction. The applications-menu copy is a second route.# ASSERTS at the end: the base this was layered on must be the post-t08 one# (Shotcut + xterm) — the same smoke ran on a stale Aug-19 base that had# neither, with Kdenlive autostarting instead.COPY friction-autostart.desktop /opt/autostart/friction-autostart.desktopCOPY friction.desktop /root/Desktop/friction.desktopRUN chmod 755 /root/Desktop/friction.desktop \ && mkdir -p /usr/share/applications \ && cp /root/Desktop/friction.desktop /usr/share/applications/friction.desktop \ && test -x /usr/local/bin/shotcut \ && test -x /usr/bin/xfdesktop \ && test -f /opt/autostart/shotcut-autostart.desktop \ && test -f /root/Desktop/shotcut.desktop
# GUI-ONLY (Sid, 2026-09-04): both first live runs solved the ball tracking# with Python scripts typed into xterm (opus5 from step 6, fable5.1 from step# 290) although the task is meant to measure GUI skill in Friction + Shotcut.# Every terminal route goes: the xterm family binaries and# x-terminal-emulator become a logging stub (attempt -> /logs/artifacts/# terminal-attempts.log -> reward 0, see tests), the Terminal Desktop icon,# the terminal/python/ImageMagick-display/Kdenlive menu entries and the# Ctrl+Alt+T shortcut are removed, and XFCE kiosk mode stops the agent from# adding a panel launcher (arbitrary Exec) or editing the desktop menu.# Shotcut gets a proper Applications-menu entry (it had none — another reason# agents reached for xterm). python3 stays: the verifier (pytest) needs it and# without a shell there is no GUI way left to run it.COPY no-terminal.sh /usr/local/bin/no-terminalCOPY kiosk/kioskrc /etc/xdg/xfce4/kiosk/kioskrcCOPY shotcut-menu.desktop /usr/share/applications/shotcut.desktopRUN chmod 755 /usr/local/bin/no-terminal \ && for t in xterm uxterm lxterm koi8rxterm x-terminal-emulator xfce4-terminal xfce4-appfinder xfrun4; do \ rm -f "/usr/bin/$t" "/etc/alternatives/$t"; ln -s /usr/local/bin/no-terminal "/usr/bin/$t"; done \ && rm -f /usr/share/applications/debian-xterm.desktop /usr/share/applications/debian-uxterm.desktop \ /usr/share/applications/xfce4-terminal-emulator.desktop /usr/share/applications/python3*.desktop \ /usr/share/applications/display-im6*.desktop /usr/share/applications/org.kde.kdenlive.desktop \ /usr/share/applications/xfce4-file-manager.desktop /usr/share/applications/xfce4-mail-reader.desktop \ /usr/share/applications/xfce4-web-browser.desktop /usr/share/applications/xfce4-settings-editor.desktop \ /usr/share/xfce4/helpers/*.desktop \ /root/Desktop/terminal.desktop /root/Desktop/kdenlive.desktop \ && sed -i '/exo-open --launch TerminalEmulator/d' /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml \ && sed -i 's/^TerminalEmulator=.*/TerminalEmulator=/; s/^FileManager=.*/FileManager=/' /etc/xdg/xfce4/helpers.rc \ && test -x /usr/local/bin/shotcut && test -x /usr/local/bin/friction \ && [ "$(readlink -f /usr/bin/xterm)" = /usr/local/bin/no-terminal ] \ && ! ls /usr/share/applications | grep -qiE 'xterm|terminal|python|display-im6'
# Reference artifacts (see reference/README.md): the approved renders, SVG paths# and .friction the oracle installs (~30 MB). Not part of the agent's brief; the# instruction never points here and there is no shell to find it with.COPY reference/ /opt/t16-reference/
WORKDIR /root123456789101112# Harbor's own compose template overrides the image CMD with `sleep infinity`,# which skips start-editor's directory setup and the autostart selection.# This override is merged last, so `command` wins. `suite run --env local`# renames this to docker-compose.yaml for the run and back afterwards — never# leave both names present.services: main: command: [ "/usr/local/bin/start-editor" ] # harbor's compose build carries no --platform; on an Apple-silicon host # it would resolve FROM vedit-task:base for arm64, which does not exist # ("no match for platform in manifest", t16 oracle attempt 2026-09-02). platform: linux/amd6412345678910[Desktop Entry]Type=ApplicationName=Friction# XFCE autostart entry installed by start-editor when APP=friction (copied to# /root/.config/autostart/friction.desktop). Goes through the launcher so the# null-sink PulseAudio server is up before Friction's audio handler probes it# (otherwise a modal "Critical Error … Unsupported sample format 0" blocks# the UI at launch — t16 Xvfb smoke, 2026-09-02).Exec=env LIBGL_ALWAYS_SOFTWARE=1 QSG_RHI_BACKEND=opengl /usr/local/bin/frictionX-GNOME-Autostart-enabled=true123456789101112131415161718192021#!/bin/bash# Friction launcher (Desktop entry, xterm, supervisor all go through here).# * LIBGL_ALWAYS_SOFTWARE=1: Skia on llvmpipe is the only GL in the sandbox.# * A per-user PulseAudio with a null sink: Qt Multimedia's pulse plugin is# the only audio backend in the bundle, and Friction's audio handler throws# a modal "Critical Error … Unsupported sample format 0" on launch when no# server answers. Root is fine for a private, dummy server.# * qt.conf resolves plugins/libs relative to bin/, so exec the real binary.# * nice 15 (t10i lesson, re-learned on t16 fable a1 2026-09-04): a Friction# render pegs all 4 cores + RAM, computer-1's screenshot exec then exceeds# Daytona's exec deadline ("Runtime action 'screenshot' failed (143):# Terminated") and harbor ends the trial with no reward after 5 h of work.# Renders inherit the niceness, so the exec daemon always gets CPU.export LIBGL_ALWAYS_SOFTWARE=1export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp/runtime-$(id -u)}"mkdir -p "$XDG_RUNTIME_DIR" && chmod 700 "$XDG_RUNTIME_DIR"if command -v pulseaudio >/dev/null && ! pgrep -x pulseaudio >/dev/null; then pulseaudio --daemonize=yes --exit-idle-time=-1 --disallow-exit \ --load="module-null-sink sink_name=dummy" >/dev/null 2>&1 || truefiexec nice -n 15 /opt/friction/bin/friction "$@"12345678910111213[Desktop Entry]Type=ApplicationName=FrictionComment=2D motion graphics (shot tracer)# LIBGL_ALWAYS_SOFTWARE=1: Friction draws through Skia on OpenGL; llvmpipe is# the only GL in the sandbox (same rule as Natron/Shotcut). QT_QPA_PLATFORM# left default (xcb) — computer-1's desktop is a real Xvfb.Exec=env LIBGL_ALWAYS_SOFTWARE=1 QSG_RHI_BACKEND=opengl /usr/local/bin/frictionIcon=applications-graphicsTerminal=false# Categories makes it show up in the XFCE Applications menu (smoke a3 found# no Friction entry there and fell back to xterm).Categories=AudioVideo;Graphics;1234567891011121314151617# XFCE kiosk mode: the agent may not add panel launchers (a launcher's Exec# line runs arbitrary programs) or edit the desktop menu. Panel, desktop and# session stay usable; only customisation is locked.[xfce4-panel]CustomizePanel=NONE[xfdesktop]CustomizeBackdrop=NONECustomizeDesktopMenu=NONECustomizeWindowlist=NONEUserMenu=NONE[xfce4-session]CustomizeSplash=NONECustomizeChooser=NONECustomizeLogout=NONECustomizeCompatibility=NONECustomizeSecurity=NONEShutdown=NONE123456789101112#!/bin/bash# GUI-only environment (Sid, 2026-09-04): every terminal-emulator entry point# is replaced by this stub. It logs the attempt for the verifier (a logged# attempt zeroes the reward — the task must be done in Friction and Shotcut)# and tells the agent there is no terminal, then exits.mkdir -p /logs/artifactsecho "$(date -u +%FT%TZ) $(basename "$0") $*" >> /logs/artifacts/terminal-attempts.logif command -v xmessage >/dev/null 2>&1; then DISPLAY="${DISPLAY:-:1}" timeout 20 xmessage -center -buttons OK -default OK \ "There is no terminal in this environment. Please do the task in Friction and Shotcut." >/dev/null 2>&1 || truefiexit 1271234567891011121314Oracle-only artifacts (not shown to the agent — copied to /opt/t16-referencein the image):
* `oracle.friction` — PENDING. A real Friction project saved from the GUI (import the four clips — or at least mention them — one tracer path with a Sub-Path keyframe or two). Friction has no headless renderer and its project format is binary, so the oracle cannot create one itself; until this file lands the oracle scores 0.92 (the four 0.02 "Friction project mentions shot_0N" checkpoints are the only ones it cannot earn).
Ground truth for the tracer checks is tests/shots.json (impact frame + ballposition per clip, read frame by frame off Sid's 4K raw splits on2026-09-03); the raw→clip mapping and checksums are in tests/source.sha256and tools/prepare-media.sh.12345678[Desktop Entry]Type=ApplicationName=ShotcutComment=Video editor (assembly / export)Exec=env SDL_AUDIODRIVER=dummy QSG_RHI_BACKEND=opengl LIBGL_ALWAYS_SOFTWARE=1 /usr/local/bin/shotcutIcon=applications-multimediaTerminal=falseCategories=AudioVideo;Video;12345678You edit for a golf YouTube channel. Four clips of golfers hitting a ball are in /root/media: shot_01.mp4, shot_02.mp4, shot_03.mp4 and shot_04.mp4 (vertical, 1080x1920, 30 fps, one swing each). Deliver a vertical highlight with a hand-drawn shot tracer on every shot: draw the tracers in Friction, then assemble the traced clips in Shotcut. This machine has no terminal or command line; do all of the work through the two applications' own interfaces.
1. Tracers, in Friction (already open; relaunch it from the Applications menu if needed). For each clip: make a scene that matches the clip (1080x1920, 30 fps, same length), import the clip, and step through it frame by frame to find the moment the club strikes the ball. Zoom in on the ball. Use the Add Path tool to draw one smooth path along the ball's flight, starting exactly at the ball at impact and following it through the air until it lands or leaves the frame. Go frame by frame while placing the points; the ball is small and sometimes hard to see, so zoom in, and where it disappears extrapolate its next position from the frames where it is visible. Give the path a thick stroke in a colour that stands out against both sky and grass (red or orange) and no fill. Then add the Sub-Path path effect to the path and keyframe it so that the visible part of the line grows from the impact frame along the flight — at every frame the tip of the line sits on the ball — until the ball lands. Nothing may be drawn before impact, and the tracer must not alter the footage itself (no colour changes, crops or filters). Save your Friction work under /root/edit/ as .friction project file(s), render every clip with its tracer to /root/edit/traced/shot_01.mp4 … /root/edit/traced/shot_04.mp4 (1080x1920, 30 fps, H.264, the full length of the clip), and also export each scene's tracer path as SVG (File → Export → SVG) to /root/edit/svg/shot_01.svg … /root/edit/svg/shot_04.svg.
2. Assembly, in Shotcut (Applications menu → Multimedia → Shotcut). Import the four traced renders, place them on the timeline in order shot_01, shot_02, shot_03, shot_04 with no gaps, save the project as /root/edit/project.mlt and export the timeline as /root/Desktop/final.mp4 (1080x1920, 30 fps, H.264).
Author timing update (October 9, 2026): Tracers must appear at zero-based source frame 32 for shot_01, 39 for shot_02, 56 for shot_03 and 47 for shot_04, and remain visible until each clip ends. Onset tolerance is ±3 frames. These onsets override earlier timing estimates. The existing clean/onset allocation (3% per shot) now scores these full visibility intervals.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364schema_version = "1.4"# Pull the agent's actual outputs back to the host after every trial, so a# disputed score is always reviewable: the export the verifier scored, the# intermediate cut, and both project files (the .friction is binary — only a# human opening it in Friction can review the tracer keyframes).# Sid (2026-09-03): every export from Friction AND Shotcut must be reviewable# outside the job -> the traced per-clip renders live under /root/edit/traced# and are pulled with the rest of /root/edit; tests/test.sh also copies them# to /logs/verifier/artifacts (the copy harbor harvests with reward.txt).artifacts = [ "/root/Desktop/final.mp4", "/root/edit", "/logs/artifacts",]
[task]name = "sid/t16-shottracer-effects"version = "1.0.0"description = "Golf shot-tracer effects: four vertical iPhone swing clips; in Friction (open-source After Effects tier) import each clip, find impact, draw the ball flight with the Add Path tool frame by frame, animate it with the Sub-Path effect so the line grows with the ball, render each traced clip; then stitch the four renders in Shotcut and export /root/Desktop/final.mp4. Graded from artifacts: Friction project mentions every clip, per-clip traced renders, tracer starts at the ball at the impact frame, grows and rises, nothing pre-impact, Shotcut project of the 4 traced clips in order, final export."authors = []keywords = ["video-editing", "shotcut", "friction", "motion-graphics", "gui", "golf", "tracer", "real-footage"]
[metadata]surface = "video-editing"app = "shotcut+friction"media_dir = "/root/media"export_path = "/root/Desktop/final.mp4"traced_dir = "/root/edit/traced"project_paths = ["/root/edit/project.mlt", "/root/edit/*.friction"]
[verifier]# 4 traced clips x ~12 pixel-diff samples + 4 alignment searches on the final,# all 1080x1920 H.264 seeks — a few minutes under Rosetta, sized up (t10# lesson: a CPU-thrashed sandbox can double it).timeout_sec = 1200.0
[verifier.env]
[agent]# Smoke baseline (standing rule): real scoring runs come from# suite/run_until_reward.sh --agent-timeout-multiplier 16. Frame-by-frame# tracer placement on 4 shots plus 5 renders is long GUI work — budget accordingly.timeout_sec = 1800.0network_mode = "public"
[environment]network_mode = "public"build_timeout_sec = 1800.0
# LOCAL RUNS use environment/Dockerfile (`FROM vedit-task:base` — built by# `./suite/suite.sh base build` — plus Friction + the golf footage).# REMOTE RUNS must use the Daytona snapshot recorded as current_t16 in# environments/vedit/env.toml [snapshots]; when docker_image is set, harbor# SKIPS the Dockerfile, so the pushed image must already contain everything.os = "linux"mcp_servers = []
[environment.env]# Friction autostarts (the work starts with the tracers, per Sid); Shotcut is# in the Applications menu / `shotcut` in a terminal. start-editor's crash# supervisor only tracks $APP — Shotcut relaunch is the agent's job.APP = "friction"
[solution.env]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359# GENERATED by suite refresh from packages/verifier/vedit_verifier.py# — do not edit here; edit the source and re-run ./suite/suite.sh refresh"""Shared verifier library for the video-editing task suite.
Single source of truth for the grading primitives every task verifier uses.Task verifiers own their rubric (weights, checkpoints, calibrated thresholds);this module owns the mechanics. `suite refresh` copies this file into eachtask's tests/ dir as `_vedit_verifier.py` (a generated file — edit it HERE,never in a task dir), so the tests/ dir stays self-contained the way Harborexpects.
Grading philosophy (see fcpx.md and the task READMEs): - FRACTIONAL, artifact-only (exported MP4 + saved project, never UI state). - reward.txt gets the weighted fraction; pytest pass/fail means "fully solved" and is only the trajectory-readable signal of which dimension fell short.
GRADER CHANGE 2026-08-21 (deliberate, affects score comparability):extract_project_edl previously graded the single best MLT playlist, so asame-track mix or a V1/V2-overlap dissolve split the clips across playlistsand dropped project_structure points (the t07 opus5 run lost 0.19 to this —the on-screen timeline held both clips; the save was correct; the parserwas not). It now also considers per-tractor merges (Kdenlive models onetimeline track as TWO sub-playlists so same-track mixes can overlap) and amerge of all non-audio playlists ordered by timeline position (forcross-track dissolves). Scores from before this date under-grade multi-clipprojects that used a mix; do not compare across the boundary."""
import jsonimport osimport subprocessimport tempfileimport xml.etree.ElementTree as ET
# ------------------------------------------------------------------ rubric
class Section: """One named sub-verifier: its own checks, weights, and fraction."""
def __init__(self, name): self.name = name self.earned = 0.0 self.total = 0.0 self.lines = []
def check(self, weight, label, ok): self.total += weight try: ok = bool(ok) except Exception: ok = False if ok: self.earned += weight self.lines.append(" [%s] %.3f %s" % ("x" if ok else " ", weight, label)) return ok
def fraction(self): return (self.earned / self.total) if self.total else 1.0
class Rubric(Section): """Single-section variant for simple tasks: report() writes reward.txt."""
def __init__(self, name, reward_path="/logs/verifier/reward.txt"): super().__init__(name) self.reward_path = reward_path
def report(self): score = self.fraction() if self.total else 0.0 print("\n%s -- rubric" % self.name) print("\n".join(self.lines)) print(" score: %.4f (%.2f / %.2f)" % (score, self.earned, self.total)) write_reward(score, self.reward_path) return score
def write_reward(score, reward_path="/logs/verifier/reward.txt"): os.makedirs(os.path.dirname(reward_path), exist_ok=True) with open(reward_path, "w") as fh: fh.write("%.4f\n" % score)
def write_breakdown(breakdown, breakdown_path): os.makedirs(os.path.dirname(breakdown_path), exist_ok=True) with open(breakdown_path, "w") as fh: json.dump(breakdown, fh, indent=2)
# ----------------------------------------------------------------- ffprobe
def probe(path): """ffprobe the file; None if it does not exist or is unreadable.""" if not os.path.isfile(path): return None try: out = subprocess.run( ["ffprobe", "-v", "error", "-print_format", "json", "-show_format", "-show_streams", path], capture_output=True, check=True).stdout return json.loads(out) except Exception: return None
def duration(meta): try: return float(meta["format"]["duration"]) except Exception: return None
def has_audio(meta): return meta and any(s.get("codec_type") == "audio" for s in meta.get("streams", []))
def video_size(meta): if not meta: return None for s in meta.get("streams", []): if s.get("codec_type") == "video": return (s.get("width"), s.get("height")) return None
# ---------------------------------------------------------- frame sampling
def frame_rgb(path, t): """Mean (r, g, b) of the frame at time t; None if extraction fails.
The synthetic seed footage is solid colors with burned-in slates, so "is this the right segment" is a mean-RGB classification — deterministic, no reference render needed.""" try: out = subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", "-f", "rawvideo", "-pix_fmt", "rgb24", "-"], capture_output=True, check=True).stdout n = len(out) // 3 if n == 0: return None return (sum(out[0::3]) / n, sum(out[1::3]) / n, sum(out[2::3]) / n) except Exception: return None
def gray_thumb(path, t, w, h): """Grayscale w*h pixel bytes at time t; None on failure.""" try: out = subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", "-vf", "scale=%d:%d" % (w, h), "-f", "rawvideo", "-pix_fmt", "gray", "-"], capture_output=True, check=True).stdout if len(out) < w * h: return None return out[:w * h] except Exception: return None
def mad(a, b, w, h, rows=None, skip_rows=None): """Mean abs diff of two thumbs over `rows` (or all rows minus `skip_rows`). rows/skip_rows are (lo, hi) half-open row ranges.""" total = n = 0 for row in range(h): if skip_rows and skip_rows[0] <= row < skip_rows[1]: continue if rows and not (rows[0] <= row < rows[1]): continue base = row * w for i in range(base, base + w): total += abs(a[i] - b[i]) n += 1 return total / n if n else 255.0
def ocr_frame(path, t): """Uppercased tesseract OCR of the frame at t; '' on any failure.""" try: with tempfile.TemporaryDirectory() as td: png = os.path.join(td, "frame.png") subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", png], capture_output=True, check=True) out = subprocess.run( ["tesseract", png, "stdout"], capture_output=True, check=True).stdout return out.decode("utf-8", errors="replace").upper() except Exception: return ""
# --------------------------------------------------- project (MLT XML) EDL
def project_references(path, needle): """Saved project parses as XML and references the source clip.""" if not os.path.isfile(path): return False try: ET.parse(path) except Exception: return False with open(path, "r", errors="replace") as fh: return needle in fh.read()
def parse_clock(v, fps): """MLT in/out value -> seconds. Frames int, float seconds, or hh:mm:ss.ms.""" if v is None: return None v = v.strip() try: return int(v) / fps except ValueError: pass if ":" in v: parts = v.split(":") try: sec = float(parts[-1]) for i, p in enumerate(reversed(parts[:-1]), 1): sec += int(p) * (60 ** i) return sec except ValueError: return None try: return float(v) except ValueError: return None
def extract_project_edl(path, known_clips): """ Parse a .kdenlive (MLT XML) file into candidate clip sequences.
Returns (xml_ok, referenced_clips, best_seq) where best_seq is the per-playlist entry sequence [(clip, src_in, src_dur), ...] that references the most known clips (real projects duplicate entries across audio/video tracks; we grade the best-matching track).
See the module docstring for the known V1/V2-dissolve limitation. """ if not os.path.isfile(path): return False, set(), [] try: root = ET.parse(path).getroot() except Exception: return False, set(), []
prof = root.find("profile") fps = 30.0 if prof is not None: try: fps = float(prof.get("frame_rate_num", 30)) / float(prof.get("frame_rate_den", 1)) except Exception: pass
resources = {} for tag in ("producer", "chain"): for p in root.iter(tag): res = None for prop in p.findall("property"): if prop.get("name") in ("resource", "kdenlive:originalurl"): res = os.path.basename((prop.text or "").strip()) if res in known_clips: break if res: resources[p.get("id")] = res
referenced = set(r for r in resources.values() if r in known_clips)
def playlist_entries(pl): """[(timeline_pos, clip, src_in, dur)] for one playlist, blanks walked.""" pos = 0.0 out = [] for node in pl: if node.tag == "blank": pos += parse_clock(node.get("length"), fps) or 0.0 elif node.tag == "entry": src_in = parse_clock(node.get("in"), fps) or 0.0 src_out = parse_clock(node.get("out"), fps) dur = (src_out - src_in + 1.0 / fps) if src_out is not None else None clip = resources.get(node.get("producer")) if clip in known_clips: out.append((pos, clip, src_in, dur)) pos += dur or 0.0 return out
def is_audio(pl): return any( prop.get("name") == "kdenlive:audio_track" for prop in pl.findall("property") )
playlists = {} for pl in root.iter("playlist"): if pl.get("id") == "main_bin": continue playlists[pl.get("id")] = pl
# Candidate sequences, most-specific first: # a) each playlist alone (flat saves, and the pre-2026-08-21 behaviour); # b) each tractor's sub-playlists merged by timeline position — Kdenlive # stores one timeline track as two playlists so same-track mixes can # overlap, which is how a two-clip track reads as one clip per list; # c) all non-audio playlists merged by timeline position, for dissolves # that overlap clips across two video tracks. candidates = [] for pl in playlists.values(): candidates.append(sorted(playlist_entries(pl))) for tractor in root.iter("tractor"): merged = [] for track in tractor.findall("track"): pl = playlists.get(track.get("producer")) if pl is not None and not is_audio(pl): merged.extend(playlist_entries(pl)) if merged: candidates.append(sorted(merged)) video_merge = [] for pl in playlists.values(): if not is_audio(pl): video_merge.extend(playlist_entries(pl)) if video_merge: candidates.append(sorted(video_merge))
# Best = covers the most DISTINCT known clips; ties broken by fewer # entries (less cross-track duplication), then by earlier candidate # (single playlists first, preserving legacy behaviour on flat saves). best = [] best_score = None for seq in candidates: score = (len(set(c for _, c, _, _ in seq)), -len(seq)) if best_score is None or score > best_score: best, best_score = seq, score return True, referenced, [(clip, src_in, dur) for _, clip, src_in, dur in best]
def project_has_transition(path): """A deliberate video dissolve in the project.
luma/dissolve only: real Kdenlive saves ALWAYS contain internal "mix" (audio) and "composite"/"frei0r.cairoblend" (track compositing) transitions, so counting those passes a project with no dissolve at all. Kdenlive's same-track video mix and the oracle both use "luma".""" if not os.path.isfile(path): return False try: root = ET.parse(path).getroot() except Exception: return False services = set() for t in root.iter("transition"): for prop in t.findall("property"): if prop.get("name") == "mlt_service": services.add((prop.text or "").strip()) return bool(services & {"luma", "dissolve"})1{"_comment": "Reference tracer geometry (see tools/build-reference.py). thumb 270x480, coordinates in 1080x1920 px.", "source": "jobs/t16-cu-fable51-20260904-a1 (fable-5.1, reward 0.96) \u2014 APPROVED by Sid 2026-09-04 (review sheets in tests/reference/review/); Friction SVG export confirmed in a GUI session by Sid", "thumb": [270, 480], "shots": {"shot_01": {"impact_frame": 31, "first_line_frame": 33, "n_frames": 150, "frames": [{"f": 0, "px": 0}, {"f": 1, "px": 0}, {"f": 2, "px": 0}, {"f": 3, "px": 0}, {"f": 4, "px": 0}, {"f": 5, "px": 0}, {"f": 6, "px": 0}, {"f": 7, "px": 0}, {"f": 8, "px": 0}, {"f": 9, "px": 0}, {"f": 10, "px": 0}, {"f": 11, "px": 0}, {"f": 12, "px": 0}, {"f": 13, "px": 0}, {"f": 14, "px": 0}, {"f": 15, "px": 0}, {"f": 16, "px": 0}, {"f": 17, "px": 0}, {"f": 18, "px": 0}, {"f": 19, "px": 0}, {"f": 20, "px": 0}, {"f": 21, "px": 0}, {"f": 22, "px": 0}, {"f": 23, "px": 0}, {"f": 24, "px": 0}, {"f": 25, "px": 0}, {"f": 26, "px": 0}, {"f": 27, "px": 0}, {"f": 28, "px": 0}, {"f": 29, "px": 0}, {"f": 30, "px": 0}, {"f": 31, "px": 0}, {"f": 32, "px": 83, "tip": [544, 1208]}, {"f": 33, "px": 138, "tip": [512, 1152]}, {"f": 34, "px": 179, "tip": [488, 1112]}, {"f": 35, "px": 209, "tip": [464, 1088]}, {"f": 36, "px": 231, "tip": [448, 1064]}, {"f": 37, "px": 249, "tip": [440, 1052]}, {"f": 38, "px": 262, "tip": [432, 1040]}, {"f": 39, "px": 274, "tip": [424, 1032]}, {"f": 40, "px": 287, "tip": [408, 1028]}, {"f": 41, "px": 303, "tip": [400, 1016]}, {"f": 42, "px": 316, "tip": [384, 1012]}, {"f": 43, "px": 331, "tip": [380, 1000]}, {"f": 44, "px": 333, "tip": [376, 996]}, {"f": 45, "px": 340, "tip": [368, 992]}, {"f": 46, "px": 348, "tip": [360, 988]}, {"f": 47, "px": 354, "tip": [352, 988]}, {"f": 48, "px": 362, "tip": [344, 988]}, {"f": 49, "px": 369, "tip": [336, 988]}, {"f": 50, "px": 369, "tip": [328, 988]}, {"f": 51, "px": 378, "tip": [328, 988]}, {"f": 52, "px": 382, "tip": [320, 988]}, {"f": 53, "px": 388, "tip": [316, 988]}, {"f": 54, "px": 393, "tip": [312, 988]}, {"f": 55, "px": 397, "tip": [304, 992]}, {"f": 56, "px": 400, "tip": [296, 992]}, {"f": 57, "px": 403, "tip": [296, 992]}, {"f": 58, "px": 408, "tip": [288, 996]}, {"f": 59, "px": 413, "tip": [280, 996]}, {"f": 60, "px": 422, "tip": [280, 996]}, {"f": 61, "px": 426, "tip": [272, 1000]}, {"f": 62, "px": 431, "tip": [264, 1004]}, {"f": 63, "px": 434, "tip": [264, 1004]}, {"f": 64, "px": 440, "tip": [256, 1008]}, {"f": 65, "px": 443, "tip": [252, 1012]}, {"f": 66, "px": 451, "tip": [248, 1012]}, {"f": 67, "px": 453, "tip": [240, 1020]}, {"f": 68, "px": 464, "tip": [240, 1020]}, {"f": 69, "px": 466, "tip": [232, 1024]}, {"f": 70, "px": 472, "tip": [228, 1028]}, {"f": 71, "px": 477, "tip": [224, 1028]}, {"f": 72, "px": 480, "tip": [216, 1036]}, {"f": 73, "px": 487, "tip": [216, 1036]}, {"f": 74, "px": 494, "tip": [208, 1040]}, {"f": 75, "px": 499, "tip": [204, 1044]}, {"f": 76, "px": 505, "tip": [200, 1048]}, {"f": 77, "px": 509, "tip": [196, 1052]}, {"f": 78, "px": 515, "tip": [192, 1052]}, {"f": 79, "px": 519, "tip": [184, 1060]}, {"f": 80, "px": 522, "tip": [184, 1060]}, {"f": 81, "px": 530, "tip": [176, 1064]}, {"f": 82, "px": 533, "tip": [176, 1068]}, {"f": 83, "px": 539, "tip": [168, 1072]}, {"f": 84, "px": 547, "tip": [160, 1080]}, {"f": 85, "px": 554, "tip": [160, 1080]}, {"f": 86, "px": 557, "tip": [152, 1088]}, {"f": 87, "px": 564, "tip": [152, 1088]}, {"f": 88, "px": 569, "tip": [144, 1096]}, {"f": 89, "px": 573, "tip": [140, 1100]}, {"f": 90, "px": 581, "tip": [136, 1104]}, {"f": 91, "px": 585, "tip": [136, 1104]}, {"f": 92, "px": 593, "tip": [128, 1112]}, {"f": 93, "px": 598, "tip": [120, 1120]}, {"f": 94, "px": 603, "tip": [120, 1120]}, {"f": 95, "px": 608, "tip": [112, 1128]}, {"f": 96, "px": 618, "tip": [112, 1128]}, {"f": 97, "px": 624, "tip": [104, 1136]}, {"f": 98, "px": 630, "tip": [104, 1136]}, {"f": 99, "px": 639, "tip": [96, 1148]}, {"f": 100, "px": 639, "tip": [92, 1152]}, {"f": 101, "px": 647, "tip": [88, 1156]}, {"f": 102, "px": 651, "tip": [84, 1164]}, {"f": 103, "px": 652, "tip": [84, 1164]}, {"f": 104, "px": 651, "tip": [84, 1164]}, {"f": 105, "px": 651, "tip": [84, 1164]}, {"f": 106, "px": 650, "tip": [84, 1164]}, {"f": 107, "px": 651, "tip": [84, 1164]}, {"f": 108, "px": 650, "tip": [84, 1164]}, {"f": 109, "px": 651, "tip": [84, 1164]}, {"f": 110, "px": 650, "tip": [84, 1164]}, {"f": 111, "px": 649, "tip": [84, 1164]}, {"f": 112, "px": 650, "tip": [84, 1164]}, {"f": 113, "px": 651, "tip": [84, 1164]}, {"f": 114, "px": 650, "tip": [84, 1164]}, {"f": 115, "px": 651, "tip": [84, 1164]}, {"f": 116, "px": 652, "tip": [84, 1164]}, {"f": 117, "px": 652, "tip": [84, 1164]}, {"f": 118, "px": 653, "tip": [84, 1164]}, {"f": 119, "px": 656, "tip": [84, 1164]}, {"f": 120, "px": 658, "tip": [84, 1164]}, {"f": 121, "px": 658, "tip": [84, 1164]}, {"f": 122, "px": 659, "tip": [84, 1164]}, {"f": 123, "px": 658, "tip": [84, 1164]}, {"f": 124, "px": 659, "tip": [84, 1164]}, {"f": 125, "px": 658, "tip": [84, 1164]}, {"f": 126, "px": 656, "tip": [84, 1164]}, {"f": 127, "px": 658, "tip": [84, 1164]}, {"f": 128, "px": 658, "tip": [84, 1164]}, {"f": 129, "px": 656, "tip": [84, 1164]}, {"f": 130, "px": 660, "tip": [84, 1164]}, {"f": 131, "px": 659, "tip": [84, 1164]}, {"f": 132, "px": 655, "tip": [84, 1164]}, {"f": 133, "px": 653, "tip": [84, 1164]}, {"f": 134, "px": 654, "tip": [84, 1164]}, {"f": 135, "px": 656, "tip": [84, 1164]}, {"f": 136, "px": 653, "tip": [84, 1164]}, {"f": 137, "px": 652, "tip": [84, 1164]}, {"f": 138, "px": 654, "tip": [84, 1164]}, {"f": 139, "px": 653, "tip": [84, 1164]}, {"f": 140, "px": 652, "tip": [84, 1164]}, {"f": 141, "px": 653, "tip": [84, 1164]}, {"f": 142, "px": 652, "tip": [84, 1164]}, {"f": 143, "px": 652, "tip": [84, 1164]}, {"f": 144, "px": 654, "tip": [84, 1164]}, {"f": 145, "px": 655, "tip": [84, 1164]}, {"f": 146, "px": 655, "tip": [84, 1164]}, {"f": 147, "px": 657, "tip": [84, 1164]}, {"f": 148, "px": 657, "tip": [84, 1164]}, {"f": 149, "px": 660, "tip": [84, 1164]}], "final_mask_rle": [[58129, 1], [58399, 1], [58671, 1], [58673, 1], [58942, 2], [66766, 1], [66768, 14], [67034, 20], [67300, 26], [67568, 12], [67581, 1], [67590, 8], [67836, 10], [67863, 7], [68104, 8], [68134, 8], [68372, 8], [68406, 6], [68640, 1], [68642, 6], [68678, 6], [68910, 6], [68948, 8], [69178, 6], [69220, 6], [69446, 8], [69492, 6], [69716, 6], [69762, 6], [69984, 6], [70034, 6], [70252, 7], [70305, 7], [70521, 7], [70576, 6], [70790, 6], [70848, 6], [71058, 6], [71118, 6], [71328, 6], [71390, 6], [71596, 6], [71660, 6], [71865, 5], [71932, 6], [72134, 6], [72202, 6], [72402, 6], [72474, 4], [72672, 5], [72744, 4], [72940, 6], [73014, 5], [73210, 4], [73286, 4], [73478, 6], [73556, 4], [73748, 4], [73826, 4], [74016, 6], [74097, 5], [74285, 5], [74368, 4], [74554, 6], [74638, 5], [74824, 4], [74909, 5], [75092, 6], [75180, 4], [75362, 4], [75450, 4], [75630, 6], [75722, 4], [75900, 4], [75992, 4], [76168, 6], [76262, 6], [76438, 4], [76534, 4], [76706, 6], [76804, 4], [76976, 4], [77075, 4], [77245, 5], [77346, 4], [77514, 6], [77616, 4], [77783, 5], [77886, 4], [78052, 6], [78158, 4], [78322, 4], [78428, 4], [78591, 5], [78698, 4], [78862, 3], [78970, 4], [79240, 4], [79511, 3], [79782, 3], [80052, 4], [80322, 4], [80594, 2], [80597, 1], [80864, 4], [81134, 4], [81404, 4], [81676, 4], [81946, 4], [82216, 4], [82487, 4], [82758, 4], [83028, 4], [83299, 3], [83570, 4], [83840, 4], [84110, 4], [84381, 4], [84652, 4], [84922, 4], [85193, 3], [85464, 4], [85734, 4], [86004, 4], [86275, 4], [86546, 4], [86816, 4], [87086, 4], [87357, 3]], "svg_polyline": [[598.0, 1296.0], [595.5, 1291.6], [592.4, 1285.9], [588.6, 1279.2], [584.4, 1271.6], [579.9, 1263.5], [575.1, 1254.9], [570.2, 1246.1], [565.3, 1237.4], [560.5, 1228.9], [555.9, 1220.8], [551.7, 1213.5], [548.0, 1207.0], [544.6, 1201.2], [541.4, 1195.8], [538.4, 1190.7], [535.5, 1185.8], [532.7, 1181.2], [530.0, 1176.8], [527.4, 1172.6], [524.8, 1168.5], [522.3, 1164.5], [519.9, 1160.7], [517.4, 1156.8], [515.0, 1153.0], [512.6, 1149.2], [510.2, 1145.6], [507.9, 1142.2], [505.6, 1138.8], [503.4, 1135.5], [501.2, 1132.4], [499.1, 1129.3], [497.0, 1126.3], [494.9, 1123.4], [492.9, 1120.6], [490.9, 1117.8], [489.0, 1115.0], [487.1, 1112.3], [485.2, 1109.7], [483.4, 1107.2], [481.7, 1104.8], [479.9, 1102.5], [478.2, 1100.2], [476.6, 1097.9], [475.0, 1095.7], [473.4, 1093.5], [471.9, 1091.4], [470.4, 1089.2], [469.0, 1087.0], [467.8, 1084.9], [467.0, 1083.1], [466.5, 1081.3], [466.1, 1079.7], [465.8, 1078.1], [465.4, 1076.5], [464.8, 1074.7], [463.9, 1072.7], [462.6, 1070.6], [460.8, 1068.1], [458.3, 1065.3], [455.0, 1062.0], [450.8, 1058.1], [445.7, 1053.6], [439.9, 1048.5], [433.5, 1043.0], [426.7, 1037.3], [419.6, 1031.5], [412.4, 1025.7], [405.3, 1020.2], [398.3, 1015.0], [391.6, 1010.3], [385.5, 1006.3], [380.0, 1003.0], [375.1, 1000.4], [370.5, 998.4], [366.2, 996.7], [362.2, 995.5], [358.3, 994.6], [354.6, 994.0], [351.0, 993.7], [347.4, 993.5], [343.7, 993.5], [340.0, 993.6], [336.1, 993.8], [332.0, 994.0], [327.7, 994.3], [323.4, 994.7], [319.0, 995.4], [314.5, 996.2], [310.0, 997.1], [305.5, 998.2], [300.9, 999.4], [296.4, 1000.8], [292.0, 1002.2], [287.6, 1003.7], [283.2, 1005.3], [279.0, 1007.0], [274.9, 1008.8], [270.8, 1010.7], [266.8, 1012.8], [262.8, 1014.9], [258.9, 1017.2], [255.1, 1019.6], [251.2, 1022.1], [247.4, 1024.6], [243.5, 1027.2], [239.7, 1029.8], [235.9, 1032.4], [232.0, 1035.0], [228.1, 1037.6], [224.3, 1040.3], [220.4, 1043.1], [216.6, 1045.9], [212.7, 1048.7], [208.9, 1051.6], [205.1, 1054.6], [201.2, 1057.6], [197.4, 1060.6], [193.6, 1063.7], [189.8, 1066.8], [186.0, 1070.0], [182.2, 1073.2], [178.5, 1076.4], [174.8, 1079.6], [171.2, 1082.9], [167.5, 1086.2], [163.9, 1089.5], [160.2, 1093.0], [156.5, 1096.5], [152.7, 1100.2], [148.9, 1104.0], [145.0, 1107.9], [141.0, 1112.0], [136.7, 1116.5], [132.1, 1121.4], [127.3, 1126.7], [122.3, 1132.3], [117.2, 1138.0], [112.2, 1143.6], [107.3, 1149.1], [102.7, 1154.4], [98.5, 1159.2], [94.7, 1163.5], [91.5, 1167.1], [89.0, 1170.0]]}, "shot_02": {"impact_frame": 39, "first_line_frame": 40, "n_frames": 226, "frames": [{"f": 0, "px": 0}, {"f": 1, "px": 0}, {"f": 2, "px": 0}, {"f": 3, "px": 0}, {"f": 4, "px": 0}, {"f": 5, "px": 0}, {"f": 6, "px": 0}, {"f": 7, "px": 0}, {"f": 8, "px": 0}, {"f": 9, "px": 0}, {"f": 10, "px": 0}, {"f": 11, "px": 0}, {"f": 12, "px": 0}, {"f": 13, "px": 0}, {"f": 14, "px": 0}, {"f": 15, "px": 0}, {"f": 16, "px": 0}, {"f": 17, "px": 0}, {"f": 18, "px": 0}, {"f": 19, "px": 0}, {"f": 20, "px": 0}, {"f": 21, "px": 0}, {"f": 22, "px": 0}, {"f": 23, "px": 0}, {"f": 24, "px": 0}, {"f": 25, "px": 0}, {"f": 26, "px": 0}, {"f": 27, "px": 0}, {"f": 28, "px": 0}, {"f": 29, "px": 0}, {"f": 30, "px": 0}, {"f": 31, "px": 0}, {"f": 32, "px": 0}, {"f": 33, "px": 0}, {"f": 34, "px": 0}, {"f": 35, "px": 0}, {"f": 36, "px": 0}, {"f": 37, "px": 0}, {"f": 38, "px": 0}, {"f": 39, "px": 32, "tip": [656, 1264]}, {"f": 40, "px": 126, "tip": [576, 1188]}, {"f": 41, "px": 177, "tip": [536, 1140]}, {"f": 42, "px": 221, "tip": [512, 1092]}, {"f": 43, "px": 257, "tip": [480, 1064]}, {"f": 44, "px": 286, "tip": [456, 1036]}, {"f": 45, "px": 323, "tip": [432, 1012]}, {"f": 46, "px": 334, "tip": [420, 1004]}, {"f": 47, "px": 345, "tip": [412, 1000]}, {"f": 48, "px": 347, "tip": [400, 1000]}, {"f": 49, "px": 360, "tip": [392, 996]}, {"f": 50, "px": 368, "tip": [384, 992]}, {"f": 51, "px": 380, "tip": [376, 988]}, {"f": 52, "px": 391, "tip": [368, 984]}, {"f": 53, "px": 398, "tip": [364, 980]}, {"f": 54, "px": 404, "tip": [352, 984]}, {"f": 55, "px": 410, "tip": [348, 980]}, {"f": 56, "px": 417, "tip": [344, 980]}, {"f": 57, "px": 422, "tip": [336, 980]}, {"f": 58, "px": 424, "tip": [336, 980]}, {"f": 59, "px": 431, "tip": [328, 984]}, {"f": 60, "px": 435, "tip": [320, 984]}, {"f": 61, "px": 444, "tip": [316, 988]}, {"f": 62, "px": 442, "tip": [312, 988]}, {"f": 63, "px": 448, "tip": [312, 988]}, {"f": 64, "px": 450, "tip": [304, 992]}, {"f": 65, "px": 455, "tip": [300, 996]}, {"f": 66, "px": 460, "tip": [296, 996]}, {"f": 67, "px": 463, "tip": [296, 996]}, {"f": 68, "px": 469, "tip": [288, 1004]}, {"f": 69, "px": 474, "tip": [288, 1004]}, {"f": 70, "px": 485, "tip": [280, 1012]}, {"f": 71, "px": 487, "tip": [280, 1012]}, {"f": 72, "px": 487, "tip": [280, 1012]}, {"f": 73, "px": 494, "tip": [280, 1012]}, {"f": 74, "px": 500, "tip": [280, 1012]}, {"f": 75, "px": 498, "tip": [280, 1012]}, {"f": 76, "px": 502, "tip": [280, 1012]}, {"f": 77, "px": 501, "tip": [280, 1012]}, {"f": 78, "px": 510, "tip": [256, 1044]}, {"f": 79, "px": 516, "tip": [256, 1044]}, {"f": 80, "px": 518, "tip": [256, 1044]}, {"f": 81, "px": 524, "tip": [256, 1044]}, {"f": 82, "px": 530, "tip": [256, 1044]}, {"f": 83, "px": 533, "tip": [256, 1044]}, {"f": 84, "px": 536, "tip": [256, 1044]}, {"f": 85, "px": 542, "tip": [256, 1044]}, {"f": 86, "px": 542, "tip": [256, 1044]}, {"f": 87, "px": 548, "tip": [232, 1088]}, {"f": 88, "px": 556, "tip": [256, 1044]}, {"f": 89, "px": 564, "tip": [256, 1044]}, {"f": 90, "px": 565, "tip": [256, 1044]}, {"f": 91, "px": 570, "tip": [256, 1044]}, {"f": 92, "px": 575, "tip": [256, 1044]}, {"f": 93, "px": 576, "tip": [256, 1044]}, {"f": 94, "px": 589, "tip": [256, 1044]}, {"f": 95, "px": 595, "tip": [256, 1044]}, {"f": 96, "px": 600, "tip": [256, 1044]}, {"f": 97, "px": 604, "tip": [256, 1044]}, {"f": 98, "px": 605, "tip": [256, 1044]}, {"f": 99, "px": 614, "tip": [256, 1044]}, {"f": 100, "px": 623, "tip": [256, 1044]}, {"f": 101, "px": 625, "tip": [256, 1044]}, {"f": 102, "px": 630, "tip": [200, 1172]}, {"f": 103, "px": 639, "tip": [200, 1172]}, {"f": 104, "px": 642, "tip": [200, 1172]}, {"f": 105, "px": 648, "tip": [200, 1172]}, {"f": 106, "px": 653, "tip": [200, 1172]}, {"f": 107, "px": 658, "tip": [192, 1200]}, {"f": 108, "px": 665, "tip": [192, 1200]}, {"f": 109, "px": 672, "tip": [192, 1200]}, {"f": 110, "px": 668, "tip": [192, 1200]}, {"f": 111, "px": 673, "tip": [192, 1200]}, {"f": 112, "px": 672, "tip": [192, 1200]}, {"f": 113, "px": 677, "tip": [192, 1200]}, {"f": 114, "px": 676, "tip": [192, 1200]}, {"f": 115, "px": 673, "tip": [192, 1200]}, {"f": 116, "px": 672, "tip": [192, 1200]}, {"f": 117, "px": 675, "tip": [192, 1200]}, {"f": 118, "px": 673, "tip": [192, 1200]}, {"f": 119, "px": 673, "tip": [192, 1200]}, {"f": 120, "px": 675, "tip": [192, 1200]}, {"f": 121, "px": 674, "tip": [192, 1200]}, {"f": 122, "px": 673, "tip": [192, 1200]}, {"f": 123, "px": 677, "tip": [192, 1200]}, {"f": 124, "px": 678, "tip": [192, 1200]}, {"f": 125, "px": 679, "tip": [192, 1200]}, {"f": 126, "px": 677, "tip": [192, 1200]}, {"f": 127, "px": 678, "tip": [192, 1200]}, {"f": 128, "px": 677, "tip": [192, 1200]}, {"f": 129, "px": 678, "tip": [192, 1200]}, {"f": 130, "px": 676, "tip": [192, 1200]}, {"f": 131, "px": 676, "tip": [192, 1200]}, {"f": 132, "px": 672, "tip": [192, 1200]}, {"f": 133, "px": 673, "tip": [192, 1200]}, {"f": 134, "px": 676, "tip": [192, 1200]}, {"f": 135, "px": 676, "tip": [192, 1200]}, {"f": 136, "px": 677, "tip": [192, 1200]}, {"f": 137, "px": 679, "tip": [192, 1200]}, {"f": 138, "px": 680, "tip": [192, 1200]}, {"f": 139, "px": 680, "tip": [192, 1200]}, {"f": 140, "px": 680, "tip": [192, 1200]}, {"f": 141, "px": 679, "tip": [192, 1200]}, {"f": 142, "px": 679, "tip": [192, 1200]}, {"f": 143, "px": 679, "tip": [192, 1200]}, {"f": 144, "px": 677, "tip": [192, 1200]}, {"f": 145, "px": 678, "tip": [192, 1200]}, {"f": 146, "px": 677, "tip": [192, 1200]}, {"f": 147, "px": 678, "tip": [192, 1200]}, {"f": 148, "px": 676, "tip": [192, 1200]}, {"f": 149, "px": 674, "tip": [192, 1200]}, {"f": 150, "px": 673, "tip": [192, 1200]}, {"f": 151, "px": 675, "tip": [192, 1200]}, {"f": 152, "px": 677, "tip": [192, 1200]}, {"f": 153, "px": 677, "tip": [192, 1200]}, {"f": 154, "px": 679, "tip": [192, 1200]}, {"f": 155, "px": 678, "tip": [192, 1200]}, {"f": 156, "px": 678, "tip": [192, 1200]}, {"f": 157, "px": 680, "tip": [192, 1200]}, {"f": 158, "px": 680, "tip": [192, 1200]}, {"f": 159, "px": 681, "tip": [192, 1200]}, {"f": 160, "px": 680, "tip": [192, 1200]}, {"f": 161, "px": 682, "tip": [192, 1200]}, {"f": 162, "px": 681, "tip": [192, 1200]}, {"f": 163, "px": 683, "tip": [192, 1200]}, {"f": 164, "px": 675, "tip": [192, 1200]}, {"f": 165, "px": 676, "tip": [192, 1200]}, {"f": 166, "px": 673, "tip": [192, 1200]}, {"f": 167, "px": 675, "tip": [192, 1200]}, {"f": 168, "px": 674, "tip": [192, 1200]}, {"f": 169, "px": 672, "tip": [192, 1200]}, {"f": 170, "px": 672, "tip": [192, 1200]}, {"f": 171, "px": 673, "tip": [192, 1200]}, {"f": 172, "px": 674, "tip": [192, 1200]}, {"f": 173, "px": 674, "tip": [192, 1200]}, {"f": 174, "px": 674, "tip": [192, 1200]}, {"f": 175, "px": 676, "tip": [192, 1200]}, {"f": 176, "px": 673, "tip": [192, 1200]}, {"f": 177, "px": 674, "tip": [192, 1200]}, {"f": 178, "px": 672, "tip": [192, 1200]}, {"f": 179, "px": 672, "tip": [192, 1200]}, {"f": 180, "px": 673, "tip": [192, 1200]}, {"f": 181, "px": 672, "tip": [192, 1200]}, {"f": 182, "px": 675, "tip": [192, 1200]}, {"f": 183, "px": 675, "tip": [192, 1200]}, {"f": 184, "px": 675, "tip": [192, 1200]}, {"f": 185, "px": 677, "tip": [192, 1200]}, {"f": 186, "px": 677, "tip": [192, 1200]}, {"f": 187, "px": 678, "tip": [192, 1200]}, {"f": 188, "px": 674, "tip": [192, 1200]}, {"f": 189, "px": 675, "tip": [192, 1200]}, {"f": 190, "px": 675, "tip": [192, 1200]}, {"f": 191, "px": 674, "tip": [192, 1200]}, {"f": 192, "px": 671, "tip": [192, 1200]}, {"f": 193, "px": 671, "tip": [192, 1200]}, {"f": 194, "px": 671, "tip": [192, 1200]}, {"f": 195, "px": 673, "tip": [192, 1200]}, {"f": 196, "px": 674, "tip": [192, 1200]}, {"f": 197, "px": 671, "tip": [192, 1200]}, {"f": 198, "px": 669, "tip": [192, 1200]}, {"f": 199, "px": 668, "tip": [192, 1200]}, {"f": 200, "px": 668, "tip": [192, 1200]}, {"f": 201, "px": 668, "tip": [192, 1200]}, {"f": 202, "px": 669, "tip": [192, 1200]}, {"f": 203, "px": 669, "tip": [192, 1200]}, {"f": 204, "px": 672, "tip": [192, 1200]}, {"f": 205, "px": 673, "tip": [192, 1200]}, {"f": 206, "px": 675, "tip": [192, 1200]}, {"f": 207, "px": 676, "tip": [192, 1200]}, {"f": 208, "px": 675, "tip": [192, 1200]}, {"f": 209, "px": 675, "tip": [192, 1200]}, {"f": 210, "px": 674, "tip": [192, 1200]}, {"f": 211, "px": 673, "tip": [192, 1200]}, {"f": 212, "px": 672, "tip": [192, 1200]}, {"f": 213, "px": 670, "tip": [192, 1200]}, {"f": 214, "px": 670, "tip": [192, 1200]}, {"f": 215, "px": 668, "tip": [192, 1200]}, {"f": 216, "px": 667, "tip": [192, 1200]}, {"f": 217, "px": 667, "tip": [192, 1200]}, {"f": 218, "px": 672, "tip": [192, 1200]}, {"f": 219, "px": 684, "tip": [192, 1200]}, {"f": 220, "px": 741, "tip": [192, 1200]}, {"f": 221, "px": 820, "tip": [192, 1200]}, {"f": 222, "px": 873, "tip": [192, 1200]}, {"f": 223, "px": 919, "tip": [192, 1200]}, {"f": 224, "px": 964, "tip": [192, 1200]}, {"f": 225, "px": 1072, "tip": [192, 1200]}], "final_mask_rle": [[56828, 1], [56843, 2], [57111, 3], [57383, 4], [57637, 3], [57651, 6], [57907, 3], [57921, 5], [58178, 2], [58191, 2], [58448, 2], [58461, 2], [58730, 2], [58987, 1], [59000, 2], [59271, 1], [59541, 1], [59809, 3], [60080, 1], [60871, 1], [61139, 2], [61151, 1], [61408, 3], [61421, 1], [61430, 1], [61678, 3], [61947, 3], [62217, 3], [62487, 3], [62757, 3], [63027, 3], [63297, 3], [63567, 3], [63837, 3], [64107, 3], [64377, 3], [64399, 1], [64647, 3], [64669, 1], [64917, 3], [64939, 2], [65188, 2], [65209, 2], [65458, 2], [65479, 3], [65728, 2], [65749, 3], [65998, 2], [66010, 2], [66020, 2], [66234, 8], [66268, 2], [66290, 1], [66295, 1], [66500, 15], [66538, 2], [66569, 2], [66768, 19], [66808, 1], [66838, 2], [67036, 24], [67078, 2], [67104, 1], [67107, 1], [67304, 8], [67322, 10], [67347, 3], [67360, 2], [67574, 6], [67594, 10], [67617, 2], [67842, 6], [67866, 12], [67888, 2], [68112, 5], [68139, 10], [68158, 1], [68182, 2], [68380, 6], [68411, 9], [68427, 2], [68447, 2], [68452, 2], [68650, 4], [68684, 8], [68697, 1], [68718, 1], [68723, 2], [68919, 5], [68956, 7], [68967, 1], [68988, 2], [68993, 2], [69188, 4], [69228, 6], [69237, 1], [69259, 2], [69458, 4], [69499, 6], [69507, 1], [69529, 2], [69726, 6], [69770, 8], [69799, 2], [69996, 4], [70042, 6], [70069, 2], [70266, 4], [70312, 6], [70340, 1], [70342, 2], [70536, 2], [70539, 1], [70584, 6], [70610, 1], [70612, 1], [70804, 4], [70856, 4], [70882, 1], [71074, 4], [71126, 6], [71152, 1], [71344, 4], [71396, 6], [71612, 1], [71614, 2], [71668, 6], [71882, 4], [71937, 1], [71939, 5], [71959, 2], [72152, 4], [72208, 1], [72210, 6], [72422, 2], [72425, 1], [72478, 1], [72481, 5], [72690, 4], [72748, 1], [72752, 4], [72960, 4], [73018, 1], [73022, 6], [73230, 4], [73293, 6], [73500, 2], [73503, 1], [73563, 5], [73569, 1], [73768, 4], [73833, 7], [74038, 4], [74104, 6], [74308, 4], [74374, 7], [74578, 4], [74644, 3], [74648, 4], [74848, 2], [74914, 3], [74918, 4], [75116, 4], [75184, 3], [75188, 1], [75190, 4], [75386, 4], [75454, 3], [75460, 4], [75468, 1], [75656, 4], [75725, 2], [75730, 1], [75732, 4], [75739, 1], [75926, 4], [75995, 2], [76002, 4], [76009, 1], [76195, 3], [76265, 2], [76272, 4], [76464, 4], [76536, 1], [76542, 1], [76544, 4], [76734, 4], [76814, 4], [77004, 4], [77084, 4], [77089, 1], [77274, 4], [77345, 1], [77347, 1], [77356, 4], [77544, 3], [77616, 2], [77626, 4], [77813, 3], [77896, 4], [78082, 4], [78153, 2], [78156, 1], [78168, 4], [78352, 4], [78438, 4], [78622, 4], [78692, 1], [78708, 4], [78892, 4], [78980, 4], [79161, 4], [79250, 4], [79430, 4], [79512, 1], [79514, 3], [79520, 1], [79522, 3], [79700, 4], [79782, 4], [79792, 4], [79970, 4], [80053, 3], [80062, 6], [80240, 4], [80334, 4], [80510, 4], [80590, 1], [80604, 4], [80780, 2], [80859, 5], [80875, 5], [81048, 1], [81050, 2], [81129, 4], [81146, 4], [81318, 4], [81398, 5], [81416, 6], [81588, 4], [81668, 1], [81670, 2], [81688, 4], [81858, 4], [81938, 1], [81941, 1], [81959, 5], [82128, 3], [82206, 5], [82229, 5], [82476, 5], [82501, 5], [82746, 4], [82772, 4], [83015, 5], [83042, 5], [83284, 5], [83314, 4], [83554, 5], [83584, 5], [83824, 3], [83856, 4], [84083, 2], [84094, 4], [84126, 5], [84364, 3], [84398, 4], [84634, 4], [84668, 5], [84895, 1], [84907, 2], [84939, 5], [85162, 4], [85176, 2], [85210, 4], [85431, 1], [85434, 2], [85481, 5], [85701, 1], [85705, 1], [85752, 4], [85969, 2], [85972, 1], [85985, 1], [86022, 5], [86239, 3], [86281, 1], [86294, 4], [86510, 2], [86526, 1], [86551, 1], [86563, 7], [86784, 1], [86798, 2], [86821, 1], [86825, 1], [86831, 4], [86836, 4], [87069, 3], [87094, 2], [87106, 5], [87324, 1], [87327, 1], [87336, 1], [87340, 4], [87378, 4], [87595, 1], [87604, 1], [87607, 9], [87648, 4], [87869, 2], [87876, 10], [87918, 4], [88140, 2], [88146, 8], [88411, 4]], "svg_polyline": [[684.0, 1301.0], [682.8, 1299.6], [681.4, 1298.0], [679.9, 1296.2], [678.2, 1294.2], [676.3, 1292.0], [674.2, 1289.6], [671.8, 1286.8], [669.1, 1283.8], [666.2, 1280.4], [662.8, 1276.7], [659.1, 1272.5], [655.0, 1268.0], [650.2, 1262.8], [644.7, 1256.9], [638.6, 1250.4], [632.0, 1243.4], [625.1, 1236.1], [618.0, 1228.5], [610.9, 1221.0], [603.9, 1213.5], [597.2, 1206.2], [590.8, 1199.2], [585.1, 1192.8], [580.0, 1187.0], [575.6, 1181.7], [571.6, 1176.8], [567.9, 1172.1], [564.6, 1167.7], [561.6, 1163.5], [558.7, 1159.5], [556.0, 1155.6], [553.5, 1151.9], [550.9, 1148.2], [548.4, 1144.5], [545.7, 1140.8], [543.0, 1137.0], [540.2, 1133.2], [537.5, 1129.5], [534.8, 1125.9], [532.1, 1122.3], [529.5, 1118.8], [526.9, 1115.4], [524.4, 1112.0], [521.8, 1108.7], [519.3, 1105.4], [516.9, 1102.2], [514.4, 1099.1], [512.0, 1096.0], [509.6, 1093.0], [507.3, 1090.1], [505.0, 1087.2], [502.7, 1084.4], [500.5, 1081.7], [498.2, 1079.1], [496.0, 1076.5], [493.8, 1073.9], [491.7, 1071.4], [489.5, 1068.9], [487.2, 1066.4], [485.0, 1064.0], [482.7, 1061.6], [480.5, 1059.3], [478.2, 1057.0], [476.0, 1054.7], [473.7, 1052.5], [471.4, 1050.4], [469.2, 1048.2], [466.9, 1046.1], [464.7, 1044.1], [462.4, 1042.0], [460.2, 1040.0], [458.0, 1038.0], [455.8, 1036.0], [453.5, 1033.9], [451.1, 1031.8], [448.7, 1029.8], [446.4, 1027.7], [444.1, 1025.8], [441.8, 1023.8], [439.6, 1022.0], [437.5, 1020.3], [435.5, 1018.7], [433.7, 1017.3], [432.0, 1016.0], [430.5, 1014.9], [429.2, 1014.0], [428.0, 1013.3], [426.9, 1012.6], [425.9, 1012.1], [424.9, 1011.7], [424.1, 1011.4], [423.3, 1011.1], [422.5, 1010.8], [421.7, 1010.6], [420.9, 1010.3], [420.0, 1010.0], [419.1, 1009.7], [418.3, 1009.5], [417.5, 1009.3], [416.8, 1009.1], [416.0, 1009.0], [415.3, 1008.9], [414.6, 1008.8], [413.9, 1008.7], [413.2, 1008.6], [412.5, 1008.4], [411.7, 1008.2], [411.0, 1008.0], [410.2, 1007.7], [409.5, 1007.4], [408.8, 1007.1], [408.0, 1006.8], [407.2, 1006.5], [406.5, 1006.1], [405.8, 1005.8], [405.0, 1005.4], [404.2, 1005.0], [403.5, 1004.7], [402.8, 1004.3], [402.0, 1004.0], [401.2, 1003.7], [400.5, 1003.3], [399.8, 1003.0], [399.0, 1002.7], [398.2, 1002.3], [397.5, 1002.0], [396.8, 1001.7], [396.0, 1001.3], [395.2, 1001.0], [394.5, 1000.7], [393.8, 1000.3], [393.0, 1000.0], [392.3, 999.7], [391.6, 999.4], [390.9, 999.1], [390.3, 998.8], [389.6, 998.5], [388.9, 998.2], [388.3, 997.8], [387.5, 997.5], [386.8, 997.2], [385.9, 996.8], [385.0, 996.4], [384.0, 996.0], [382.9, 995.6], [381.8, 995.1], [380.5, 994.6], [379.3, 994.0], [378.0, 993.5], [376.6, 992.9], [375.2, 992.4], [373.8, 991.8], [372.4, 991.3], [370.9, 990.8], [369.5, 990.4], [368.0, 990.0], [366.5, 989.6], [365.1, 989.2], [363.6, 988.9], [362.1, 988.5], [360.6, 988.1], [359.1, 987.8], [357.5, 987.5], [355.9, 987.3], [354.2, 987.1], [352.5, 987.0], [350.8, 987.0], [349.0, 987.0], [347.1, 987.1], [345.1, 987.3], [343.1, 987.5], [340.9, 987.8], [338.8, 988.2], [336.6, 988.6], [334.4, 989.1], [332.2, 989.6], [330.0, 990.1], [327.9, 990.7], [325.9, 991.3], [324.0, 992.0], [322.1, 992.7], [320.3, 993.4], [318.6, 994.2], [316.9, 995.0], [315.2, 995.9], [313.5, 996.8], [311.9, 997.7], [310.3, 998.7], [308.7, 999.7], [307.1, 1000.7], [305.6, 1001.8], [304.0, 1003.0], [302.5, 1004.2], [301.0, 1005.5], [299.5, 1006.8], [298.0, 1008.1], [296.6, 1009.5], [295.2, 1010.9], [293.8, 1012.4], [292.4, 1013.9], [291.0, 1015.4], [289.7, 1016.9], [288.3, 1018.5], [287.0, 1020.0], [285.7, 1021.6], [284.4, 1023.1], [283.1, 1024.8], [281.8, 1026.4], [280.5, 1028.0], [279.3, 1029.7], [278.0, 1031.4], [276.8, 1033.1], [275.6, 1034.8], [274.4, 1036.5], [273.2, 1038.3], [272.0, 1040.0], [270.8, 1041.8], [269.7, 1043.5], [268.6, 1045.3], [267.5, 1047.1], [266.4, 1048.9], [265.4, 1050.7], [264.3, 1052.6], [263.2, 1054.4], [262.2, 1056.3], [261.1, 1058.2], [260.1, 1060.1], [259.0, 1062.0], [257.9, 1063.9], [256.8, 1065.9], [255.7, 1067.8], [254.6, 1069.8], [253.5, 1071.8], [252.4, 1073.8], [251.3, 1075.8], [250.2, 1077.8], [249.1, 1079.8], [248.1, 1081.9], [247.0, 1083.9], [246.0, 1086.0], [245.0, 1088.1], [244.1, 1090.2], [243.1, 1092.3], [242.2, 1094.4], [241.3, 1096.6], [240.4, 1098.7], [239.5, 1100.9], [238.6, 1103.1], [237.7, 1105.3], [236.8, 1107.5], [235.9, 1109.8], [235.0, 1112.0], [234.1, 1114.3], [233.1, 1116.6], [232.2, 1118.9], [231.3, 1121.2], [230.4, 1123.6], [229.4, 1125.9], [228.5, 1128.3], [227.6, 1130.7], [226.7, 1133.0], [225.8, 1135.4], [224.9, 1137.7], [224.0, 1140.0], [223.1, 1142.3], [222.3, 1144.6], [221.4, 1146.9], [220.5, 1149.2], [219.7, 1151.5], [218.8, 1153.8], [218.0, 1156.0], [217.1, 1158.3], [216.3, 1160.5], [215.5, 1162.7], [214.8, 1164.9], [214.0, 1167.0], [213.3, 1169.1], [212.6, 1171.1], [211.9, 1173.1], [211.3, 1175.0], [210.6, 1176.9], [210.0, 1178.8], [209.4, 1180.7], [208.7, 1182.7], [208.1, 1184.6], [207.4, 1186.7], [206.7, 1188.8], [206.0, 1191.0], [205.2, 1193.4], [204.3, 1196.0], [203.4, 1198.8], [202.5, 1201.7], [201.5, 1204.6], [200.5, 1207.5], [199.6, 1210.3], [198.7, 1213.0], [197.9, 1215.5], [197.1, 1217.7], [196.5, 1219.5], [196.0, 1221.0]]}, "shot_03": {"impact_frame": 56, "first_line_frame": 59, "n_frames": 174, "frames": [{"f": 0, "px": 0}, {"f": 1, "px": 0}, {"f": 2, "px": 0}, {"f": 3, "px": 0}, {"f": 4, "px": 0}, {"f": 5, "px": 0}, {"f": 6, "px": 0}, {"f": 7, "px": 0}, {"f": 8, "px": 0}, {"f": 9, "px": 0}, {"f": 10, "px": 0}, {"f": 11, "px": 0}, {"f": 12, "px": 0}, {"f": 13, "px": 0}, {"f": 14, "px": 0}, {"f": 15, "px": 0}, {"f": 16, "px": 0}, {"f": 17, "px": 0}, {"f": 18, "px": 0}, {"f": 19, "px": 0}, {"f": 20, "px": 0}, {"f": 21, "px": 0}, {"f": 22, "px": 0}, {"f": 23, "px": 0}, {"f": 24, "px": 0}, {"f": 25, "px": 0}, {"f": 26, "px": 0}, {"f": 27, "px": 0}, {"f": 28, "px": 0}, {"f": 29, "px": 0}, {"f": 30, "px": 0}, {"f": 31, "px": 0}, {"f": 32, "px": 0}, {"f": 33, "px": 0}, {"f": 34, "px": 0}, {"f": 35, "px": 0}, {"f": 36, "px": 0}, {"f": 37, "px": 0}, {"f": 38, "px": 0}, {"f": 39, "px": 0}, {"f": 40, "px": 0}, {"f": 41, "px": 0}, {"f": 42, "px": 0}, {"f": 43, "px": 0}, {"f": 44, "px": 0}, {"f": 45, "px": 0}, {"f": 46, "px": 0}, {"f": 47, "px": 0}, {"f": 48, "px": 0}, {"f": 49, "px": 0}, {"f": 50, "px": 0}, {"f": 51, "px": 0}, {"f": 52, "px": 0}, {"f": 53, "px": 0}, {"f": 54, "px": 0}, {"f": 55, "px": 0}, {"f": 56, "px": 27, "tip": [640, 1280]}, {"f": 57, "px": 64, "tip": [608, 1252]}, {"f": 58, "px": 88, "tip": [576, 1248]}, {"f": 59, "px": 102, "tip": [560, 1240]}, {"f": 60, "px": 113, "tip": [552, 1228]}, {"f": 61, "px": 120, "tip": [540, 1228]}, {"f": 62, "px": 134, "tip": [536, 1216]}, {"f": 63, "px": 139, "tip": [528, 1216]}, {"f": 64, "px": 141, "tip": [520, 1220]}, {"f": 65, "px": 144, "tip": [516, 1216]}, {"f": 66, "px": 147, "tip": [512, 1212]}, {"f": 67, "px": 153, "tip": [512, 1208]}, {"f": 68, "px": 156, "tip": [512, 1208]}, {"f": 69, "px": 155, "tip": [512, 1204]}, {"f": 70, "px": 161, "tip": [504, 1208]}, {"f": 71, "px": 162, "tip": [504, 1208]}, {"f": 72, "px": 168, "tip": [504, 1204]}, {"f": 73, "px": 168, "tip": [504, 1204]}, {"f": 74, "px": 166, "tip": [504, 1204]}, {"f": 75, "px": 163, "tip": [504, 1204]}, {"f": 76, "px": 163, "tip": [504, 1204]}, {"f": 77, "px": 162, "tip": [504, 1200]}, {"f": 78, "px": 163, "tip": [504, 1200]}, {"f": 79, "px": 164, "tip": [504, 1200]}, {"f": 80, "px": 164, "tip": [504, 1200]}, {"f": 81, "px": 164, "tip": [500, 1200]}, {"f": 82, "px": 169, "tip": [496, 1200]}, {"f": 83, "px": 170, "tip": [496, 1200]}, {"f": 84, "px": 170, "tip": [496, 1200]}, {"f": 85, "px": 171, "tip": [496, 1200]}, {"f": 86, "px": 170, "tip": [496, 1200]}, {"f": 87, "px": 171, "tip": [496, 1200]}, {"f": 88, "px": 169, "tip": [496, 1200]}, {"f": 89, "px": 170, "tip": [496, 1200]}, {"f": 90, "px": 169, "tip": [496, 1200]}, {"f": 91, "px": 169, "tip": [496, 1200]}, {"f": 92, "px": 169, "tip": [496, 1200]}, {"f": 93, "px": 169, "tip": [496, 1200]}, {"f": 94, "px": 169, "tip": [496, 1200]}, {"f": 95, "px": 168, "tip": [496, 1200]}, {"f": 96, "px": 169, "tip": [496, 1200]}, {"f": 97, "px": 169, "tip": [496, 1200]}, {"f": 98, "px": 169, "tip": [496, 1200]}, {"f": 99, "px": 170, "tip": [496, 1200]}, {"f": 100, "px": 172, "tip": [496, 1200]}, {"f": 101, "px": 170, "tip": [496, 1200]}, {"f": 102, "px": 171, "tip": [496, 1200]}, {"f": 103, "px": 171, "tip": [496, 1200]}, {"f": 104, "px": 170, "tip": [496, 1200]}, {"f": 105, "px": 170, "tip": [496, 1200]}, {"f": 106, "px": 170, "tip": [496, 1200]}, {"f": 107, "px": 173, "tip": [496, 1200]}, {"f": 108, "px": 171, "tip": [496, 1200]}, {"f": 109, "px": 171, "tip": [496, 1200]}, {"f": 110, "px": 170, "tip": [496, 1200]}, {"f": 111, "px": 170, "tip": [496, 1200]}, {"f": 112, "px": 170, "tip": [496, 1200]}, {"f": 113, "px": 170, "tip": [496, 1200]}, {"f": 114, "px": 170, "tip": [496, 1200]}, {"f": 115, "px": 171, "tip": [496, 1200]}, {"f": 116, "px": 170, "tip": [496, 1200]}, {"f": 117, "px": 171, "tip": [496, 1200]}, {"f": 118, "px": 170, "tip": [496, 1200]}, {"f": 119, "px": 170, "tip": [496, 1200]}, {"f": 120, "px": 174, "tip": [496, 1200]}, {"f": 121, "px": 172, "tip": [496, 1200]}, {"f": 122, "px": 171, "tip": [496, 1200]}, {"f": 123, "px": 171, "tip": [496, 1200]}, {"f": 124, "px": 171, "tip": [496, 1200]}, {"f": 125, "px": 167, "tip": [496, 1200]}, {"f": 126, "px": 168, "tip": [496, 1200]}, {"f": 127, "px": 167, "tip": [496, 1200]}, {"f": 128, "px": 168, "tip": [496, 1200]}, {"f": 129, "px": 168, "tip": [496, 1200]}, {"f": 130, "px": 166, "tip": [496, 1200]}, {"f": 131, "px": 165, "tip": [496, 1200]}, {"f": 132, "px": 165, "tip": [496, 1200]}, {"f": 133, "px": 166, "tip": [496, 1200]}, {"f": 134, "px": 167, "tip": [496, 1200]}, {"f": 135, "px": 168, "tip": [496, 1200]}, {"f": 136, "px": 173, "tip": [496, 1200]}, {"f": 137, "px": 171, "tip": [496, 1200]}, {"f": 138, "px": 170, "tip": [496, 1200]}, {"f": 139, "px": 169, "tip": [496, 1200]}, {"f": 140, "px": 166, "tip": [496, 1200]}, {"f": 141, "px": 167, "tip": [496, 1200]}, {"f": 142, "px": 164, "tip": [496, 1200]}, {"f": 143, "px": 164, "tip": [496, 1200]}, {"f": 144, "px": 164, "tip": [496, 1200]}, {"f": 145, "px": 166, "tip": [496, 1200]}, {"f": 146, "px": 166, "tip": [496, 1200]}, {"f": 147, "px": 166, "tip": [496, 1200]}, {"f": 148, "px": 165, "tip": [496, 1200]}, {"f": 149, "px": 166, "tip": [496, 1200]}, {"f": 150, "px": 168, "tip": [496, 1200]}, {"f": 151, "px": 166, "tip": [496, 1200]}, {"f": 152, "px": 166, "tip": [496, 1200]}, {"f": 153, "px": 168, "tip": [496, 1200]}, {"f": 154, "px": 169, "tip": [496, 1200]}, {"f": 155, "px": 167, "tip": [496, 1200]}, {"f": 156, "px": 167, "tip": [496, 1200]}, {"f": 157, "px": 167, "tip": [496, 1200]}, {"f": 158, "px": 167, "tip": [496, 1200]}, {"f": 159, "px": 167, "tip": [496, 1200]}, {"f": 160, "px": 169, "tip": [496, 1200]}, {"f": 161, "px": 167, "tip": [496, 1200]}, {"f": 162, "px": 168, "tip": [496, 1200]}, {"f": 163, "px": 169, "tip": [496, 1200]}, {"f": 164, "px": 169, "tip": [496, 1200]}, {"f": 165, "px": 166, "tip": [496, 1200]}, {"f": 166, "px": 170, "tip": [496, 1200]}, {"f": 167, "px": 178, "tip": [440, 1052]}, {"f": 168, "px": 197, "tip": [436, 1044]}, {"f": 169, "px": 208, "tip": [428, 1024]}, {"f": 170, "px": 226, "tip": [428, 1024]}, {"f": 171, "px": 241, "tip": [428, 1024]}, {"f": 172, "px": 261, "tip": [428, 1024]}, {"f": 173, "px": 269, "tip": [428, 1024]}], "final_mask_rle": [[69227, 1], [69229, 1], [69233, 1], [69497, 1], [69500, 1], [69503, 1], [69773, 1], [70043, 1], [70309, 3], [70313, 2], [70578, 2], [70582, 2], [70852, 2], [71119, 2], [71122, 2], [71389, 2], [71392, 2], [71660, 1], [71662, 3], [71929, 2], [71932, 2], [72198, 3], [72202, 2], [72469, 3], [72739, 1], [72741, 1], [73009, 3], [73279, 2], [73548, 3], [73553, 1], [73818, 1], [73821, 1], [73823, 1], [74091, 1], [75171, 1], [75711, 1], [75981, 1], [76808, 1], [77078, 1], [80860, 1], [81124, 4], [81131, 1], [81139, 1], [81394, 6], [81401, 1], [81409, 1], [81666, 6], [81679, 2], [81936, 1], [81938, 6], [81950, 1], [82208, 8], [82220, 1], [82480, 8], [82490, 1], [82752, 7], [82760, 1], [83024, 8], [83295, 7], [83566, 8], [83836, 11], [84101, 1], [84106, 1], [84110, 10], [84376, 2], [84383, 9], [84647, 1], [84655, 9], [84917, 1], [84928, 7], [85187, 1], [85200, 6], [85452, 1], [85458, 1], [85472, 6], [85722, 1], [85728, 1], [85744, 4], [85992, 1], [85998, 1], [86014, 6], [86262, 1], [86286, 6], [86509, 1], [86539, 1], [86557, 7], [86828, 7], [87100, 6], [87372, 6], [87642, 7], [87915, 3]], "svg_polyline": [[673.0, 1300.0], [671.4, 1299.2], [669.4, 1298.1], [667.1, 1296.9], [664.5, 1295.6], [661.7, 1294.2], [658.6, 1292.6], [655.5, 1291.0], [652.3, 1289.2], [649.1, 1287.5], [646.0, 1285.7], [642.9, 1283.8], [640.0, 1282.0], [637.2, 1280.1], [634.3, 1278.0], [631.4, 1275.7], [628.5, 1273.3], [625.5, 1270.9], [622.6, 1268.5], [619.7, 1266.1], [616.9, 1263.8], [614.0, 1261.6], [611.3, 1259.5], [608.6, 1257.6], [606.0, 1256.0], [603.5, 1254.6], [600.9, 1253.4], [598.5, 1252.3], [596.0, 1251.4], [593.6, 1250.5], [591.3, 1249.8], [589.0, 1249.1], [586.8, 1248.5], [584.7, 1247.9], [582.7, 1247.3], [580.8, 1246.7], [579.0, 1246.0], [577.3, 1245.3], [575.8, 1244.7], [574.3, 1244.0], [573.0, 1243.5], [571.7, 1242.9], [570.6, 1242.3], [569.4, 1241.8], [568.3, 1241.2], [567.3, 1240.7], [566.2, 1240.1], [565.1, 1239.6], [564.0, 1239.0], [562.9, 1238.4], [561.9, 1237.9], [560.9, 1237.3], [560.0, 1236.8], [559.1, 1236.2], [558.2, 1235.7], [557.3, 1235.1], [556.3, 1234.5], [555.4, 1234.0], [554.3, 1233.3], [553.2, 1232.7], [552.0, 1232.0], [550.7, 1231.3], [549.3, 1230.5], [547.9, 1229.7], [546.3, 1228.9], [544.8, 1228.0], [543.2, 1227.2], [541.6, 1226.3], [540.0, 1225.4], [538.4, 1224.5], [536.9, 1223.7], [535.4, 1222.8], [534.0, 1222.0], [532.6, 1221.2], [531.3, 1220.4], [529.9, 1219.6], [528.6, 1218.8], [527.3, 1218.0], [526.0, 1217.2], [524.8, 1216.5], [523.6, 1215.7], [522.4, 1215.0], [521.2, 1214.3], [520.1, 1213.6], [519.0, 1213.0], [517.9, 1212.4], [516.9, 1211.8], [515.8, 1211.2], [514.8, 1210.6], [513.8, 1210.1], [512.8, 1209.5], [511.9, 1209.1], [511.0, 1208.6], [510.2, 1208.1], [509.4, 1207.7], [508.7, 1207.3], [508.0, 1207.0], [507.4, 1206.7], [506.9, 1206.4], [506.4, 1206.1], [506.0, 1205.9], [505.7, 1205.6], [505.4, 1205.4], [505.1, 1205.3], [504.8, 1205.1], [504.6, 1205.0], [504.4, 1205.0], [504.2, 1205.0], [504.0, 1205.0], [503.8, 1205.1], [503.7, 1205.3], [503.5, 1205.5], [503.4, 1205.8], [503.3, 1206.1], [503.3, 1206.4], [503.2, 1206.7], [503.2, 1207.0], [503.1, 1207.3], [503.1, 1207.6], [503.0, 1207.8], [503.0, 1208.0]]}, "shot_04": {"impact_frame": 46, "first_line_frame": 49, "n_frames": 148, "frames": [{"f": 0, "px": 0}, {"f": 1, "px": 0}, {"f": 2, "px": 0}, {"f": 3, "px": 0}, {"f": 4, "px": 0}, {"f": 5, "px": 0}, {"f": 6, "px": 0}, {"f": 7, "px": 0}, {"f": 8, "px": 0}, {"f": 9, "px": 0}, {"f": 10, "px": 0}, {"f": 11, "px": 0}, {"f": 12, "px": 0}, {"f": 13, "px": 0}, {"f": 14, "px": 0}, {"f": 15, "px": 0}, {"f": 16, "px": 0}, {"f": 17, "px": 0}, {"f": 18, "px": 0}, {"f": 19, "px": 0}, {"f": 20, "px": 0}, {"f": 21, "px": 0}, {"f": 22, "px": 0}, {"f": 23, "px": 0}, {"f": 24, "px": 0}, {"f": 25, "px": 0}, {"f": 26, "px": 0}, {"f": 27, "px": 0}, {"f": 28, "px": 0}, {"f": 29, "px": 0}, {"f": 30, "px": 0}, {"f": 31, "px": 0}, {"f": 32, "px": 0}, {"f": 33, "px": 0}, {"f": 34, "px": 0}, {"f": 35, "px": 0}, {"f": 36, "px": 0}, {"f": 37, "px": 0}, {"f": 38, "px": 0}, {"f": 39, "px": 0}, {"f": 40, "px": 0}, {"f": 41, "px": 0}, {"f": 42, "px": 0}, {"f": 43, "px": 0}, {"f": 44, "px": 0}, {"f": 45, "px": 0}, {"f": 46, "px": 0}, {"f": 47, "px": 48, "tip": [624, 1244]}, {"f": 48, "px": 93, "tip": [644, 1196]}, {"f": 49, "px": 128, "tip": [668, 1164]}, {"f": 50, "px": 153, "tip": [676, 1140]}, {"f": 51, "px": 173, "tip": [684, 1120]}, {"f": 52, "px": 192, "tip": [692, 1104]}, {"f": 53, "px": 205, "tip": [704, 1096]}, {"f": 54, "px": 211, "tip": [716, 1092]}, {"f": 55, "px": 222, "tip": [724, 1084]}, {"f": 56, "px": 230, "tip": [724, 1072]}, {"f": 57, "px": 241, "tip": [732, 1068]}, {"f": 58, "px": 247, "tip": [740, 1068]}, {"f": 59, "px": 251, "tip": [740, 1060]}, {"f": 60, "px": 259, "tip": [748, 1056]}, {"f": 61, "px": 263, "tip": [748, 1052]}, {"f": 62, "px": 267, "tip": [756, 1052]}, {"f": 63, "px": 274, "tip": [756, 1048]}, {"f": 64, "px": 277, "tip": [764, 1048]}, {"f": 65, "px": 283, "tip": [772, 1048]}, {"f": 66, "px": 284, "tip": [768, 1044]}, {"f": 67, "px": 292, "tip": [780, 1044]}, {"f": 68, "px": 292, "tip": [780, 1044]}, {"f": 69, "px": 300, "tip": [788, 1044]}, {"f": 70, "px": 304, "tip": [796, 1048]}, {"f": 71, "px": 308, "tip": [796, 1044]}, {"f": 72, "px": 312, "tip": [804, 1048]}, {"f": 73, "px": 314, "tip": [804, 1048]}, {"f": 74, "px": 314, "tip": [812, 1048]}, {"f": 75, "px": 316, "tip": [812, 1048]}, {"f": 76, "px": 320, "tip": [820, 1052]}, {"f": 77, "px": 322, "tip": [820, 1052]}, {"f": 78, "px": 328, "tip": [828, 1052]}, {"f": 79, "px": 330, "tip": [828, 1052]}, {"f": 80, "px": 339, "tip": [836, 1056]}, {"f": 81, "px": 341, "tip": [836, 1056]}, {"f": 82, "px": 343, "tip": [844, 1060]}, {"f": 83, "px": 349, "tip": [844, 1060]}, {"f": 84, "px": 355, "tip": [852, 1064]}, {"f": 85, "px": 359, "tip": [852, 1064]}, {"f": 86, "px": 362, "tip": [860, 1072]}, {"f": 87, "px": 365, "tip": [860, 1072]}, {"f": 88, "px": 369, "tip": [868, 1076]}, {"f": 89, "px": 372, "tip": [868, 1076]}, {"f": 90, "px": 374, "tip": [872, 1080]}, {"f": 91, "px": 379, "tip": [876, 1080]}, {"f": 92, "px": 381, "tip": [876, 1080]}, {"f": 93, "px": 387, "tip": [884, 1088]}, {"f": 94, "px": 393, "tip": [884, 1088]}, {"f": 95, "px": 397, "tip": [892, 1096]}, {"f": 96, "px": 399, "tip": [892, 1096]}, {"f": 97, "px": 404, "tip": [900, 1100]}, {"f": 98, "px": 408, "tip": [900, 1100]}, {"f": 99, "px": 413, "tip": [900, 1100]}, {"f": 100, "px": 421, "tip": [908, 1108]}, {"f": 101, "px": 424, "tip": [908, 1108]}, {"f": 102, "px": 429, "tip": [916, 1120]}, {"f": 103, "px": 434, "tip": [916, 1120]}, {"f": 104, "px": 439, "tip": [924, 1128]}, {"f": 105, "px": 444, "tip": [924, 1128]}, {"f": 106, "px": 446, "tip": [924, 1128]}, {"f": 107, "px": 453, "tip": [932, 1136]}, {"f": 108, "px": 455, "tip": [932, 1136]}, {"f": 109, "px": 461, "tip": [940, 1144]}, {"f": 110, "px": 463, "tip": [940, 1144]}, {"f": 111, "px": 468, "tip": [940, 1148]}, {"f": 112, "px": 473, "tip": [948, 1156]}, {"f": 113, "px": 478, "tip": [948, 1156]}, {"f": 114, "px": 482, "tip": [956, 1168]}, {"f": 115, "px": 488, "tip": [956, 1168]}, {"f": 116, "px": 494, "tip": [964, 1176]}, {"f": 117, "px": 498, "tip": [964, 1176]}, {"f": 118, "px": 499, "tip": [964, 1176]}, {"f": 119, "px": 499, "tip": [964, 1176]}, {"f": 120, "px": 500, "tip": [964, 1176]}, {"f": 121, "px": 500, "tip": [964, 1176]}, {"f": 122, "px": 500, "tip": [964, 1176]}, {"f": 123, "px": 501, "tip": [964, 1176]}, {"f": 124, "px": 499, "tip": [964, 1176]}, {"f": 125, "px": 487, "tip": [964, 1176]}, {"f": 126, "px": 487, "tip": [964, 1176]}, {"f": 127, "px": 488, "tip": [964, 1176]}, {"f": 128, "px": 496, "tip": [964, 1176]}, {"f": 129, "px": 495, "tip": [964, 1176]}, {"f": 130, "px": 495, "tip": [964, 1176]}, {"f": 131, "px": 493, "tip": [964, 1176]}, {"f": 132, "px": 496, "tip": [964, 1176]}, {"f": 133, "px": 497, "tip": [964, 1176]}, {"f": 134, "px": 498, "tip": [964, 1176]}, {"f": 135, "px": 499, "tip": [964, 1176]}, {"f": 136, "px": 498, "tip": [964, 1176]}, {"f": 137, "px": 497, "tip": [964, 1176]}, {"f": 138, "px": 496, "tip": [964, 1176]}, {"f": 139, "px": 494, "tip": [964, 1176]}, {"f": 140, "px": 486, "tip": [964, 1176]}, {"f": 141, "px": 490, "tip": [412, 844]}, {"f": 142, "px": 539, "tip": [408, 840]}, {"f": 143, "px": 608, "tip": [408, 840]}, {"f": 144, "px": 671, "tip": [408, 840]}, {"f": 145, "px": 756, "tip": [404, 840]}, {"f": 146, "px": 820, "tip": [404, 840]}, {"f": 147, "px": 928, "tip": [404, 840]}], "final_mask_rle": [[56801, 2], [57070, 4], [57340, 2], [57343, 1], [57354, 1], [57610, 2], [57618, 4], [57879, 4], [57891, 1], [58149, 4], [58420, 2], [58432, 2], [58691, 1], [58702, 3], [58965, 2], [58971, 8], [59236, 2], [59241, 7], [59507, 2], [59511, 4], [59779, 5], [60323, 2], [60594, 1], [61134, 2], [61405, 1], [61675, 1], [61945, 1], [62216, 1], [62484, 3], [62754, 3], [63017, 1], [63024, 4], [63287, 1], [63295, 3], [63557, 1], [63565, 3], [63827, 1], [63835, 4], [64076, 2], [64105, 4], [64346, 1], [64367, 1], [64376, 3], [64616, 1], [64646, 4], [64886, 1], [64911, 2], [64916, 5], [65156, 1], [65159, 1], [65181, 2], [65187, 5], [65426, 1], [65429, 1], [65443, 1], [65452, 2], [65458, 4], [65696, 1], [65699, 1], [65722, 2], [65728, 5], [65966, 1], [65991, 4], [65999, 5], [66239, 2], [66262, 4], [66269, 5], [66514, 2], [66531, 5], [66540, 5], [66785, 2], [66803, 4], [66810, 5], [67057, 1], [67071, 1], [67073, 5], [67081, 5], [67321, 1], [67332, 1], [67341, 1], [67344, 5], [67351, 6], [67611, 1], [67615, 5], [67622, 5], [67872, 1], [67881, 1], [67886, 5], [67892, 6], [68134, 1], [68138, 1], [68145, 1], [68151, 1], [68157, 12], [68420, 2], [68429, 4], [68434, 6], [68691, 1], [68700, 3], [68705, 5], [68961, 1], [68971, 3], [68976, 5], [69231, 2], [69242, 2], [69247, 5], [69501, 2], [69512, 3], [69518, 4], [69771, 2], [69782, 3], [69788, 5], [70015, 1], [70019, 1], [70042, 1], [70053, 2], [70057, 7], [70312, 1], [70323, 3], [70328, 6], [70582, 1], [70593, 3], [70598, 7], [70664, 6], [70823, 1], [70852, 1], [70863, 4], [70869, 6], [70930, 14], [71110, 2], [71122, 1], [71134, 3], [71139, 6], [71196, 22], [71362, 2], [71379, 1], [71392, 1], [71404, 2], [71410, 6], [71464, 24], [71489, 1], [71632, 4], [71648, 1], [71675, 1], [71683, 4], [71734, 8], [71752, 10], [71902, 4], [71914, 1], [71956, 2], [72002, 7], [72026, 8], [72172, 2], [72181, 1], [72184, 3], [72202, 1], [72228, 1], [72270, 6], [72298, 6], [72442, 2], [72450, 2], [72455, 4], [72470, 1], [72540, 6], [72570, 6], [72713, 2], [72727, 1], [72808, 6], [72842, 6], [73078, 4], [73113, 7], [73346, 6], [73384, 6], [73616, 4], [73656, 6], [73884, 6], [73927, 5], [74154, 4], [74198, 6], [74424, 4], [74470, 4], [74614, 1], [74692, 5], [74740, 6], [74962, 4], [75012, 5], [75231, 5], [75283, 5], [75425, 1], [75500, 4], [75554, 4], [75697, 1], [75709, 1], [75770, 4], [75824, 6], [75966, 1], [75968, 1], [76039, 5], [76096, 4], [76235, 1], [76237, 2], [76308, 4], [76366, 6], [76578, 4], [76638, 4], [76848, 4], [76908, 6], [77116, 5], [77180, 4], [77315, 1], [77386, 4], [77450, 4], [77656, 4], [77721, 5], [77925, 5], [77992, 4], [78194, 4], [78208, 1], [78262, 6], [78464, 4], [78534, 4], [78734, 4], [78804, 4], [79002, 5], [79076, 4], [79272, 4], [79346, 4], [79542, 4], [79616, 6], [79811, 5], [79888, 4], [80080, 4], [80158, 4], [80350, 4], [80620, 4], [80889, 4], [81158, 5], [81428, 4], [81698, 4], [81968, 4], [82237, 4], [82507, 3], [82776, 4], [83046, 4], [83316, 3], [83585, 3], [83854, 4], [84124, 4], [84331, 1], [84394, 4], [84663, 3], [84869, 1], [84932, 4], [85202, 4], [85472, 4], [85742, 3], [85947, 1], [86010, 4], [86280, 4], [86550, 4], [86820, 4], [87088, 1], [87090, 2], [87358, 4], [87630, 2]], "svg_polyline": [[600.0, 1297.0], [601.2, 1294.4], [602.6, 1291.0], [604.4, 1287.1], [606.3, 1282.7], [608.4, 1278.0], [610.6, 1272.9], [612.9, 1267.7], [615.2, 1262.5], [617.6, 1257.3], [619.8, 1252.2], [622.0, 1247.4], [624.0, 1243.0], [625.9, 1238.8], [627.9, 1234.6], [629.8, 1230.4], [631.7, 1226.3], [633.6, 1222.2], [635.5, 1218.2], [637.3, 1214.2], [639.1, 1210.4], [640.9, 1206.6], [642.6, 1202.9], [644.3, 1199.4], [646.0, 1196.0], [647.6, 1192.7], [649.2, 1189.6], [650.7, 1186.5], [652.2, 1183.6], [653.6, 1180.8], [655.1, 1178.0], [656.5, 1175.3], [657.8, 1172.7], [659.1, 1170.2], [660.5, 1167.8], [661.7, 1165.3], [663.0, 1163.0], [664.2, 1160.7], [665.4, 1158.5], [666.6, 1156.4], [667.7, 1154.4], [668.8, 1152.5], [669.9, 1150.6], [670.9, 1148.7], [672.0, 1146.9], [673.0, 1145.2], [674.0, 1143.4], [675.0, 1141.7], [676.0, 1140.0], [677.0, 1138.3], [678.0, 1136.7], [678.9, 1135.1], [679.9, 1133.5], [680.8, 1131.9], [681.7, 1130.4], [682.6, 1129.0], [683.5, 1127.5], [684.4, 1126.1], [685.2, 1124.7], [686.1, 1123.3], [687.0, 1122.0], [687.9, 1120.7], [688.7, 1119.4], [689.6, 1118.2], [690.4, 1116.9], [691.3, 1115.8], [692.1, 1114.6], [692.9, 1113.4], [693.8, 1112.3], [694.6, 1111.2], [695.4, 1110.1], [696.2, 1109.1], [697.0, 1108.0], [697.8, 1107.0], [698.6, 1106.0], [699.4, 1105.0], [700.2, 1104.0], [700.9, 1103.1], [701.7, 1102.2], [702.4, 1101.3], [703.2, 1100.4], [703.9, 1099.5], [704.6, 1098.7], [705.3, 1097.8], [706.0, 1097.0], [706.7, 1096.2], [707.3, 1095.4], [707.9, 1094.6], [708.5, 1093.8], [709.1, 1093.0], [709.7, 1092.3], [710.2, 1091.5], [710.8, 1090.8], [711.3, 1090.1], [711.9, 1089.4], [712.4, 1088.7], [713.0, 1088.0], [713.6, 1087.3], [714.2, 1086.7], [714.7, 1086.1], [715.3, 1085.5], [715.9, 1084.9], [716.5, 1084.3], [717.1, 1083.7], [717.7, 1083.2], [718.3, 1082.6], [718.8, 1082.1], [719.4, 1081.5], [720.0, 1081.0], [720.6, 1080.5], [721.2, 1079.9], [721.7, 1079.4], [722.3, 1078.9], [722.9, 1078.4], [723.5, 1077.8], [724.1, 1077.4], [724.7, 1076.9], [725.3, 1076.4], [725.8, 1075.9], [726.4, 1075.5], [727.0, 1075.0], [727.6, 1074.6], [728.2, 1074.1], [728.8, 1073.7], [729.4, 1073.2], [730.0, 1072.8], [730.6, 1072.4], [731.2, 1072.0], [731.8, 1071.6], [732.4, 1071.2], [732.9, 1070.8], [733.5, 1070.4], [734.0, 1070.0], [734.5, 1069.6], [734.9, 1069.3], [735.4, 1068.9], [735.8, 1068.6], [736.2, 1068.2], [736.6, 1067.9], [737.0, 1067.6], [737.3, 1067.2], [737.7, 1066.9], [738.1, 1066.6], [738.6, 1066.3], [739.0, 1066.0], [739.5, 1065.7], [739.9, 1065.4], [740.4, 1065.2], [741.0, 1064.9], [741.5, 1064.7], [742.0, 1064.4], [742.5, 1064.2], [743.0, 1064.0], [743.6, 1063.7], [744.1, 1063.5], [744.5, 1063.2], [745.0, 1063.0], [745.4, 1062.8], [745.8, 1062.5], [746.2, 1062.3], [746.5, 1062.0], [746.9, 1061.8], [747.2, 1061.6], [747.6, 1061.3], [748.0, 1061.1], [748.4, 1060.8], [748.9, 1060.6], [749.4, 1060.3], [750.0, 1060.0], [750.6, 1059.7], [751.3, 1059.4], [752.1, 1059.0], [752.8, 1058.7], [753.6, 1058.3], [754.4, 1058.0], [755.3, 1057.7], [756.2, 1057.3], [757.1, 1057.0], [758.0, 1056.6], [759.0, 1056.3], [760.0, 1056.0], [761.0, 1055.7], [762.0, 1055.4], [763.0, 1055.1], [764.1, 1054.8], [765.1, 1054.6], [766.2, 1054.3], [767.4, 1054.1], [768.6, 1053.8], [769.8, 1053.6], [771.2, 1053.4], [772.5, 1053.2], [774.0, 1053.0], [775.6, 1052.8], [777.2, 1052.6], [778.9, 1052.5], [780.7, 1052.3], [782.6, 1052.1], [784.5, 1052.0], [786.4, 1051.9], [788.4, 1051.8], [790.3, 1051.8], [792.3, 1051.8], [794.1, 1051.9], [796.0, 1052.0], [797.8, 1052.2], [799.7, 1052.5], [801.6, 1052.8], [803.4, 1053.1], [805.3, 1053.5], [807.2, 1053.9], [809.1, 1054.4], [810.9, 1054.9], [812.7, 1055.4], [814.5, 1055.9], [816.3, 1056.5], [818.0, 1057.0], [819.7, 1057.6], [821.3, 1058.1], [823.0, 1058.8], [824.6, 1059.4], [826.2, 1060.0], [827.7, 1060.7], [829.3, 1061.4], [830.8, 1062.1], [832.4, 1062.8], [833.9, 1063.5], [835.5, 1064.3], [837.0, 1065.0], [838.5, 1065.8], [840.1, 1066.5], [841.6, 1067.3], [843.1, 1068.1], [844.6, 1068.9], [846.1, 1069.7], [847.6, 1070.5], [849.0, 1071.4], [850.5, 1072.3], [852.0, 1073.1], [853.5, 1074.1], [855.0, 1075.0], [856.5, 1076.0], [858.0, 1077.0], [859.5, 1078.0], [861.0, 1079.1], [862.6, 1080.1], [864.1, 1081.2], [865.6, 1082.4], [867.1, 1083.5], [868.6, 1084.6], [870.1, 1085.7], [871.5, 1086.9], [873.0, 1088.0], [874.4, 1089.1], [875.9, 1090.2], [877.3, 1091.4], [878.7, 1092.5], [880.1, 1093.6], [881.5, 1094.7], [882.9, 1095.9], [884.3, 1097.1], [885.8, 1098.3], [887.2, 1099.5], [888.6, 1100.7], [890.0, 1102.0], [891.4, 1103.3], [892.8, 1104.6], [894.3, 1106.0], [895.7, 1107.4], [897.1, 1108.8], [898.5, 1110.2], [899.9, 1111.6], [901.3, 1113.1], [902.7, 1114.5], [904.2, 1116.0], [905.6, 1117.5], [907.0, 1119.0], [908.4, 1120.5], [909.9, 1122.1], [911.3, 1123.6], [912.7, 1125.2], [914.1, 1126.8], [915.6, 1128.4], [917.0, 1130.0], [918.4, 1131.6], [919.8, 1133.2], [921.2, 1134.8], [922.6, 1136.4], [924.0, 1138.0], [925.4, 1139.6], [926.8, 1141.2], [928.1, 1142.8], [929.5, 1144.4], [930.9, 1146.0], [932.3, 1147.6], [933.6, 1149.2], [934.9, 1150.8], [936.2, 1152.4], [937.5, 1153.9], [938.8, 1155.5], [940.0, 1157.0], [941.2, 1158.5], [942.4, 1160.0], [943.5, 1161.5], [944.7, 1162.9], [945.8, 1164.4], [946.9, 1165.8], [948.0, 1167.2], [949.1, 1168.6], [950.1, 1170.0], [951.1, 1171.4], [952.1, 1172.7], [953.0, 1174.0], [953.9, 1175.3], [954.8, 1176.7], [955.8, 1178.1], [956.6, 1179.4], [957.5, 1180.8], [958.3, 1182.1], [959.1, 1183.3], [959.8, 1184.5], [960.5, 1185.6], [961.1, 1186.5], [961.6, 1187.3], [962.0, 1188.0]]}}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ "_comment": "Ground truth for the 4 shipped clips (1080x1920, 30 fps). impact_t = first frame the ball has left the clubface (read frame-by-frame off the 4K raw, 2026-09-03, +-1 frame). ball_xy = ball at address/impact in 1080x1920 pixels. All four balls fly UP and to the LEFT of the golfer (camera behind the golfer). duration from ffprobe of the shipped clip.", "shots": [ { "id": "shot_01", "raw": "IMG_4120.MOV", "duration": 5.0, "impact_t": 1.03, "ball_xy": [ 600, 1300 ], "tracer_intervals": { "frame_index_base": 0, "frame_domain": "source", "onset_tolerance_frames": 3, "intervals": [ { "id": "shot_01", "start_frame": 32, "visible_end_frame": null } ] } }, { "id": "shot_02", "raw": "IMG_4120 copy.MOV", "duration": 7.541, "impact_t": 1.3, "ball_xy": [ 680, 1302 ], "tracer_intervals": { "frame_index_base": 0, "frame_domain": "source", "onset_tolerance_frames": 3, "intervals": [ { "id": "shot_02", "start_frame": 39, "visible_end_frame": null } ] } }, { "id": "shot_03", "raw": "IMG_4120 copy 4.MOV", "duration": 5.827, "impact_t": 1.88, "ball_xy": [ 674, 1300 ], "tracer_intervals": { "frame_index_base": 0, "frame_domain": "source", "onset_tolerance_frames": 3, "intervals": [ { "id": "shot_03", "start_frame": 56, "visible_end_frame": null } ] } }, { "id": "shot_04", "raw": "IMG_4120 copy 3.MOV", "duration": 4.933, "impact_t": 1.53, "ball_xy": [ 600, 1300 ], "tracer_intervals": { "frame_index_base": 0, "frame_domain": "source", "onset_tolerance_frames": 3, "intervals": [ { "id": "shot_04", "start_frame": 47, "visible_end_frame": null } ] } } ]}12345678910# raw 4K splits (media-raw/, gitignored) -> shipped 1080x1920 clips (environment/media/)47b321b40bdd402f6b9ab7dddb01d8dd181df9df16cf70df92729284c8925f50 IMG_4120.MOV36f5efc4f6d69880a41f4cd1d719a1f421e8a9164de6b928339fc621f24a6cc5 IMG_4120 copy.MOV2bf341099fd1c915f9d60ee4e2b8103a7d726549c31c1b47a63393d89be7c0a7 IMG_4120 copy 4.MOV9456b2cf78c1e9e43eec629815ccb382c7aabcfcaab22acd906c6362181edb10 IMG_4120 copy 3.MOV80dfd70dfea2792d1161bf2ffd3e477152de06c0ddf83843fe90ccd634358ab2 IMG_4120 copy 2.MOVf5ed166fedd21860fc8a19136b1b78915a9219c005579d14d7fcc5d95f93b9b3 shot_01.mp41ee82f09db979be0e7c1b71a2b7e6b870927867a34b4628077fba9b52555932e shot_02.mp43f02966afc8c94ebb2f7ddc1abbd64870fe0790ce3e2c57f7305d6b9800cda54 shot_03.mp4547225b8e522882ef81cdf20da5acb4d0860243b9ab9a3944a6a44ce8c9d29fa shot_04.mp4123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193"""Minimal SVG path geometry for the t16 rubric (pure Python, no deps).
svg_polylines(svg_text) -> list of polylines [[(x, y), ...], ...] in the SVG'suser units, with <g>/<path> transform="translate/scale/matrix" applied andthe viewBox mapped to width/height. Supports path commands M m L l H h V vC c S s Q q T t Z z (cubics/quads sampled at 12 points), plus <polyline>,<polygon> and <line>. Anything else is ignored — the rubric reports "no path".Friction's SVG export (ExportSvgDialog) and hand-written SVGs both fit this."""import mathimport reimport xml.etree.ElementTree as ET
_NUM = re.compile(r"[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?")
def _mat_mul(a, b): a11, a12, a13, a21, a22, a23 = a; b11, b12, b13, b21, b22, b23 = b return (a11 * b11 + a12 * b21, a11 * b12 + a12 * b22, a11 * b13 + a12 * b23 + a13, a21 * b11 + a22 * b21, a21 * b12 + a22 * b22, a21 * b13 + a22 * b23 + a23)
def _parse_transform(t): m = (1, 0, 0, 0, 1, 0) if not t: return m for name, args in re.findall(r"(\w+)\s*\(([^)]*)\)", t): v = [float(x) for x in _NUM.findall(args)] if name == "translate": tx, ty = (v + [0])[:2]; mm = (1, 0, tx, 0, 1, ty) elif name == "scale": sx = v[0]; sy = v[1] if len(v) > 1 else sx; mm = (sx, 0, 0, 0, sy, 0) elif name == "matrix" and len(v) == 6: a, b, c, d, e, f = v; mm = (a, c, e, b, d, f) elif name == "rotate": ang = math.radians(v[0]); ca, sa = math.cos(ang), math.sin(ang) mm = (ca, -sa, 0, sa, ca, 0) if len(v) == 3: cx, cy = v[1], v[2] mm = _mat_mul(_mat_mul((1, 0, cx, 0, 1, cy), mm), (1, 0, -cx, 0, 1, -cy)) else: continue m = _mat_mul(m, mm) return m
def _apply(m, x, y): return (m[0] * x + m[1] * y + m[2], m[3] * x + m[4] * y + m[5])
def _bezier(p0, p1, p2, p3=None, n=12): pts = [] for i in range(1, n + 1): t = i / n if p3 is None: # quadratic x = (1 - t) ** 2 * p0[0] + 2 * (1 - t) * t * p1[0] + t ** 2 * p2[0] y = (1 - t) ** 2 * p0[1] + 2 * (1 - t) * t * p1[1] + t ** 2 * p2[1] else: x = ((1 - t) ** 3 * p0[0] + 3 * (1 - t) ** 2 * t * p1[0] + 3 * (1 - t) * t ** 2 * p2[0] + t ** 3 * p3[0]) y = ((1 - t) ** 3 * p0[1] + 3 * (1 - t) ** 2 * t * p1[1] + 3 * (1 - t) * t ** 2 * p2[1] + t ** 3 * p3[1]) pts.append((x, y)) return pts
def path_polylines(d): tokens = re.findall(r"[MmLlHhVvCcSsQqTtZzAa]|" + _NUM.pattern, d or "") polys, cur, start = [], None, None x = y = 0.0; cmd = None; i = 0; last_ctrl = None nums = []
def take(k): nonlocal i vals = [float(t) for t in tokens[i:i + k]]; i += k return vals while i < len(tokens): t = tokens[i] if re.match(r"[A-Za-z]", t): cmd = t; i += 1 if cmd in "Zz": if cur and start: cur.append(start) cur = None; last_ctrl = None continue if cmd is None: i += 1; continue rel = cmd.islower(); c = cmd.upper() try: if c == "M": px, py = take(2); x, y = (x + px, y + py) if rel else (px, py) cur = [(x, y)]; polys.append(cur); start = (x, y); cmd = "l" if rel else "L"; last_ctrl = None elif c == "L": px, py = take(2); x, y = (x + px, y + py) if rel else (px, py); cur.append((x, y)); last_ctrl = None elif c == "H": (px,) = take(1); x = x + px if rel else px; cur.append((x, y)); last_ctrl = None elif c == "V": (py,) = take(1); y = y + py if rel else py; cur.append((x, y)); last_ctrl = None elif c == "C": v = take(6) if rel: v = [v[0] + x, v[1] + y, v[2] + x, v[3] + y, v[4] + x, v[5] + y] cur.extend(_bezier((x, y), (v[0], v[1]), (v[2], v[3]), (v[4], v[5]))); last_ctrl = (v[2], v[3]); x, y = v[4], v[5] elif c == "S": v = take(4) if rel: v = [v[0] + x, v[1] + y, v[2] + x, v[3] + y] c1 = (2 * x - last_ctrl[0], 2 * y - last_ctrl[1]) if last_ctrl else (x, y) cur.extend(_bezier((x, y), c1, (v[0], v[1]), (v[2], v[3]))); last_ctrl = (v[0], v[1]); x, y = v[2], v[3] elif c == "Q": v = take(4) if rel: v = [v[0] + x, v[1] + y, v[2] + x, v[3] + y] cur.extend(_bezier((x, y), (v[0], v[1]), (v[2], v[3]))); last_ctrl = (v[0], v[1]); x, y = v[2], v[3] elif c == "T": v = take(2) if rel: v = [v[0] + x, v[1] + y] c1 = (2 * x - last_ctrl[0], 2 * y - last_ctrl[1]) if last_ctrl else (x, y) cur.extend(_bezier((x, y), c1, (v[0], v[1]))); last_ctrl = c1; x, y = v elif c == "A": v = take(7); x, y = (x + v[5], y + v[6]) if rel else (v[5], v[6]); cur.append((x, y)); last_ctrl = None else: i += 1 except (IndexError, ValueError, TypeError): break return [p for p in polys if len(p) >= 2]
def _animate_last(el): for ch in el: if ch.tag.split("}")[-1] == "animate" and ch.get("values"): vals = [v.strip() for v in ch.get("values").split(";") if v.strip()] if vals: return max(vals, key=len) # the longest path string = fully grown return None
def animate_values(text): """Per-frame path strings of the first animated <path> (Friction export), or [] — lets a rubric see how the line grows frame by frame.""" try: root = ET.fromstring(text) except ET.ParseError: return [] for el in root.iter(): if el.tag.split("}")[-1] == "path": for ch in el: if ch.tag.split("}")[-1] == "animate" and ch.get("values"): return [v.strip() for v in ch.get("values").split(";")] return []
def svg_polylines(text): try: root = ET.fromstring(text) except ET.ParseError: return [] # viewBox -> width/height mapping vb = root.get("viewBox"); base = (1, 0, 0, 0, 1, 0) try: if vb: vx, vy, vw, vh = [float(v) for v in _NUM.findall(vb)] w = float(_NUM.findall(root.get("width", str(vw)))[0]); h = float(_NUM.findall(root.get("height", str(vh)))[0]) base = (w / vw, 0, -vx * w / vw, 0, h / vh, -vy * h / vh) except (ValueError, IndexError, ZeroDivisionError): pass out = []
def walk(el, m): m = _mat_mul(m, _parse_transform(el.get("transform"))) tag = el.tag.split("}")[-1] polys = [] if tag == "path": d = el.get("d") if not d: # Friction's SVG export (ExportSvgDialog) writes an animated path: # no d attribute, the per-frame path strings live in # <animate attributeName="d" values="M..;M..;..">. The LAST value # is the fully grown line (Sub-Path at 100 %); the sequence is # also the frame-by-frame growth, exposed via animate_values(). d = _animate_last(el) polys = path_polylines(d) elif tag in ("polyline", "polygon"): v = [float(t) for t in _NUM.findall(el.get("points", ""))] pts = list(zip(v[0::2], v[1::2])) if tag == "polygon" and pts: pts.append(pts[0]) polys = [pts] if len(pts) >= 2 else [] elif tag == "line": try: polys = [[(float(el.get("x1")), float(el.get("y1"))), (float(el.get("x2")), float(el.get("y2")))]] except (TypeError, ValueError): polys = [] for p in polys: out.append([_apply(m, x, y) for x, y in p]) for ch in el: walk(ch, m) walk(root, base) return out12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#!/bin/bash
# Run the tests. Copied to /tests/test.sh and run from the working directory.## Nothing is installed here: pytest, pytest-json-ctrf and ffmpeg/ffprobe are# baked into vedit-task:base. Fetching them at grading time would couple every# score to network luck.
mkdir -p /logs/verifier
# Free the box for grading (t10 lesson): stop the editors and any render so the# verifier's ffmpeg seeks are not competing with a Friction render for 4 cores.pkill -x shotcut 2>/dev/null || truepkill -x friction 2>/dev/null || truepkill -f 'melt' 2>/dev/null || truepkill -f 'ffmpeg' 2>/dev/null || truesleep 2
# Preserve deliverables before teardown (fcpx.md rule 1a). NOTE (2026-08-20):# harbor collects /logs/artifacts BEFORE the verifier runs, so# /logs/verifier/artifacts is the copy that actually reaches the host# (harvested with reward.txt). Both are written, belt and braces.mkdir -p /logs/artifacts /logs/verifier/artifactsfor dst in /logs/artifacts /logs/verifier/artifacts; do cp -f /root/Desktop/final.mp4 "$dst"/ 2>/dev/null || true cp -f /root/edit/*.mp4 /root/edit/*.mlt /root/edit/*.friction "$dst"/ 2>/dev/null || true # every Friction export (Sid: all Friction + Shotcut exports reviewable outside the job) mkdir -p "$dst"/traced "$dst"/svg cp -f /root/edit/traced/*.mp4 "$dst"/traced/ 2>/dev/null || true cp -f /root/edit/svg/*.svg "$dst"/svg/ 2>/dev/null || true # Friction projects saved elsewhere under /root — the rubric accepts them find /root -maxdepth 3 -name '*.friction' -not -path '/root/edit/*' -exec cp -f {} "$dst"/ \; 2>/dev/null || true mkdir -p "$dst"/autosave cp -f /root/.local/share/Meltytech/Shotcut/autosave/*.mlt "$dst"/autosave/ 2>/dev/null || truedone
# CTRF produces a standard test report in JSON format which is useful for logging.python3 -m pytest --ctrf /logs/verifier/ctrf.json /tests/test_outputs.py -rA
# GUI-only audit: the terminal stub logs every attempt (rubric gate).cp -f /logs/artifacts/terminal-attempts.log /logs/verifier/artifacts/ 2>/dev/null || true
# Per-checkpoint tracer numbers (pixel counts per sampled frame) for# calibration — the rubric writes them next to reward.txt.cp -f /tmp/t16-grade/tracer-samples.json /logs/verifier/artifacts/ 2>/dev/null || true
# test_outputs.py writes the FRACTIONAL reward itself. Do not clobber it here --# a partial score is the whole point of the rubric. Only fall back to 0 if the# verifier crashed before writing anything.if [ ! -s /logs/verifier/reward.txt ]; then echo 0 > /logs/verifier/reward.txtfi123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472"""t16 rubric v2 — golf shot tracers graded against an APPROVED REFERENCE run.
Flow (instruction.md): /root/media/shot_01..04.mp4 → Friction: import eachclip, Add Path along the flight frame by frame, Sub-Path keyframed so the linegrows with the ball, save *.friction under /root/edit, render each clip to/root/edit/traced/shot_0N.mp4, export each scene to /root/edit/svg/shot_0N.svg→ Shotcut: the 4 renders in order → /root/edit/project.mlt + /root/Desktop/final.mp4.
Reference (tests/reference/tracer-reference.json, built bytools/build-reference.py from the approved renders + SVG paths): per frame thedrawn-pixel count and the TIP of the reference line, the final drawn mask,and the path polyline. Sid (2026-09-04): Friction's output is the heaviestpart of the score.
Friction ........................................................ 0.76 A *.friction mentions each clip (binary; QStrings are UTF-16) 4 x 0.01 B traced render exists, portrait, source length ±0.5 s 4 x 0.04 C tracer vs reference (per clip 0.11): timestamp interval: annotated onset ±3 frames, sustained visibility and no early line; replaces clean+onset of the reference's first line frame 0.02 tracking: on ≥ 70 % of the flight frames the agent's tip is within 100 px of the reference tip (frame by frame) 0.05 footprint: at the end of the shot ≥ 80 % of the agent's line lies within 40 px of the reference line AND vice versa 0.03 clean: nothing drawn 0.5 s / 0.2 s before impact 0.01 D SVG export: parses to ≥ 1 path (0.01); its polyline lies within 60 px of the reference path both ways for ≥ 80 % of points (0.02) 4 x 0.03 Shotcut assembly ................................................. 0.12 E project.mlt references the 4 traced renders (4 x 0.01); exactly 4 clips (0.02); each clip frame-matches the final in order (4 x 0.015) Final export ..................................................... 0.12 F 1080x1920 / 30 fps / H.264 (0.04); duration = sum ± 1 s (0.02); tracer visible in the final on each shot (4 x 0.015) GUI-only gate: any logged terminal attempt → reward 0.
Tracer pixels = max RGB channel delta > 80 between the render and the sourceframe AND its two neighbours (footage motion matches one of them, a tracermatches none). The per-frame masks for a whole clip come from ONE ffmpegfilter graph (difference vs S[f-1], S[f], S[f+1] → per-channel max → min overthe three → threshold) so frame-by-frame tracking costs seconds, not minutes.Ceilings: do-nothing 0.00; the oracle (reference renders + SVGs + thereference .friction baked at /opt/t16-reference) = 1.00."""from tracer_intervals import score_intervals
import globimport jsonimport mathimport osimport reimport subprocess
from _vedit_verifier import (Rubric, duration, extract_project_edl, gray_thumb, mad, probe, video_size, write_reward)
HERE = os.path.dirname(os.path.abspath(__file__))MEDIA = os.environ.get("T16_MEDIA", "/root/media")HOME = os.environ.get("T16_HOME", "/root")FINAL = os.environ.get("T16_FINAL", os.path.join(HOME, "Desktop/final.mp4"))TRACED = os.environ.get("T16_TRACED", os.path.join(HOME, "edit/traced"))SVGDIR = os.environ.get("T16_SVG", os.path.join(HOME, "edit/svg"))REWARD_PATH = os.environ.get("T16_REWARD", "/logs/verifier/reward.txt")TERMINAL_LOG = os.environ.get("T16_TERMINAL_LOG", "/logs/artifacts/terminal-attempts.log")WORK = "/tmp/t16-grade"
SHOTS = json.load(open(os.path.join(HERE, "shots.json")))["shots"]REF = json.load(open(os.path.join(HERE, "reference/tracer-reference.json")))NAMES = [s["id"] + ".mp4" for s in SHOTS]FRAME_W, FRAME_H = 1080, 1920
# --- matching -------------------------------------------------------------MW, MH = 54, 96MATCH_MAD = 22.0TRACED_ALIGN = 0.5FINAL_ALIGN = 1.0DUR_TOL = 0.5FINAL_DUR_TOL = 1.0
# --- tracer detection / reference tolerances ------------------------------TW, TH = REF["thumb"]SCALE = FRAME_W / TWDIFF_THR = 80MIN_TRACER_PX = 100MAX_TRACER_FRAC = 0.12CLEAN_MAX_PX = 120ONSET_TOL_FRAMES = 3TIP_TOL_PX = 100TIP_FRAC = 0.70FOOT_TOL_PX = 40FOOT_FRAC = 0.80SVG_TOL_PX = 60SVG_FRAC = 0.80END_MARGIN = 0.15MAX_PTS = 700 # subsample for the chamfer checks
# ------------------------------------------------------------------ helpers
def rgb_thumb(path, t): try: raw = subprocess.run( ["ffmpeg", "-nostdin", "-v", "error", "-ss", "%.3f" % max(0.0, t), "-i", path, "-frames:v", "1", "-vf", "scale=%d:%d" % (TW, TH), "-f", "rawvideo", "-pix_fmt", "rgb24", "-"], capture_output=True, check=True).stdout return raw[:TW * TH * 3] if len(raw) >= TW * TH * 3 else None except Exception: return None
def source_neighbourhood(src, t): thumbs = [rgb_thumb(src, t + k / 30.0) for k in (-1, 0, 1)] thumbs = [x for x in thumbs if x] return thumbs if len(thumbs) == 3 else None
def changed_px(a, srcs): n = 0 for i in range(0, len(a), 3): r, g, b = a[i], a[i + 1], a[i + 2] if all(abs(r - s[i]) > DIFF_THR or abs(g - s[i + 1]) > DIFF_THR or abs(b - s[i + 2]) > DIFF_THR for s in srcs): n += 1 return n
def align(vid, ref, t_ref, t_vid_guess, rng): b = gray_thumb(ref, t_ref, MW, MH) if not b: return 255.0, 0.0 cache = {}
def probe_d(d): key = round(d, 3) if key not in cache: t = t_vid_guess + d a = gray_thumb(vid, t, MW, MH) if t >= 0 else None cache[key] = mad(a, b, MW, MH) if a else 255.0 return cache[key] coarse = [k / 10.0 for k in range(-int(rng * 10), int(rng * 10) + 1)] d0 = min(coarse, key=probe_d) fine = [d0 + k / 30.0 for k in range(-3, 4)] best = min(fine, key=probe_d) return probe_d(best), best
def tracer_masks(traced, src, shift_frames): """Per-frame drawn masks (bytes, TW*TH, 255 = drawn) for the whole clip from one ffmpeg graph: |T-S[f-1]|, |T-S[f]|, |T-S[f+1]| per channel → max over channels → min over the three → > DIFF_THR. shift_frames > 0 means the render runs LATE by that many frames (trimmed off its start).""" tsrc = "[0:v]scale=%d:%d,format=rgb24" % (TW, TH) if shift_frames > 0: tsrc += ",trim=start_frame=%d,setpts=PTS-STARTPTS" % shift_frames elif shift_frames < 0: tsrc += ",tpad=start=%d:start_mode=clone" % (-shift_frames) g = [tsrc + "[t]", "[1:v]scale=%d:%d,format=rgb24,split=3[s0][s1][s2]" % (TW, TH), "[s1]tpad=start=1:start_mode=clone[sm]", # S[f-1] "[s2]trim=start_frame=1,setpts=PTS-STARTPTS[sp]", # S[f+1] "[t]split=3[t0][t1][t2]"] outs = [] for k, s in enumerate(("s0", "sm", "sp")): g += ["[t%d][%s]blend=all_mode=difference,format=rgb24,extractplanes=r+g+b[r%d][g%d][b%d]" % (k, s, k, k, k), "[r%d][g%d]blend=all_mode=lighten[rg%d]" % (k, k, k), "[rg%d][b%d]blend=all_mode=lighten[d%d]" % (k, k, k)] outs.append("[d%d]" % k) g += ["[d0][d1]blend=all_mode=darken[d01]", "[d01][d2]blend=all_mode=darken[dm]", "[dm]format=gray,geq=lum='if(gt(lum(X,Y),%d),255,0)'[out]" % DIFF_THR] try: raw = subprocess.run( ["ffmpeg", "-nostdin", "-v", "error", "-i", traced, "-i", src, "-filter_complex", ";".join(g), "-map", "[out]", "-f", "rawvideo", "-pix_fmt", "gray", "-"], capture_output=True, check=True, timeout=600).stdout except Exception: return [] n = len(raw) // (TW * TH) return [raw[i * TW * TH:(i + 1) * TW * TH] for i in range(n)]
_RUN = re.compile(rb"\xff+")
def mask_points(mask, limit=None): """Thumb (x, y) of drawn pixels; count is exact, points may be subsampled.""" pts = [] for m in _RUN.finditer(mask): for i in range(m.start(), m.end()): pts.append((i % TW, i // TW)) if limit and len(pts) > limit: step = len(pts) / float(limit) pts = [pts[int(k * step)] for k in range(limit)] return pts
def mask_count(mask): return sum(m.end() - m.start() for m in _RUN.finditer(mask))
def tip_of(mask, bx, by): best, bd = None, -1.0 for x, y in mask_points(mask): d = (x * SCALE - bx) ** 2 + (y * SCALE - by) ** 2 if d > bd: bd, best = d, (x * SCALE, y * SCALE) return best
def coverage(pts_a, pts_b, tol): """Fraction of pts_a within tol of some point of pts_b (both in 1080 px).""" if not pts_a or not pts_b: return 0.0 tol2 = tol * tol; hit = 0 for ax, ay in pts_a: for bx_, by_ in pts_b: if (ax - bx_) ** 2 + (ay - by_) ** 2 <= tol2: hit += 1; break return hit / float(len(pts_a))
def sub(pts, limit=MAX_PTS): if len(pts) <= limit: return pts step = len(pts) / float(limit) return [pts[int(k * step)] for k in range(limit)]
def rle_points(runs): pts = [] for start, length in runs: for i in range(start, start + length): pts.append(((i % TW) * SCALE, (i // TW) * SCALE)) return pts
def find_files(pattern, extra_dirs=()): hits = glob.glob(os.path.join(HOME, "edit", pattern)) hits += glob.glob(os.path.join(HOME, "**", pattern), recursive=True) for d in extra_dirs: hits += glob.glob(os.path.join(d, pattern)) return sorted(set(hits), key=lambda p: os.path.getmtime(p), reverse=True)
def mentions(path, needle): try: data = open(path, "rb").read() except OSError: return False return (needle.encode() in data or needle.encode("utf-16-le") in data or needle.encode("utf-16-be") in data)
def best_mlt(): cands = find_files("*.mlt", extra_dirs=(os.path.join(HOME, ".local/share/Meltytech/Shotcut/autosave"),)) for p in cands: if any(mentions(p, s["id"]) for s in SHOTS): return p return None
def fps_of(meta): try: for s in meta.get("streams", []): if s.get("codec_type") == "video": n, d = s.get("r_frame_rate", "0/1").split("/") return float(n) / float(d) except Exception: pass return None
def vcodec_of(meta): for s in (meta or {}).get("streams", []): if s.get("codec_type") == "video": return s.get("codec_name") return None
def svg_points(path): try: from svgpath import svg_polylines polys = svg_polylines(open(path, errors="ignore").read()) except Exception: return None pts = [(x, y) for poly in polys for x, y in poly] return pts or None
# ------------------------------------------------------------------- rubric
def test_rubric(): os.makedirs(WORK, exist_ok=True) r = Rubric("t16-shottracer-effects", reward_path=REWARD_PATH) samples = {}
# -- A. Friction project mentions each clip ----------------------------- frictions = [p for p in find_files("*.friction") if os.path.getsize(p) >= 1024] for s in SHOTS: hit = next((p for p in frictions if mentions(p, s["id"])), None) r.check(0.01, "A %s: a Friction project mentions it (%s)" % (s["id"], hit), bool(hit))
traced_ok = {} for s in SHOTS: sid, impact, (bx, by) = s["id"], s["impact_t"], s["ball_xy"] ref = REF["shots"][sid] src = os.path.join(MEDIA, sid + ".mp4") trc = os.path.join(TRACED, sid + ".mp4") src_dur = duration(probe(src)) if os.path.isfile(src) else s["duration"] meta = probe(trc) dur = duration(meta) if meta else None size = video_size(meta) if meta else None portrait = bool(size) and size[0] and size[1] and size[1] > size[0] exported = bool(dur) and portrait and abs(dur - src_dur) <= DUR_TOL r.check(0.04, "B %s: traced render exists, portrait, %.2fs vs source %.2fs" % (sid, dur or -1, src_dur), exported) traced_ok[sid] = exported
m, d = 255.0, 0.0 if exported and os.path.isfile(src): t_ref = max(0.2, impact - 0.6) m, d = align(trc, src, t_ref, t_ref, TRACED_ALIGN) footage = exported and m <= MATCH_MAD shift = int(round(d * 30)) if footage else 0 masks = tracer_masks(trc, src, shift) if footage else [] info = {"align_mad": round(m, 1), "offset_frames": shift, "footage": footage, "n_masks": len(masks)} imp_f = ref["impact_frame"] n = min(len(masks), ref["n_frames"])
def cnt(f): return mask_count(masks[f]) if 0 <= f < len(masks) else None
annotation = s['tracer_intervals'] imp_f = annotation['intervals'][0]['start_frame'] ref_first = imp_f expected_count = ref['n_frames'] timing_rows = [{'source_reference_frame': f, 'actual_pixels': cnt(f) or 0, 'missing_candidate_frame': f >= len(masks)} for f in range(expected_count)] timing = score_intervals(timing_rows, annotation, expected_count - 1, min_pixels=MIN_TRACER_PX - 1) # Fractional credit with the existing 0.03 clean/onset allocation. r.check(0.03, 'C %s: annotated timestamp interval %.4f' % (sid, timing['score']), False) r.earned += 0.03 * timing['score'] pre = [] first = next((f for f in range(n) if cnt(f) >= MIN_TRACER_PX), None) info['timestamp_interval'] = timing
# tracking: tip vs reference tip, frame by frame over the flight good = total = 0 dists = [] if masks and ref_first is not None: for row in ref["frames"]: f = row["f"] if f < ref_first or "tip" not in row: continue total += 1 tip = tip_of(masks[f], bx, by) if cnt(f) is not None and cnt(f) >= 20 else None if tip is None: dists.append(None); continue dist = math.hypot(tip[0] - row["tip"][0], tip[1] - row["tip"][1]) dists.append(round(dist)) if dist <= TIP_TOL_PX: good += 1 frac = good / float(total) if total else 0.0 r.check(0.05, "C %s: tip within %d px of the reference tip on %.0f%% of %d flight frames (need %.0f%%)" % (sid, TIP_TOL_PX, frac * 100, total, TIP_FRAC * 100), total > 0 and frac >= TIP_FRAC)
# footprint at the end of the shot (chamfer both ways) end_f = min(n - 1, int(round((src_dur - END_MARGIN) * 30))) if n else -1 cov_a = cov_b = 0.0 end_px = cnt(end_f) if end_f >= 0 else None if end_f >= 0 and end_px and MIN_TRACER_PX <= end_px <= MAX_TRACER_FRAC * TW * TH: agent_pts = [(x * SCALE, y * SCALE) for x, y in mask_points(masks[end_f], MAX_PTS)] ref_pts = sub(rle_points(ref["final_mask_rle"])) cov_a = coverage(agent_pts, ref_pts, FOOT_TOL_PX) cov_b = coverage(ref_pts, agent_pts, FOOT_TOL_PX) foot_ok = cov_a >= FOOT_FRAC and cov_b >= FOOT_FRAC r.check(0.03, "C %s: end-of-shot line matches the reference footprint (%d px; %.0f%% of agent within %d px " "of reference, %.0f%% of reference covered)" % (sid, end_px or 0, cov_a * 100, FOOT_TOL_PX, cov_b * 100), foot_ok)
# D. SVG export svgp = os.path.join(SVGDIR, sid + ".svg") pts = svg_points(svgp) if os.path.isfile(svgp) else None r.check(0.01, "D %s: SVG export parses to a path (%s, %s points)" % (sid, svgp, len(pts) if pts else 0), bool(pts)) s_a = s_b = 0.0 if pts and ref.get("svg_polyline"): a, b = sub(pts), sub([tuple(p) for p in ref["svg_polyline"]]) s_a, s_b = coverage(a, b, SVG_TOL_PX), coverage(b, a, SVG_TOL_PX) r.check(0.02, "D %s: SVG path within %d px of the reference path (%.0f%% / %.0f%%)" % (sid, SVG_TOL_PX, s_a * 100, s_b * 100), s_a >= SVG_FRAC and s_b >= SVG_FRAC)
info.update(pre_counts=pre, first_line_frame=first, ref_first=ref_first, tip_frames=total, tip_good=good, tip_dists=dists, end_px=end_px, foot_cov=[round(cov_a, 2), round(cov_b, 2)], svg_cov=[round(s_a, 2), round(s_b, 2)]) samples[sid] = info
# -- E. Shotcut ---------------------------------------------------------- project = best_mlt() text = "" if project: try: text = open(project, errors="ignore").read() except OSError: text = "" for s in SHOTS: ref_ok = ("traced/%s.mp4" % s["id"]) in text r.check(0.01, "E Shotcut project references the traced render of %s" % s["id"], ref_ok) xml_ok, referenced, seq = (extract_project_edl(project, set(NAMES)) if project else (False, set(), [])) r.check(0.02, "E Shotcut project has exactly %d clips (found %d in %s)" % (len(SHOTS), len(seq), project), xml_ok and len(seq) == len(SHOTS))
# -- F. final -------------------------------------------------------------- fmeta = probe(FINAL) fdur = duration(fmeta) if fmeta else None fsize = video_size(fmeta) if fmeta else None ffps = fps_of(fmeta) if fmeta else None fcodec = vcodec_of(fmeta) fmt_ok = (bool(fdur) and fsize == (FRAME_W, FRAME_H) and ffps is not None and abs(ffps - 30.0) <= 0.1 and fcodec == "h264") r.check(0.04, "F final.mp4 exists, %s, %s fps, %s" % (fsize, ffps, fcodec), fmt_ok) total_dur = sum(duration(probe(os.path.join(MEDIA, n_))) or s["duration"] for n_, s in zip(NAMES, SHOTS)) r.check(0.02, "F final duration %.2fs = the four clips %.2fs ± %.1fs" % (fdur or -1, total_dur, FINAL_DUR_TOL), bool(fdur) and abs(fdur - total_dur) <= FINAL_DUR_TOL)
pos = 0.0 fsamples = {} for s in SHOTS: sid, impact = s["id"], s["impact_t"] src = os.path.join(MEDIA, sid + ".mp4") trc = os.path.join(TRACED, sid + ".mp4") src_dur = duration(probe(src)) if os.path.isfile(src) else s["duration"] ref_vid = trc if traced_ok.get(sid) else src m, d = 255.0, 0.0 if fdur and os.path.isfile(ref_vid): t_ref = max(0.2, impact - 0.6) m, d = align(FINAL, ref_vid, t_ref, pos + t_ref, FINAL_ALIGN) seg_ok = fdur is not None and m <= MATCH_MAD r.check(0.015, "E final: %s in position %d (expected @ %.2fs; mad %.1f, offset %+.2fs)" % (sid, SHOTS.index(s) + 1, pos, m, d), seg_ok) n_end = None if seg_ok and os.path.isfile(src): t_end = src_dur - END_MARGIN a = rgb_thumb(FINAL, pos + t_end + d) srcs = source_neighbourhood(src, t_end) n_end = changed_px(a, srcs) if a and srcs else None r.check(0.015, "F final: tracer visible on %s (%s changed px at the end of the shot)" % (sid, n_end), n_end is not None and MIN_TRACER_PX <= n_end <= MAX_TRACER_FRAC * TW * TH) fsamples[sid] = {"expected_in": round(pos, 3), "mad": round(m, 1), "offset": round(d, 3), "end_px": n_end} pos += src_dur
with open(os.path.join(WORK, "tracer-samples.json"), "w") as f: json.dump({"traced": samples, "final": fsamples}, f, indent=2)
os.makedirs(os.path.dirname(REWARD_PATH), exist_ok=True) with open(os.path.join(os.path.dirname(REWARD_PATH), 'timestamp-intervals.json'), 'w') as f: json.dump({'grading_revision': 'source-frame-intervals-v1', 'shots': {sid: info['timestamp_interval'] for sid, info in samples.items()}}, f, indent=2)
score = r.report()
# GUI-only gate (Sid, 2026-09-04): the image has no terminal; every attempt # to open one is logged by the stub. Any attempt → 0 regardless of artifacts. if os.path.isfile(TERMINAL_LOG) and os.path.getsize(TERMINAL_LOG) > 0: with open(TERMINAL_LOG, errors="ignore") as f: lines = f.read().strip().splitlines() print(" GUI-ONLY GATE: %d terminal attempt(s) logged -> reward 0 (first: %s)" % (len(lines), lines[0][:120])) write_reward(0.0, REWARD_PATH) score = 0.0 assert score == 1.0, "scored %.4f -- see rubric above" % score12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788"""Artifact-based source-frame timing checks; no third-party dependencies.
Bounds are inclusive, zero-based SOURCE frames. None means the last sourceframe. The onset tolerance covers a tiny initial segment lost to encoding.Scores are macro averages, so a long blank preamble cannot hide a missing trace."""
def active_interval(frame, config, last_frame): for interval in config['intervals']: end = interval.get('visible_end_frame') end = last_frame if end is None else end if interval['start_frame'] <= frame <= end: return interval return None
def score_intervals(rows, config, last_frame, min_pixels=3): tolerance = config.get('onset_tolerance_frames', 3) indexed = {} for row in rows: frame = row['source_reference_frame'] indexed.setdefault(frame, []).append(row)
def present(frame): samples = indexed.get(frame, []) return bool(samples) and all( not r.get('missing_candidate_frame') and r['actual_pixels'] > min_pixels for r in samples)
def area(frame): samples = indexed.get(frame, []) return sum(r['actual_pixels'] for r in samples) / len(samples) if samples else 0
def fraction(frames, predicate): return sum(bool(predicate(f)) for f in frames) / len(frames) if frames else 1.0
intervals = [] for interval in config['intervals']: start = interval['start_frame'] end = interval.get('visible_end_frame') end = last_frame if end is None else end previous = [i for i in config['intervals'] if i['start_frame'] < start] earliest = start if previous else max(0, start - tolerance) candidates = range(earliest, min(last_frame, start + tolerance) + 1) onset = any(present(f) for f in candidates) required = list(range(start + tolerance, end + 1)) visibility = fraction(required, present) components = {'onset': float(onset), 'visibility': visibility} stop = interval.get('growth_end_frame') if stop is not None and not interval.get('allow_growth_after_end', False): # Compare sustained growth to the visible footprint at the stop. # A 20% area band tolerates camera scale/codec noise. Disappearance # is checked independently by visibility and cannot earn hold credit. anchor_frames = range(max(start, stop - 2), min(end, stop + 2) + 1) values = sorted(area(f) for f in anchor_frames if present(f)) anchor = values[len(values) // 2] if values else 0 band = config.get('hold_area_tolerance_fraction', 0.20) hold_frames = list(range(stop + tolerance + 1, end + 1)) components['hold'] = fraction(hold_frames, lambda f: anchor > min_pixels and present(f) and abs(area(f) - anchor) <= max(40, anchor * band)) intervals.append(dict(interval, resolved_visible_end_frame=end, components=components, score=sum(components.values()) / len(components)))
# Frames before an explicitly early-allowed start are optional. Tolerance # applies to onset only; between two tracers the documented reset is real. excluded = set() for interval in config['intervals']: start = interval['start_frame'] if interval.get('allow_early_start', False): excluded.update(range(start)) elif not any(i['start_frame'] < start for i in config['intervals']): excluded.update(range(max(0, start - tolerance), start)) forbidden = [f for f in range(last_frame + 1) if f not in excluded and active_interval(f, config, last_frame) is None] absence = fraction(forbidden, lambda f: bool(indexed.get(f)) and all(not r.get('missing_candidate_frame') for r in indexed[f]) and all(r['actual_pixels'] <= min_pixels for r in indexed[f])) parts = [x['score'] for x in intervals] if forbidden: parts.append(absence) return {'score': sum(parts) / len(parts), 'intervals': intervals, 'outside_interval_absence': absence, 'forbidden_frame_count': len(forbidden), 'frame_index_base': 0, 'frame_domain': 'source', 'onset_tolerance_frames': tolerance}123456789101112131415Oracle-only artifacts (not shown to the agent — copied to /opt/t18-referencein the image):
* `oracle.friction` — PENDING, and no longer blocking. A real Friction project saved from the GUI after following the tutorial (blue drop path, Y-translation keyframes at frames 0 and 30, eased). Friction has no headless renderer and its project format is binary, so the oracle cannot create one itself.
Under rubric v0 that capped the oracle at 0.90, because "project saved" was worth 0.10 and was the only checkpoint it could not earn. Rubric v1 (2026-09-21) makes that checkpoint unscored, so the oracle now reaches 1.0 without this file. Dropping it in is still worth doing: it is what would let the checkpoint carry weight again — restoring the requirement that the agent actually worked in Friction — without putting the 0.90 ceiling back.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141# t24 — Pong audiovisual recreation
Harbor task `sid/t24-friction-pong`, version **0.4.0**; rubric **pong-av-v3.0-agreed-rlvr**.The agent watches the supplied full Pong video and recreates it through theFriction GUI, with Shotcut available for audio assembly. It must preserveper-point rally counts and finish 21–20, with motion blur and correctly timedpaddle, wall, score, and game-over sounds.
This replaces the old seven-point, colored, 4–3 Pong task. Existing resultsfrom that task must not be compared with this version without regrading.
## What the agent receives
`environment/media/` contains only these five files, copied into `/root/media/`:
- `reference.mp4`: a byte-for-byte copy of the user-supplied `PONG 2120.mp4`; 480×270, 60 fps, 209.5667 seconds, silent.- `contact.mp3`, `score.mp3`, `wall.mp3`, and `game over.mp3`.
The exact source hashes and preparation history are in`tests/reference/manifest.json`. The instructions explicitly distinguishsuccessful paddle returns, wall bounces, and misses; allow different paths;require the corresponding point's return count; and request sound placement at the corresponding events. The deliveredinstruction does not require trimming source leading silence. The evaluatorexpects a score cue at the last point as well as the game-over cue; thatinterpretation is separate from the v2.1 final-cue correction.
Author AEPs, expression source, event annotations, completed exports, andoracle assets are **not copied into the agent image**. The reference videomay be watched but may not be reused as output footage.
## Rubric
The ten requested families sum to 100% of the content score. The final taskreward is **0.98 × content score + 0.02 × saved-project credit**. A loggedterminal attempt forces zero. Missing or invalid video loses the sectionsthat require a video, but a saved project can still earn its small partialcredit, following `fcpx.md` §1c. Project presence is not proof of editabilityor authorship; those remain review obligations.
The current weights and measurement rules are in [SCORING.md](SCORING.md).The reference has **304 paddle returns, 216 wall hits, 41 scoring events,and one game-over event**. Each point has six, eight, or ten successfulreturns. The exact sequence is frozen in `tests/reference/features.json`.
See **[SCORING.md](SCORING.md)** for the full-duration method, tolerances,calibration, limitations, and recommendations. The scorer uses no externaljudge, no network requests, and no runtime dependency installation.
## After Effects reference with sound
The editable project is:
`source-assets/After-Effects-Fun/projects/PONG/PONG-21-20.aep`
It has four audio compositions with 562 individually positioned MP3 layers,trimmed to audible onset, at −6 dB per layer. Ball motion blur is enabled.The original files and the pre-audio AEP are retained in `versions/`.
`PONG-21-20-with-sound.mp4` combines the user's exact reference video streamwith audio rendered from the modified After Effects project. This preservesthe visual target; it is not a fresh full-video render of the changed AEP.`PONG-21-20-audio-events.json` and `add-PONG-sounds.jsx` record/reproduce theplacements. A WAV mix produced independently from the same sources is anadditional authoring cross-check; the review video's audio comes from AE.
## Build and local checks
Run from the repository root. The Friction/deb preparation script is pinnedand inherited from the established t23 environment recipe.
```bash./tasks/t24-friction-pong/tools/fetch-friction.shpython3 tasks/t24-friction-pong/tools/build-reference.py./suite/suite.sh refresh tasks/t24-friction-pong./suite/suite.sh doctor tasks/t24-friction-pongdocker build --platform linux/amd64 \ -f tasks/t24-friction-pong/environment/Dockerfile \ -t refresh-fcpx-t24:av-v2 tasks/t24-friction-pong/environment```
The host analysis commands require NumPy, SciPy, FFmpeg/FFprobe, and pytest.The Dockerfile installs the evaluation dependencies at **build time**.The local compose override pins the main task container to Linux AMD64,while allowing Harbor's egress sidecar to use its native host architecture.Do not globally force all Harbor services to AMD64 on Apple Silicon.
```bashpython3 tasks/t24-friction-pong/tools/check-reference-gates.pypython3 tasks/t24-friction-pong/tools/make-no-blur-control.pypython3 tasks/t24-friction-pong/tools/calibrate-reference.py./suite/suite.sh run tasks/t24-friction-pong --env local -a oracle \ --job-name t24-av-calibration-oracle```
The oracle in `solution/` is explicitly an **artifact-calibration oracle**:it supplies the author's actual AEP and approved AV control. It tests theverifier and artifact collection; it does not establish Linux GUI solvability.
## Run status and limits
The Linux AMD64 image has been built locally, the installed Friction/Shotcutlaunchers and dependencies checked, and the Harbor configuration validatedagainst Harbor 0.22.0. Calibration results are recorded under`tests/reference/calibration/`; execution status is in `VALIDATION.md`.
A Friction/Shotcut computer-use pilot remains necessary. In particular,recreating 41 points and placing 562 cues is a much larger workload than theold task. The 1,800-second setting is the suite's smoke baseline, not a provencompletion budget. Follow the root README's longer-run timeout-multiplierconvention for pilot work and measure actual completion time.
The task-specific GUI snapshot was published on September 11, 2026.Remote launch configuration and completion monitoring are documented in`DAYTONA.md`; the active snapshot belongs in the central`environments/vedit/env.toml`. Never use the suite CLI's fallback t07 snapshot.
The image follows the root README: terminal launchers are logging stubs,XFCE kiosk restrictions are installed, both editors have GUI launchers,SDL/Pulse-safe audio setup is retained, and `tests/test.sh` copies exports,projects, intermediates, and recovery files into both `/logs/artifacts/` and`/logs/verifier/artifacts/` before grading. Evaluator errors produce anexplicit error report and no fabricated numeric reward.
Version 0.3.2 enforces the no-code requirement inside Friction as well as at desktop/tool entry points. The user-edited instruction.md is preserved exactly. Expression menus/editors and ECMAScript execution are disabled; ordinary numeric GUI entries are parsed directly without executing scripts.The author reference and audiovisual scoring are unchanged. Only Frictionand Shotcut are exposed as GUI applications: inherited Kdenlive, Natron,Chromium, development executables, Run dialogs, and launcher editing routesare removed or disabled. The final image is flattened to exclude deletedapplications from its layers. Internal shell/Python programs remain forcontainer startup, trusted computer-1 control, and grading; they are notavailable as agent tools.
### Scorer v2.1 regrade
On September 12, 2026, the final-cue check was decoupled from winner/HUDcorrectness and made tolerant of the supplied file's intrinsic leadingsilence. This is task version 0.3.3. See SCORING.md for the precise correctionand `analysis/t24-scoring-review-20260912/` in the repository for preservedv2.0 reports, revised v2.1 results, and validation. Other criterion weightsand rules are unchanged. Historical uploads were not rewritten.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109# t24 Pong audiovisual recreation, GUI-only Friction + Shotcut.# Build context: this environment directory. See ../README.md.FROM --platform=linux/amd64 debian:bookworm AS guard_builderRUN apt-get update && apt-get install -y --no-install-recommends g++ qtbase5-dev qtdeclarative5-dev pkg-config patchelf && rm -rf /var/lib/apt/lists/*RUN apt-get update && apt-get install -y --no-install-recommends xz-utils && rm -rf /var/lib/apt/lists/*COPY friction.tar.xz /tmp/friction.tar.xzRUN mkdir /friction && tar -xJf /tmp/friction.tar.xz -C /friction --strip-components=1COPY friction-gui-only.cpp /src/friction-gui-only.cppRUN mkdir /output && g++ -shared -fPIC -std=c++17 -O2 -DQT_NO_VERSION_TAGGING $(pkg-config --cflags Qt5Widgets Qt5Qml) /src/friction-gui-only.cpp -L/friction/lib -Wl,-rpath,/opt/friction/lib -l:libQt5WidgetsFriction.so.5 -l:libQt5QmlFriction.so.5 -l:libQt5GuiFriction.so.5 -l:libQt5CoreFriction.so.5 -ldl -o /output/libfriction-gui-only.soRUN cp /friction/bin/friction /output/friction && patchelf --add-needed libfriction-gui-only.so /output/friction && patchelf --print-needed /output/friction | head -5
FROM --platform=linux/amd64 vedit-task:base AS prepared
# --- Friction (verbatim from t16: bundled Qt5/Skia/ffmpeg; Pulse null sink# stops the modal audio error; portable.txt removed; ldd assertion) ---------COPY friction.tar.xz /tmp/COPY debs/ /tmp/debs/RUN dpkg -i /tmp/debs/*.deb \ && mkdir -p /opt/friction \ && tar -xJf /tmp/friction.tar.xz -C /opt/friction --strip-components=1 \ && rm -rf /tmp/friction.tar.xz /tmp/debs \ && test -x /opt/friction/bin/friction \ && rm -f /opt/friction/bin/portable.txt \ && missing="$(ldd /opt/friction/bin/friction | grep 'not found' || true)" \ && { [ -z "$missing" ] || { echo "friction: unresolved libs:"; echo "$missing"; exit 1; }; }COPY friction-launcher.sh /usr/local/bin/frictionRUN chmod 755 /usr/local/bin/friction
# Evaluation dependencies are baked into the image, never installed by tests.RUN apt-get update && apt-get install -y --no-install-recommends python3-numpy python3-scipy python3-pil tesseract-ocr \ && rm -rf /var/lib/apt/lists/*# Only the exact supplied reference and four audio assets are agent-visible.RUN rm -f /root/media/*.mp4COPY media/ /root/media/RUN test -s /root/media/reference.mp4 && test -s /root/media/contact.mp3 \ && test -s /root/media/score.mp3 && test -s /root/media/wall.mp3 \ && test -s "/root/media/game over.mp3" && mkdir -p /root/edit /root/Desktop
# --- Shotcut stays available (base) for anyone who wants to scrub the# reference in an NLE; skip its first-run wizard, software GL, square 800p30# is not a preset so leave the video mode automatic. --------------------------RUN mkdir -p /root/.config/Meltytech \ && printf '[General]\nfirstRun=false\ncheckUpgradeAutomatic=false\naskUpgradeAutomatic=false\ndrawMethod=2\nplayerGPU=false\n' \ > /root/.config/Meltytech/Shotcut.conf
# --- Friction autostarts (APP=friction); Desktop + menu launchers. --------COPY friction-autostart.desktop /opt/autostart/friction-autostart.desktopCOPY friction.desktop /root/Desktop/friction.desktopRUN chmod 755 /root/Desktop/friction.desktop \ && mkdir -p /usr/share/applications \ && cp /root/Desktop/friction.desktop /usr/share/applications/friction.desktop \ && test -x /usr/local/bin/shotcut \ && test -x /usr/bin/xfdesktop \ && test -f /opt/autostart/shotcut-autostart.desktop
# --- GUI-ONLY (Sid, 2026-09-04): every terminal route becomes a logging stub# (attempt -> /logs/artifacts/terminal-attempts.log -> reward 0), terminal /# python / Kdenlive menu entries and the Ctrl+Alt+T shortcut go, XFCE kiosk# mode blocks new panel launchers. python3 stays for the verifier. --------COPY no-terminal.sh /usr/local/bin/no-terminalCOPY kiosk/kioskrc /etc/xdg/xfce4/kiosk/kioskrcCOPY shotcut-menu.desktop /usr/share/applications/shotcut.desktopRUN chmod 755 /usr/local/bin/no-terminal \ && for t in xterm uxterm lxterm koi8rxterm x-terminal-emulator xfce4-terminal xfce4-appfinder xfrun4; do \ rm -f "/usr/bin/$t" "/etc/alternatives/$t"; ln -s /usr/local/bin/no-terminal "/usr/bin/$t"; done \ && rm -f /usr/share/applications/debian-xterm.desktop /usr/share/applications/debian-uxterm.desktop \ /usr/share/applications/xfce4-terminal-emulator.desktop /usr/share/applications/python3*.desktop \ /usr/share/applications/display-im6*.desktop /usr/share/applications/org.kde.kdenlive.desktop \ /usr/share/applications/xfce4-file-manager.desktop /usr/share/applications/xfce4-mail-reader.desktop \ /usr/share/applications/xfce4-web-browser.desktop /usr/share/applications/xfce4-settings-editor.desktop \ /usr/share/xfce4/helpers/*.desktop \ /root/Desktop/terminal.desktop /root/Desktop/kdenlive.desktop \ && sed -i '/exo-open --launch TerminalEmulator/d' /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml \ && sed -i 's/^TerminalEmulator=.*/TerminalEmulator=/; s/^FileManager=.*/FileManager=/' /etc/xdg/xfce4/helpers.rc \ && test -x /usr/local/bin/shotcut && test -x /usr/local/bin/friction \ && [ "$(readlink -f /usr/bin/xterm)" = /usr/local/bin/no-terminal ] \ && ! ls /usr/share/applications | grep -qiE 'xterm|terminal|python|display-im6'
# Remove inherited applications and development executables, then flatten the# final filesystem so removed apps are not retained in inherited image layers.RUN apt-get purge -y chromium chromium-common chromium-sandbox kdenlive kdenlive-data xterm \ && rm -rf /opt/natron /usr/local/bin/Natron /usr/local/bin/make-media /usr/lib/gcc \ && rm -f /usr/bin/gcc* /usr/bin/g++* /usr/bin/x86_64-linux-gnu-gcc* /usr/bin/x86_64-linux-gnu-g++* /usr/bin/cc /usr/bin/c++ /usr/bin/c89-gcc /usr/bin/c99-gcc \ && rm -f /usr/bin/exo-desktop-item-edit /usr/bin/exo-open /usr/bin/xfce4-keyboard-settings \ /usr/bin/xfce4-mime-settings /usr/bin/xfce4-settings-manager /usr/bin/xfce4-settings-editor \ && rm -rf /var/lib/apt/lists/*COPY harden-desktop.py /tmp/harden-desktop.pyRUN python3 /tmp/harden-desktop.py && rm /tmp/harden-desktop.py \ && for t in xterm uxterm lxterm koi8rxterm x-terminal-emulator xfce4-terminal xfce4-appfinder xfrun4; do \ rm -f "/usr/bin/$t"; ln -s /usr/local/bin/no-terminal "/usr/bin/$t"; done \ && test ! -e /usr/bin/chromium && test ! -e /usr/bin/kdenlive && test ! -e /opt/natron \ && test -x /usr/bin/xfce4-session && test -x /usr/bin/startxfce4 && test -x /usr/bin/xrdb \ && python3 -c "import scipy, numpy, PIL, pytest"
# Enforce the no-code restriction inside Friction as well as at desktop/tool# entry points. The patched executable requires the guard even when opened# directly. Compiler, headers and guard sources stay in the builder stage.COPY --from=guard_builder /output/libfriction-gui-only.so /opt/friction/lib/libfriction-gui-only.soCOPY --from=guard_builder /output/friction /opt/friction/bin/frictionRUN ldd /opt/friction/bin/friction | tee /tmp/friction-guard-ldd \ && ! grep -q 'not found' /tmp/friction-guard-ldd \ && rm /tmp/friction-guard-ldd
FROM scratchCOPY --from=prepared / /ENV DEBIAN_FRONTEND=noninteractive APP=friction SDL_AUDIODRIVER=dummy \ QSG_RHI_BACKEND=opengl LIBGL_ALWAYS_SOFTWARE=1WORKDIR /rootCMD ["/usr/local/bin/start-editor"]12345678# Harbor's own compose template overrides the image CMD with `sleep infinity`,# which skips start-editor's directory setup. This override is merged last, so# `command` wins. `suite run --env local` renames this to docker-compose.yaml# for the run and back afterwards — never leave both names present.services: main: platform: linux/amd64 command: [ "/usr/local/bin/start-editor" ]12345678910[Desktop Entry]Type=ApplicationName=Friction# XFCE autostart entry installed by start-editor when APP=friction (copied to# /root/.config/autostart/friction.desktop). Goes through the launcher so the# null-sink PulseAudio server is up before Friction's audio handler probes it# (otherwise a modal "Critical Error … Unsupported sample format 0" blocks# the UI at launch — t16 Xvfb smoke, 2026-09-02).Exec=env LIBGL_ALWAYS_SOFTWARE=1 QSG_RHI_BACKEND=opengl /usr/local/bin/frictionX-GNOME-Autostart-enabled=true123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135// Task image policy: Friction animation tools remain available; its expression// code editor and ECMAScript execution are disabled. No agent text is logged.#include <QCoreApplication>#include <QEvent>#include <QPointer>#include <QTimer>#include <QRegularExpression>#include <cmath>#include <QAction>#include <QMenu>#include <QDialog>#include <QJSEngine>#include <QJSValue>#include <QWidget>#include <dlfcn.h>#include <cstdio>#include <cstdlib>
static bool codeWindow(const QWidget *widget) { for (auto current = widget; current; current = current->parentWidget()) { const QString title = current->windowTitle(); const QString type = current->metaObject()->className(); if (title.startsWith("Expression", Qt::CaseInsensitive) || type.contains("ExpressionEditor") || type.contains("JSEditor")) return true; } return false;}
static void blocked() { std::fputs("GUI-only task: expression scripting is disabled.\n", stderr);}
class CodeEditorFilter : public QObject {public: using QObject::QObject; bool eventFilter(QObject *object, QEvent *event) override { if (event->type() == QEvent::Show) { if (auto menu = qobject_cast<QMenu *>(object)) { for (auto action : menu->actions()) { if (action->text().contains("Expression", Qt::CaseInsensitive)) { action->setEnabled(false); action->setToolTip("Expression scripting is disabled; use keyframes."); } } } } auto widget = qobject_cast<QWidget *>(object); if (!widget || !codeWindow(widget)) return false; switch (event->type()) { case QEvent::Show: { widget->setEnabled(false); auto window = widget->window(); window->setAttribute(Qt::WA_DontShowOnScreen, true); QPointer<QWidget> safeWindow(window); QTimer::singleShot(0, this, [safeWindow] { if (safeWindow) safeWindow->close(); }); blocked(); return true; } case QEvent::KeyPress: case QEvent::KeyRelease: case QEvent::InputMethod: case QEvent::MouseButtonPress: case QEvent::MouseButtonRelease: case QEvent::Shortcut: case QEvent::ShortcutOverride: return true; default: return false; } }};
static void installFilter() { static QPointer<CodeEditorFilter> filter; auto app = QCoreApplication::instance(); if (app && !filter) { filter = new CodeEditorFilter(app); app->installEventFilter(filter); }}
int QCoreApplication::exec() { installFilter(); using Function = int (*)(); static auto original = reinterpret_cast<Function>(dlsym(RTLD_NEXT, "_ZN16QCoreApplication4execEv")); if (!original) std::abort(); return original();}
int QDialog::exec() { if (codeWindow(this)) { setEnabled(false); blocked(); return QDialog::Rejected; } using Function = int (*)(QDialog *); static auto original = reinterpret_cast<Function>(dlsym(RTLD_NEXT, "_ZN7QDialog4execEv")); if (!original) std::abort(); return original(this);}
QJSValue QJSEngine::evaluate(const QString &program, const QString &, int) { installFilter(); // Friction's ordinary numeric sliders also call evaluate(text()). Parse // literal numbers directly, without executing ECMAScript, so normal GUI // coordinate/keyframe entry remains available. static const QRegularExpression number( QStringLiteral(R"(^[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[eE][+-]?[0-9]+)?$)")); const QString text = program.trimmed(); if (number.match(text).hasMatch()) { bool ok = false; const double value = text.toDouble(&ok); if (ok && std::isfinite(value)) return QJSValue(value); } blocked(); return QJSValue(QJSValue::UndefinedValue);}
QJSValue QJSValue::call(const QJSValueList &) { blocked(); return QJSValue(QJSValue::UndefinedValue);}
QJSValue QJSValue::callWithInstance(const QJSValue &, const QJSValueList &) { blocked(); return QJSValue(QJSValue::UndefinedValue);}
QJSValue QJSValue::callAsConstructor(const QJSValueList &) { blocked(); return QJSValue(QJSValue::UndefinedValue);}123456789101112131415161718192021#!/bin/bash# Friction launcher (Desktop entry, xterm, supervisor all go through here).# * LIBGL_ALWAYS_SOFTWARE=1: Skia on llvmpipe is the only GL in the sandbox.# * A per-user PulseAudio with a null sink: Qt Multimedia's pulse plugin is# the only audio backend in the bundle, and Friction's audio handler throws# a modal "Critical Error … Unsupported sample format 0" on launch when no# server answers. Root is fine for a private, dummy server.# * qt.conf resolves plugins/libs relative to bin/, so exec the real binary.# * nice 15 (t10i lesson, re-learned on t16 fable a1 2026-09-04): a Friction# render pegs all 4 cores + RAM, computer-1's screenshot exec then exceeds# Daytona's exec deadline ("Runtime action 'screenshot' failed (143):# Terminated") and harbor ends the trial with no reward after 5 h of work.# Renders inherit the niceness, so the exec daemon always gets CPU.export LIBGL_ALWAYS_SOFTWARE=1export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp/runtime-$(id -u)}"mkdir -p "$XDG_RUNTIME_DIR" && chmod 700 "$XDG_RUNTIME_DIR"if command -v pulseaudio >/dev/null && ! pgrep -x pulseaudio >/dev/null; then pulseaudio --daemonize=yes --exit-idle-time=-1 --disallow-exit \ --load="module-null-sink sink_name=dummy" >/dev/null 2>&1 || truefiexec nice -n 15 /opt/friction/bin/friction "$@"12345678910111213[Desktop Entry]Type=ApplicationName=FrictionComment=2D motion graphics (shot tracer)# LIBGL_ALWAYS_SOFTWARE=1: Friction draws through Skia on OpenGL; llvmpipe is# the only GL in the sandbox (same rule as Natron/Shotcut). QT_QPA_PLATFORM# left default (xcb) — computer-1's desktop is a real Xvfb.Exec=env LIBGL_ALWAYS_SOFTWARE=1 QSG_RHI_BACKEND=opengl /usr/local/bin/frictionIcon=applications-graphicsTerminal=false# Categories makes it show up in the XFCE Applications menu (smoke a3 found# no Friction entry there and fell back to xterm).Categories=AudioVideo;Graphics;1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556"""Build-time restriction of agent-visible desktop entry points."""from pathlib import Pathimport xml.etree.ElementTree as ET
root = Path('/etc/xdg/xfce4/xfconf/xfce-perchannel-xml')keyboard = root / 'xfce4-keyboard-shortcuts.xml'tree = ET.parse(keyboard)tree.getroot().set('locked', 'root')commands = tree.getroot().find("property[@name='commands']")for child in list(commands): commands.remove(child)# Keep window management shortcuts; no run, terminal, browser, or settings hotkeys.ET.SubElement(commands, 'property', name='default', type='empty')tree.write(keyboard, encoding='UTF-8', xml_declaration=True)
panel = '''<?xml version="1.0" encoding="UTF-8"?><channel name="xfce4-panel" version="1.0" locked="root"> <property name="configver" type="int" value="2"/> <property name="panels" type="array"><value type="int" value="1"/> <property name="panel-1" type="empty"> <property name="position" type="string" value="p=6;x=0;y=0"/> <property name="length" type="uint" value="100"/> <property name="position-locked" type="bool" value="true"/> <property name="size" type="uint" value="30"/> <property name="plugin-ids" type="array"><value type="int" value="1"/><value type="int" value="2"/><value type="int" value="3"/></property> </property> </property> <property name="plugins" type="empty"> <property name="plugin-1" type="string" value="launcher"><property name="items" type="array"><value type="string" value="friction.desktop"/></property></property> <property name="plugin-2" type="string" value="launcher"><property name="items" type="array"><value type="string" value="shotcut.desktop"/></property></property> <property name="plugin-3" type="string" value="tasklist"><property name="expand" type="bool" value="true"/></property> </property></channel>'''Path('/etc/xdg/xfce4/panel/default.xml').write_text(panel)(root / 'xfce4-panel.xml').write_text(panel)(root / 'xfce4-desktop.xml').write_text('''<?xml version="1.0" encoding="UTF-8"?><channel name="xfce4-desktop" version="1.0" locked="root"> <property name="desktop-menu" type="empty"><property name="show" type="bool" value="false"/></property> <property name="windowlist-menu" type="empty"><property name="show" type="bool" value="false"/></property> <property name="desktop-icons" type="empty"><property name="style" type="int" value="0"/></property></channel>''')# Preseed the user's files so first-login migration cannot restore stock menus.user = Path('/root/.config/xfce4/xfconf/xfce-perchannel-xml')user.mkdir(parents=True, exist_ok=True)for name in ['xfce4-keyboard-shortcuts.xml', 'xfce4-panel.xml', 'xfce4-desktop.xml']: (user / name).write_bytes((root / name).read_bytes())for folder in ['/usr/share/applications', '/usr/local/share/applications', '/root/Desktop']: for file in Path(folder).glob('*.desktop'): if file.name not in ['friction.desktop', 'shotcut.desktop']: file.unlink()for folder in ['/opt/autostart', '/root/.config/autostart']: for file in Path(folder).glob('*.desktop'): if 'friction' not in file.name and 'shotcut' not in file.name: file.unlink()1234567891011121314151617# XFCE kiosk mode: the agent may not add panel launchers (a launcher's Exec# line runs arbitrary programs) or edit the desktop menu. Panel, desktop and# session stay usable; only customisation is locked.[xfce4-panel]CustomizePanel=NONE[xfdesktop]CustomizeBackdrop=NONECustomizeDesktopMenu=NONECustomizeWindowlist=NONEUserMenu=NONE[xfce4-session]CustomizeSplash=NONECustomizeChooser=NONECustomizeLogout=NONECustomizeCompatibility=NONECustomizeSecurity=NONEShutdown=NONE123456789101112#!/bin/bash# GUI-only environment (Sid, 2026-09-04): every terminal-emulator entry point# is replaced by this stub. It logs the attempt for the verifier (a logged# attempt zeroes the reward — the task must be done in Friction and Shotcut)# and tells the agent there is no terminal, then exits.mkdir -p /logs/artifactsecho "$(date -u +%FT%TZ) $(basename "$0") $*" >> /logs/artifacts/terminal-attempts.logif command -v xmessage >/dev/null 2>&1; then DISPLAY="${DISPLAY:-:1}" timeout 20 xmessage -center -buttons OK -default OK \ "There is no terminal in this environment. Please do the task in Friction and Shotcut." >/dev/null 2>&1 || truefiexit 12712345678[Desktop Entry]Type=ApplicationName=ShotcutComment=Video editor (assembly / export)Exec=env SDL_AUDIODRIVER=dummy QSG_RHI_BACKEND=opengl LIBGL_ALWAYS_SOFTWARE=1 /usr/local/bin/shotcutIcon=applications-multimediaTerminal=falseCategories=AudioVideo;Video;123456789101112131415161718192021I found this video animation online. Can you recreate this animation to the highest fidelity possible? Whenever the ball contacts a paddle, use `contact.mp3`; when a point is won, use `score.mp3`. When the ball hits a wall, use `wall.mp3`. When the score reaches **21–20**, use `game over.mp3`.
The video is **`/root/media/reference.mp4`**. The four sound files are beside it in `/root/media/`.
Rebuild the animation from scratch. I want the following details from the reference to be captured well:
1. **Score progression:** reproduce the sequence of scores throughout the match, ending at **21–20**.2. **Pace of play:** capture how long each rally lasts, the pauses between rallies, and the ball speed. Match the exact number of successful paddle returns in each corresponding reference rally. Each reference point time and rally duration has a **±1 second** full-credit allowance.3. **Near misses:** reproduce the close misses where the ball passes just beyond a paddle.4. **Correct scoring:** when the ball exits the screen on the right, increase the left paddle's displayed score by exactly **1**. When it exits on the left, increase the right paddle's displayed score by exactly **1**. Update the score after each point.
Rename every Friction layer that contains the ball to exactly **`ball layer`**, including any duplicate ball layers.
Use Friction for the animation; Shotcut is also available for sound placement and final assembly. Do not use the reference footage as the final video. It needs to be made from scratch.
**Save early and re-save often.** Grading reads files saved on disk, not the screen.
Deliver:
- **`/root/Desktop/final.mp4`** — H.264 video with AAC audio, 480 × 270, 60 fps. Preserve the approximately 3:29.57 reference duration; up to two extra seconds of the final still hold are allowed to finish the sound.- **`/root/edit/`** — your editable Friction project and, if used, the Shotcut project, plus any intermediate renders or assets needed to reopen them. Save the animation as `pong.friction` and any final audio assembly as `pong.mlt`.tasks/t16-shottracer-effects/README.mdAdded+205
tasks/t16-shottracer-effects/environment/DockerfileAdded+127
tasks/t16-shottracer-effects/environment/debs/libasound2-plugins_1.2.7.1-1_amd64.debAdded
tasks/t16-shottracer-effects/environment/debs/libpulse-mainloop-glib0_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t16-shottracer-effects/environment/debs/libpulsedsp_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t16-shottracer-effects/environment/debs/libspeexdsp1_1.2.1-1_amd64.debAdded
tasks/t16-shottracer-effects/environment/debs/libwrap0_7.6.q-32_amd64.debAdded
tasks/t16-shottracer-effects/environment/debs/pulseaudio-utils_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t16-shottracer-effects/environment/docker-compose.local.yamlAdded+12
tasks/t16-shottracer-effects/environment/friction-autostart.desktopAdded+10
tasks/t16-shottracer-effects/environment/friction-launcher.shAdded+21
tasks/t16-shottracer-effects/environment/friction.desktopAdded+13
tasks/t16-shottracer-effects/environment/kiosk/kioskrcAdded+17
tasks/t16-shottracer-effects/environment/no-terminal.shAdded+12
tasks/t16-shottracer-effects/environment/reference/README.mdAdded+14
tasks/t16-shottracer-effects/environment/reference/oracle.frictionAdded
tasks/t16-shottracer-effects/environment/reference/svg/shot_01.svgAdded
tasks/t16-shottracer-effects/environment/reference/svg/shot_02.svgAdded
tasks/t16-shottracer-effects/environment/reference/svg/shot_03.svgAdded
tasks/t16-shottracer-effects/environment/reference/svg/shot_04.svgAdded
tasks/t16-shottracer-effects/environment/shotcut-menu.desktopAdded+8
tasks/t16-shottracer-effects/instruction.mdAdded+8
tasks/t16-shottracer-effects/task.tomlAdded+64
tasks/t16-shottracer-effects/tests/_vedit_verifier.pyAdded+359
tasks/t16-shottracer-effects/tests/reference/tracer-reference.jsonAdded+1
tasks/t16-shottracer-effects/tests/shots.jsonAdded+93
tasks/t16-shottracer-effects/tests/source.sha256Added+10
tasks/t16-shottracer-effects/tests/svgpath.pyAdded+193
tasks/t16-shottracer-effects/tests/test.shAdded+52
tasks/t16-shottracer-effects/tests/test_outputs.pyAdded+472
tasks/t16-shottracer-effects/tests/tracer_intervals.pyAdded+88
tasks/t18-friction-tutorial/environment/reference/README.mdAdded+15
tasks/t24-friction-pong/README.mdAdded+141
tasks/t24-friction-pong/environment/DockerfileAdded+109
tasks/t24-friction-pong/environment/debs/libasound2-plugins_1.2.7.1-1_amd64.debAdded
tasks/t24-friction-pong/environment/debs/libpulse-mainloop-glib0_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t24-friction-pong/environment/debs/libpulsedsp_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t24-friction-pong/environment/debs/libspeexdsp1_1.2.1-1_amd64.debAdded
tasks/t24-friction-pong/environment/debs/libwrap0_7.6.q-32_amd64.debAdded
tasks/t24-friction-pong/environment/debs/pulseaudio-utils_16.1+dfsg1-2+b1_amd64.debAdded
tasks/t24-friction-pong/environment/docker-compose.local.yamlAdded+8
tasks/t24-friction-pong/environment/friction-autostart.desktopAdded+10
tasks/t24-friction-pong/environment/friction-gui-only.cppAdded+135
tasks/t24-friction-pong/environment/friction-launcher.shAdded+21
tasks/t24-friction-pong/environment/friction.desktopAdded+13
tasks/t24-friction-pong/environment/harden-desktop.pyAdded+56
tasks/t24-friction-pong/environment/kiosk/kioskrcAdded+17
tasks/t24-friction-pong/environment/no-terminal.shAdded+12
tasks/t24-friction-pong/environment/shotcut-menu.desktopAdded+8
tasks/t24-friction-pong/instruction.mdAdded+21