File size: 10,077 Bytes
7ec48b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# t18-friction-tutorial — learn Friction from a tutorial, rebuild its falling water drop [Friction only, NO assets, no clones]

**Status 2026-09-21 (rubric v1): the "Friction project saved" checkpoint is
now reported but UNSCORED, and its 0.10 moved into the two motion checks
(falls-straight 0.15 -> 0.20, ease-in 0.10 -> 0.15). The oracle's design
ceiling is therefore 1.0, not 0.90. The live-run figures below are rubric v0
and are not comparable check-for-check — fable-5.1's 0.90 becomes 0.85 under
v1 (it saved a project, so it gained nothing, and it fails the now-heavier
ease check); opus-5's 1.00 stays 1.00. Neither has been re-graded.
See tests/test_outputs.py for the reasoning and the cost.**

**Status 2026-09-03: image `refresh-fcpx-t18:dev` built, local harbor oracle
0.90 (= rubric v0 ceiling without a GUI-saved `.friction`), snapshot
`refresh-fcpx-env-t18-20260903` = `current_t18`. First live runs (computer-1,
16× budget): fable-5.1 **0.90** in 196 steps / ~36 min — correct drop, white
background, saved project, but the fall is linear-to-decelerating (ease ratio
0.93; the tutorial's ease-in accelerates) and the drop sits ~18 % from the
left (the shortened instruction no longer asks for centring). opus-5 **1.00** in 236 steps / ~48 min — every check passes, ease ratio 5.19
(a real accelerating fall, from the graph editor as taught). Job dirs: `jobs/t18-cu-fable51-20260903-a1`, `jobs/t18-cu-opus5-20260903-a1`.**

The agent gets Friction (1.0.0-rc.3, t16's pinned artifacts) and Part One of
Nuxttux's series, **"Introduction to Friction for Motion Graphics"**
(https://www.youtube.com/watch?v=f0ZBRmGxWXQ, 25:42), and must reproduce
what the tutorial builds: a blue water drop made from a circle (Object to
path, top node pulled up, flat fill, no stroke) whose Y translation is
keyframed from fully above the 1920×1080 canvas at frame 0 to fully below at
frame 30, eased in the graph editor so it accelerates. `/root/media` is
empty on purpose. Deliverables: `/root/edit/project.friction` +
`/root/Desktop/final.mp4` (60 frames @ 30 fps).

t17 (same image recipe, different tutorial: Part Two + one clip + double
exposure) stays as is.

## What the agent gets: the video, nothing else (Sid, 2026-09-03)

`/root/tutorial/tutorial.mp4` — 1280×720 H.264 with the YouTube auto-captions
**burned into the picture** (computer-1 sees screenshots and hears nothing;
captions are the only way the narration's menu names and shortcuts reach it)
— plus `tutorial.webm`, a VP9 fallback to drop once a smoke shows chromium
playing the mp4. The **Tutorial** Desktop launcher opens the mp4 directly in
Debian's chromium (`--no-sandbox`, own profile dir), whose built-in player
gives seek/pause/scrub. The transcript, chapter frame sheets, WebVTT and
index.html that t17 ships were deliberately REMOVED here: they let an agent
read the narration in one pass and skim the UI steps, which changes what is
measured from "follow a video" to "read a transcript". The instruction is
correspondingly short: watch the video and reproduce what was done, at
1920×1080 / 30 fps / 60 frames, save `/root/edit/project.friction`, render
`/root/Desktop/final.mp4` (the scene size, length and paths stay in the
instruction because the rubric needs them fixed).

**`tutorial.mp4` is Sid's hand-edited cut (22:34 of the 25:42 original, edited 2026-09-03 13:36) — do NOT regenerate it with `tools/fetch-tutorial.sh`, which would rebuild the full-length video; `tutorial.webm` is still the full 25:42 fallback, so drop it (or re-cut it) before the fallback can ever play.**

720p came from Sid's own `yt-dlp --cookies-from-browser chrome` run
(anonymous yt-dlp only gets 360p — PO token); `tools/fetch-tutorial.sh`
prefers a `raw-720p.mp4` downloaded that way and falls back to 360p. Chapters
for the reviewer (not shown to the agent): Opening 0:00, Examples 0:17,
Download Friction 0:27, First look 2:25, UI 4:30, Keyboard Shortcuts 8:18,
Properties Filters 12:12, Object to path 13:00, Create water drop 15:00,
Global Pivot 15:55, Transform Gizmo 17:20, Snapping & Grid 18:00, Animate
18:22, Graph Editor 23:24, Save Project 25:22.

## Reviewing a run without the sandbox

Every trial pulls the agent's outputs back to the host (`task.toml`
`artifacts` = `/root/Desktop/final.mp4`, `/root/edit`, `/logs/artifacts`;
`tests/test.sh` also copies them into `/logs/verifier/artifacts`, the copy
harbor actually harvests). So after a Daytona run look in
`jobs/<job>/<trial>/verifier/artifacts/`: `final.mp4` (the graded render),
`project.friction`, `samples.json` (per-frame centroid/area/bbox track the
rubric measured). Screenshots of every agent step are in
`jobs/<job>/<trial>/agent/`, and the trajectories.sh upload replays them.
Sid (2026-09-03): keep this in place for every re-run — the sandbox is gone
minutes after the job ends.

## Rubric v1 (weights, see tests/test_outputs.py)

Deterministic, offline, read entirely from the render: 61 frames decoded
once to 192×108 RGB thumbs, "blue" pixels (b > 90, b−r > 40, b−g > 20) are
the drop. Same family as the t04–t06 Natron animation checks (centroid
tracks, edge contact, distance ratios).

| weight | checkpoint |
|---|---|
| 0.05 | final.mp4 exists, readable, video stream |
| 0.05 | 1920×1080 |
| 0.10 | duration 2.0 s ± 0.5 |
| 0.05 | solid background: ≥ 98 % of the last frame is one colour, no drop left |
| 0.10 | blue blob present mid-fall (0.2 %–15 % of the frame on ≥ 3 frames) |
| 0.10 | blob is blue (mean b−r ≥ 40, b−g ≥ 20 on every visible frame) |
| 0.10 | drop shape: bbox h/w ≥ 1.05 on fully-visible frames (a plain circle fails) |
| 0.20 | falls straight down: centroid y non-decreasing, x drift < 5 % of width |
| 0.10 | timing: invisible at frame 0, enters from the top, leaves at the bottom, gone before frame 36 |
| 0.15 | ease-in: last-third distance ≥ 1.3 × first-third |
| — | *(unscored, reported)* Friction project saved (any `*.friction` ≥ 1 KB under /root) |

**Why "project saved" is unscored (2026-09-21).** It was the only checkpoint
the oracle could not earn — Friction's format is binary and it has no headless
mode — so the oracle capped at 0.90 and every run had to be read against a
0.90 ceiling instead of 1.0. It was also the only pure *existence* check in an
otherwise fidelity-based rubric. **The cost: nothing in the reward now
requires the agent to have used Friction at all**; a render made any other way
scores the same. The check still runs, still prints, and the `.friction` is
still pulled back for human review, but it no longer moves the number. The
proper fix is pending item 2 below — a GUI-saved `environment/reference/
oracle.friction` lets the checkpoint carry weight again *and* keeps the oracle
at 1.0.

Calibration (2026-09-03, ffmpeg `geq` oracle: r=120 px drop, quadratic
ease): **0.90 under v0, 1.00 under v1** — drop visible frames 5–29, h/w
1.46–1.50, ease ratio 4.43. Linear-fall decoy (same oracle, exponent 1):
loses only the easing check → 0.80 under v0, **0.85 under v1** (the removed
0.10 it never earned, minus the heavier 0.15 ease check). **Do-nothing floor
0.00.** Static drop: **0.45 max, unchanged** — it fails both checks that
gained weight and never earned the one that was removed. The oracle 1.00 and the linear decoy
0.85 were re-measured on 2026-09-21 via the no-docker calibration path below
(ease ratio 4.43 and 0.86 respectively). The static-drop 0.45 is carried over
by argument rather than re-rendered.
`samples.json` (per-frame centroid/area/bbox track) sits next to reward.txt
for recalibration against a real Friction render (its anti-aliased edges and
the tutorial's squished-ellipse drop may shift the aspect/area numbers —
recalibrate only oracle + real run side by side, fcpx.md rule).

## Build / run

```bash
./suite/suite.sh base build                                  # vedit-task:base, once (check its date!)
tasks/t18-friction-tutorial/tools/fetch-friction.sh          # tarball + debs → environment/ (reuses t16's)
tasks/t18-friction-tutorial/tools/fetch-tutorial.sh          # only if tutorial.mp4/webm are missing (see its header for the 720p cookie step)
docker build --platform linux/amd64 \
  -f tasks/t18-friction-tutorial/environment/Dockerfile \
  -t refresh-fcpx-t18:dev tasks/t18-friction-tutorial/environment
DOCKER_HOST=unix://$HOME/.colima/default/docker.sock \
  ./suite/suite.sh run tasks/t18-friction-tutorial --env local -a oracle   # expect 1.0 (rubric v1)
```

Remote: `daytona snapshot push refresh-fcpx-t18:dev --name refresh-fcpx-env-t18-<date>
-e /usr/local/bin/start-editor --cpu 4 --memory 8 --disk 10`, then set
`current_t18` in `environments/vedit/env.toml`.

Local rubric calibration without docker:

```bash
C=/tmp/t18-cal; mkdir -p $C/home/edit $C/home/Desktop
T18_EDIT=$C/home/edit T18_FINAL=$C/home/Desktop/final.mp4 T18_REF=/none tasks/t18-friction-tutorial/solution/solve.sh
cd tasks/t18-friction-tutorial/tests && T18_HOME=$C/home T18_FINAL=$C/home/Desktop/final.mp4 \
  T18_REWARD=$C/reward.txt T18_WORK=$C/work python3 test_outputs.py
```

## Pending (in order)

1. Build `refresh-fcpx-t18:dev`, harbor-path oracle locally (0.90), XFCE smoke:
   Friction autostarts, the Tutorial launcher plays `tutorial.mp4` (or the
   webm fallback) in chromium.
2. Sid: follow the tutorial once in the GUI and save
   `environment/reference/oracle.friction`, then restore "project saved" to
   0.10 (taking 0.05 back off each of falls-straight and ease-in). That is
   what puts a "did you actually use Friction?" requirement back into the
   reward while keeping the oracle at 1.0. Render that project too and grade
   it — the first real-Friction calibration point.
3. Thunar service for xfdesktop launchers (t16 pending item) — otherwise
   agents reach the tutorial via xterm
   (`chromium --no-sandbox file:///root/tutorial/tutorial.mp4`).
4. Push the snapshot, set `current_t18`, first live run.
5. Decide whether t17 should be stripped to video-only the same way (it still
   ships transcript + sheets + page, at 360p).