# 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** = design ceiling 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 at the end.** The brief (Sid, 2026-09-03): four vertical iPhone clips of golfers hitting a ball. In **Friction** (1.0.0-rc.3, the open-source After-Effects tier) the agent opens each clip, steps to the impact frame, zooms in on the ball, draws the flight with the **Add Path** tool frame by frame (zooming in or extrapolating 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, and renders each traced clip. Then in **Shotcut** it stitches the four renders in order 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 xterm at step 6 and fable 5.1 at step 290, both wrote Python ball-detection scripts over the source frames (fable then wrote the tracer paths as SVG and imported them 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) close the 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 no GUI route to it is left; Friction's own expression editor ("Calculate" on a property, fable used it once) is part of the tool and allowed. Re-run both models 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 CAN export an animated SVG (`ExportSvgDialog` / `AnimationSaverSVG` in the rc.3 binary; 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 `` + `` 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 distinct swings: `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 to the session at 11.5 / 51.5 / 110.5 / 145.5 s. The task ships those four, in session 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 sheets cropped to the ball, ±1 frame); every ball flies up and to the left of the golfer (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 the fable-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.1 run `jobs/t16-cu-fable51-20260904-a1`) + `environment/reference/svg/` (the paths it imported) + `oracle.friction` (its saved project). Per frame: drawn px, tip (drawn pixel farthest from the ball); final-frame mask (RLE); SVG polyline. Swap the reference by replacing those files and re-running the builder — 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 tracer mask (|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 is parsed by `tests/svgpath.py` (pure Python: path commands, transforms, viewBox, and Friction's animated export — no `d`, one path string per frame in ``; 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 the reference'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/` now auto-detects t16 (a `traced/` artifact dir): 6 frames per shot, agent next to reference, opus-5 structured output → `verifier/judge.json`, never touches the 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 Applications menu, on the Desktop and as `shotcut` in xterm. `friction.desktop` now has `Categories=` so it also appears in the Applications menu (smoke a3 found no entry and used xterm). Open wart: xfdesktop needs Thunar's D-Bus service to launch 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/media docker build --platform linux/amd64 \ -f tasks/t16-shottracer-effects/environment/Dockerfile \ -t refresh-fcpx-t16:dev tasks/t16-shottracer-effects/environment DOCKER_HOST=unix://$HOME/.colima/default/docker.sock \ ./suite/suite.sh run tasks/t16-shottracer-effects --env local -a oracle # expect 0.92 daytona snapshot push refresh-fcpx-t16:dev --name refresh-fcpx-env-t16- \ -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): ```bash DAYTONA_API_KEY=... MODEL=claude-fable-5-1 ./suite/launch_detached.py \ tasks/t16-shottracer-effects refresh-fcpx-env-t16-20260903 t16-cu-fable51-20260903 DAYTONA_API_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 per key). Upload every finished job to trajectories.sh (README-shop-task-runs.md recipe; `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 `` 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 |