# t20-blender-donut-40 — the Beginner Blender 4.0 donut series (14 parts), graded against a real learner's saves Sid (2026-09-09): "I found a user that did the task and has .blend files … make the task with these videos instead, then retrieve the solution (thecrazymage/Blender-Donut-Tutorial, up to Donut_13). These should be used as the verifier … with a threshold … we do something similar on the refresh-platform." So this task swaps the video series for Blender Guru's **Beginner Blender 4.0 Tutorial** (playlist `PLjEaoINr3zgEPv5y--4MKpciLaoQYZB1Z`, 14 parts, 5 h 17 min), runs **Blender 4.0.2**, and grades the agent's file against the learner's `Donut_13.blend` the way refresh-platform's Blender verifiers grade against a hidden expert scene: structural facts with tolerance bands plus a render-pair comparison. Everything else — the captioned-video-only world, the no-code Blender, the launcher, computer-1 — is t17/t18's, see [`../t17-blender-donut-tutorial/README.md`](../t17-blender-donut-tutorial/README.md). ``` suite_tasks/t20-blender-donut-40/ instruction.md 14 parts; assets in ~/Downloads; render frame 1 to /root/donut/render.png task.toml 14 h agent budget, 30 min verifier (two Cycles renders inside) RUBRIC.md the bands, the calibration table, the learner's quirks environment/ Dockerfile Blender 4.0.2 (sha256 5583a558…) + 14 captioned videos + the learner's assets nocode-patch.py handles 4.0's console_python.py / 5.0's _console_python.py tutorial/index.html 14 parts with the videos' chapter marks (annotated where offline differs) assets/QuartziteDenali002, GlasswareWhiskeySet002, PlantAgave002 the Poliigon maps/models the learner used tests/ reference/Donut_13.blend hidden reference = oracle (70 MB; the tests dir is uploaded at grading time) reference/frame0001.png frame 1 of the learner's final render (the oracle's render.png) reference/inv1..14.json per-part inventories of all the learner's saves (tools/inventory.py) inspect_blend.py semantic dump (t18's + compositor/world/animation/scene facts) render_view.py render one .blend from its own camera at 480x270, 24 samples; numpy compare test_outputs.py 13 milestone blocks (0.90) + render pair (0.10) solution/solve.sh copies Donut_13.blend + assets to /root/donut, frame0001.png as render.png tools/inventory.py, fetch-tutorial.sh ``` ## How the reference is used (the "threshold" part) Refresh-platform's Blender graders (`packages/blender-verifiers`, `infra/clone-images/blender/verify-blender.py`, `docs/v1/reference-render-protocol.md`) never compare a candidate to the expert scene exactly: they read structural facts with per-check tolerances, render both sides inside the verifier from one published camera manifest with identical settings, and turn image similarity into a score through a band; RLVR tasks keep the continuous score (`pass_policy: raw`). t19 mirrors that at harbor scale: - **Bands, not equality.** `Donut_1..13` show what each part leaves behind (see the diff table in RUBRIC.md). Every count is graded with `band(value, lo, hi)` around the learner's value (1 inside, linear to 0 at half / double), every setting as a boolean, and objects are found by content (torus topology, "sits on the donut", tiny meshes, big flat mesh) before names. Sprinkle scatter, sculpt strokes and paint — the randomisers Sid mentioned — never enter the structural layer. - **Render pair.** `render_view.py` renders the candidate and `Donut_13.blend` from their own cameras at frame 1 with identical Cycles CPU settings (compositor off so Glare doesn't dominate), re-linking textures from `~/Downloads`; the numpy similarity (colour 0.35, edges 0.30, histogram 0.35) is mapped 0.20 → 0, 0.75 → 1. Calibration: reference vs the learner's own 1080p frame **0.79**; `Donut_9` (same objects, different camera) vs `Donut_13` **0.23**; identical **1.00**. - **Continuous reward**, no promotion: 0.90 structural + 0.10 render pair. | candidate | structural | note | |---|---|---| | no file | 0.000 | no-op floor | | Donut_2 | 0.10 | torus only | | Donut_6 | 0.40 | through geometry nodes | | Donut_9 | 0.61 | through layout | | Donut_13 (oracle) | 0.88 + render pair 0.10 → **≈ 0.98** | p13 loses only the render.png locally | Differences from refresh-platform worth knowing: the hidden reference lives in `tests/` (harbor uploads it into the same sandbox after the agent is done; there is no separate verifier sandbox), the camera is each scene's own (the learner's framing is not published to the agent), and the judge is deterministic only — no LLM visual judge. ## Offline substitutions the instruction declares | video | offline | |---|---| | Poliigon add-on + marble download (Part 5) | maps in `~/Downloads/QuartziteDenali002`, connect Image Texture nodes by hand | | Poliigon plate / utensils models (Parts 9–10) | model the plate (as the learner did); `File > Append` the whiskey set / agave `.blend` from `~/Downloads` | | GPU Cycles (Part 8) | CPU | | Render the animation (Part 13) | render frame 1 as a still to `/root/donut/render.png` | ## Running ```bash docker buildx build --platform linux/amd64 --load -t refresh-blender-donut:t20 suite_tasks/t20-blender-donut-40/environment docker run --rm --platform linux/amd64 -v $PWD/suite_tasks/t20-blender-donut-40/tests:/tests:ro \ -v $PWD/suite_tasks/t20-blender-donut-40/solution:/solution:ro refresh-blender-donut:t20 \ bash -c 'bash /solution/solve.sh && bash /tests/test.sh; cat /logs/verifier/reward.txt' DOCKER_HOST=unix://$HOME/.colima/default/docker.sock daytona snapshot push refresh-blender-donut:t20 \ --name blender-donut40-t19- -e /usr/local/bin/start-blender-task --cpu 4 --memory 8 --disk 10 suite_tasks/t20-blender-donut-40/run_until_complete.sh claude-fable-5-1 3 t20-cu-fable51- suite_tasks/t20-blender-donut-40/run_until_complete.sh claude-opus-5 1 t20-cu-opus5- ``` ## Status - 2026-09-09 10:15 PDT: image 2.18 GB; snapshot `blender-donut40-t19-20260909` (the superseded t18 snapshot was deleted for the 30-snapshot quota). Daytona validation: no-op 0.000, Donut_6 0.386, Donut_9 0.610, oracle **1.000** (render pair 1.00). Blender 4.0.2 will not start under qemu on the Mac (`ArchError: cpu MHz`), so prefs are baked by the launcher at container start and all in-image validation ran on Daytona (`/tmp/t20val.py`). - Runs launched 2026-09-09: fable-5.1 (`t20-cu-fable51-0909`, up to 3 attempts) and opus-5 (`t20-cu-opus5-0909`, 1 attempt), 1280×900, 14 h budget. ~11:00 PDT both trials died together to a Daytona API 502 (`DaytonaBadGatewayError` / `RuntimeRequestError: Failed to execute session command`) at steps 160/190 and were restarted from scratch by harbor's `--max-retries 4` — an infrastructure blip, not an agent or image fault. 15:20 PDT: fable a1 died `runtime_session_dead` at step 967 (Part 10/11, the moment it switched the viewport to Cycles Rendered shading); graded 0.623 on the partial state. opus a1's trajectory shows Blender itself crashing at the same stage ("Blender did exit … rename the texture folder so Blender can load lightly"). Cause: the learner's marble maps are 8K PNGs (three of them, >1 GB each once Cycles unpacks them) plus Cycles on all four cores starving the Daytona daemon. Fix (image `refresh-blender-donut:t20b`): the Quartzite maps downscaled to 2K and the agave maps to 2K under the SAME file names, and `nocode_guard` pins `render.threads` to nproc−1. Attempts after the running ones use the new snapshot `blender-donut40-t20-20260909b` (the t17 snapshot was deleted for quota; re-pushable from its image). fable relaunched 15:40 PDT as `t20d40-cu-fable51-0909b` (3 attempts); opus a1 continues on the old snapshot since its agent recovered. First-round uploads (labelled as env-fault runs): opus a1 0.458 , fable a1 0.623 . Upload tip (from refresh-suite-d7): trajectories-sh 1.18.9 defaults to 256 parallel connections and trips Supabase 429s on ~1000-file jobs; use `TRAJECTORIES_CLI_CONCURRENCY=2 TRAJECTORIES_CLI_BATCH_SIZE=10`. 18:30 PDT: opus b died the same way at ~660 steps (`Failed to execute session command`, no OOM in the cgroup poller — the Daytona toolbox daemon is starved, not the memory). Image `t20c` / snapshot `blender-donut40-t20-20260909c`: Blender runs under `nice -n 10` (Thunar `nice 5`) so the daemon wins the scheduler, and the runner passes `--ak runtime_request_timeout_sec=300 --ak runtime_action_timeout_sec=120`. opus relaunched on it as `t20d40-cu-opus5-0909c`; fable b (508+ steps, healthy) left running on snapshot b. 22:02 PDT: fable b a1 OOM-killed at its final 1080p render (cgroup 8.06 GB, `oom_kill 1`), graded **0.7875** on the partial state — Parts 1–12 done — (see uploads below). Root cause found with a per-minute cgroup poller: **harbor's computer-1 leaks one idle `/usr/bin/bash` (PPID 1) per action** — 3,491 after 2.5 h in the opus sandbox, ~1 GB/h — which is what fills the 8 GB and stalls the Daytona daemon (every `runtime_session_dead` today). Image `t20g` / snapshot `blender-donut40-t20-20260909g`: the launcher watchdog reaps bare `/usr/bin/bash` shells with PPID 1 and no children seen on two consecutive minutes with **SIGKILL** (interactive bash ignores SIGTERM; the sandbox's process clock is bogus so no age rule works), plus Cycles render-memory hygiene in the guard (tile 512, 2K texture limit, no persistent data), Chromium `--renderer-process-limit=2`, and the instruction asks for the final render at 50 % resolution, ≤ 128 samples. Reaping the live opus sandbox by hand dropped it from 3,491 shells / 5.5 GB to 27 / 2.1 GB with no effect on the agent. fable relaunched on g as `t20d40-cu-fable51-0909g` (22:29 PDT); opus c kept running with an external reaper every 10 min. Same finding written up by refresh-suite-d7 in suite_tasks/daytona/README.md. Results below as they land.