Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Add the look-pick suite task, a pick only the rendered picture decides (part of #67)

Nguyen Xuan Anb81146cae63b
diff --git a/bench/agent-modeling/README.md b/bench/agent-modeling/README.md
index ca3cd491..ce77e2b4 100644
--- a/bench/agent-modeling/README.md
+++ b/bench/agent-modeling/README.md
@@ -321,3 +321,16 @@ Three arms, 3 runs per task, budget $1 per run, 0 tool errors unless noted. Call
Result (measured): tool calls do not drop. Sonnet needs 3 calls on the cabinet (create, one `scene_apply`, export) and 8 on the desk (the prompt asks for an inspect after each of three steps) in every arm. Haiku's means are 6.0 against 5.3 and 5.0 on the cabinet and 9.7 against 9.7 and 10.7 on the desk, inside the noise at 3 runs. With relations on and a plain start, no run wrote a relations field (0 of 12), so agents do not add them on their own. The relations-start arms show 3 of 3 for `relationCalls` only because `scene_create` carries the recipe the task hands over.
What did move is Haiku's pass rate on the cabinet: 3/3 with relations in the start recipe, 1/3 in both plain arms. The plain failures are the handles (0.01 m off their centre in three runs) and, once, the feet (12 of 21 checks). It is 3 runs, so treat it as a lead, not a result. The condition "tool calls drop on suite tasks with attached parts" stays unmet; Sonnet recomputes a 10 to 12 part scene in one call either way.
+
+## Look pick, a pick only the picture decides (2026-11-03, issue #67)
+
+`look-pick` starts from a still life (floor, wall, a slab with a jug, a loaf and a cloth, a low warm sun) graded with "dusk" in `effects`. The prompt offers two more grades, "golden" and "airy", all `exposure`, `contrast` and `temperature` numbers, and asks for the one whose picture reads as a warm late-afternoon photograph in mid-tones, neither dim and heavy nor pale and washed out. Only the effects block may change. The check `renderedLook` does not trace anything: it draws the exported recipe from its own camera in headless Chrome on SwiftShader (`look.mjs` `measureRenderedLook`) and reads the pixels: mean brightness 0.30 to 0.46, at most 1 per cent clipped and 2 per cent crushed pixels. Measured: dusk 0.25 (too dim), golden 0.35 (passes), airy 0.52 (too pale). Brightness is not a function of the typed numbers that can be worked out by hand (exposure, contrast and the tone curve interact), and the window was fixed before any agent ran. `tests/agent-modeling-suite.test.js` grades the reference, the dim and pale grades, a too-bright key light and a moved loaf.
+
+| Model | Branches | Pass | Calls (runs) | Errors | `branch` calls |
+| --- | --- | --- | --- | --- | --- |
+| Haiku | on | 3/3 | 9, 9, 9 | 0 | 0 |
+| Haiku | off | 3/3 | 9, 10, 9 | 0 | 0 |
+| Sonnet | on | 0/3 | 7, 7, 7 | 1 each | 5, 4, 5 |
+| Sonnet | off | 0/3 | 8, 7, 8 | 0 | 0 |
+
+Result (measured, 3 runs per cell): branches did not save calls where the task was passed. Haiku made 9 calls in five of six runs with no branch call, and passed with branches on and off. Sonnet used branches in all 3 runs with them on (4 to 5 calls) and finished in 7 calls against 7 to 8 without, but it failed all 6 runs: every run kept "airy", which measures 0.52 (too pale). A one-call lower count for runs that all fail is not a saving. The issue's calls condition is not met. What this shows: the check rejects the plausible wrong pick and Sonnet makes it, so the look judgement is the hard part here, and branches that render the three variants side by side did not lead Sonnet to the right one. What it does not show: whether a different brightness window or a prompt that gives a target picture would change either model's pick. The task was not changed after the runs.
diff --git a/bench/agent-modeling/check.mjs b/bench/agent-modeling/check.mjs
index 0878d0a8..95dff5e5 100644
--- a/bench/agent-modeling/check.mjs
+++ b/bench/agent-modeling/check.mjs
@@ -271,6 +271,18 @@ function checkOne(check, measures) {
}
case 'walkPath':
return checkWalkPath(check, measures);
+ case 'renderedLook': {
+ const look = measures.renderedLook;
+ if (!look) return { pass: false, detail: 'the recipe could not be drawn' };
+ const [lowest, highest] = check.brightness;
+ const problems = [];
+ if (look.meanBrightness < lowest) problems.push('too dim');
+ if (look.meanBrightness > highest) problems.push('too pale');
+ if (look.clippedShare > check.maxClipped) problems.push('blown-out whites');
+ if (look.crushedShare > check.maxCrushed) problems.push('crushed blacks');
+ const numbers = `mean brightness ${round(look.meanBrightness)}, ${round(look.clippedShare * 100)}% clipped, ${round(look.crushedShare * 100)}% crushed`;
+ return { pass: problems.length === 0, detail: problems.length ? `${numbers}: ${problems.join(', ')}` : numbers };
+ }
case 'litPainting':
return checkLitPainting(check, measures);
case 'shell':
@@ -406,6 +418,10 @@ export async function gradeRecipe(task, recipe) {
const results = task.checks.map(check => ({ kind: check.kind, label: check.label, pass: false, detail: `recipe failed: ${error.message}` }));
return { pass: false, passed: 0, total: results.length, results };
}
+ if (task.checks.some(check => check.kind === 'renderedLook')) {
+ const { measureRenderedLook } = await import('./look.mjs');
+ measures.renderedLook = await measureRenderedLook(recipe).catch(() => null);
+ }
const results = task.checks.map(check => ({ kind: check.kind, ...(check.label ? { label: check.label } : {}), ...checkOne(check, measures) }));
const passed = results.filter(result => result.pass).length;
return { pass: passed === results.length, passed, total: results.length, results };
diff --git a/bench/agent-modeling/dusk.mjs b/bench/agent-modeling/dusk.mjs
new file mode 100644
index 00000000..355a5cba
--- /dev/null
+++ b/bench/agent-modeling/dusk.mjs
@@ -0,0 +1,56 @@
+// A still life and three offered colour grades. The prompt describes the look in words (warm, mid-tones, readable)
+// and offers three grades. Which one meets the description only shows in the
+// picture: the check draws the exported recipe in headless Chrome and measures the pixels, so it grades the look that
+// came out and not the numbers the agent typed.
+
+export const DUSK_GRADES = {
+ dusk: { exposure: 1.1, contrast: 1.4, saturation: 1.0, temperature: 0.45 },
+ golden: { exposure: 1.4, contrast: 1.2, saturation: 1.0, temperature: 0.45 },
+ airy: { exposure: 2.5, contrast: 1.0, saturation: 1.0, temperature: 0.45 },
+};
+export const DUSK_START_GRADE = 'dusk';
+export const DUSK_BEST_GRADE = 'golden';
+
+export function duskRecipe(grade) {
+ const parts = [
+ { id: 'floor', geometry: 'block', material: 'oak', scale: [4, 0.05, 3], translation: [0, -0.025, 0] },
+ { id: 'wall', geometry: 'block', material: 'plaster', scale: [4, 2.2, 0.1], translation: [0, 1.1, -1.5] },
+ { id: 'table', geometry: 'block', material: 'oak', scale: [1.4, 0.06, 0.8], translation: [0, 0.72, -0.4] },
+ { id: 'jug', geometry: 'block', material: 'glaze', scale: [0.18, 0.3, 0.18], translation: [-0.35, 0.9, -0.4] },
+ { id: 'loaf', geometry: 'block', material: 'crust', scale: [0.4, 0.14, 0.2], translation: [0.2, 0.82, -0.3] },
+ { id: 'cloth', geometry: 'block', material: 'linen', scale: [0.5, 0.01, 0.5], translation: [0.2, 0.755, -0.3] },
+ ];
+ return {
+ format: '67js.scene', schemaVersion: 1,
+ geometries: [{ id: 'block', type: 'box', bevel: 0.01 }],
+ materials: [
+ { id: 'oak', color: [0.45, 0.3, 0.17] },
+ { id: 'plaster', color: [0.85, 0.82, 0.75] },
+ { id: 'glaze', color: [0.15, 0.4, 0.5] },
+ { id: 'crust', color: [0.62, 0.38, 0.15] },
+ { id: 'linen', color: [0.92, 0.9, 0.84] },
+ ],
+ nodes: parts,
+ camera: { target: [0, 0.85, -0.4], eye: [0, 1.5, 2.2], up: [0, 1, 0], fov: 40, near: 0.1, far: 50 },
+ environment: { environmentIntensity: 0.2, keyColor: [1, 0.7, 0.4], keyIntensity: 2.2, lightDirection: [-0.5, -0.45, -0.7] },
+ effects: { ...DUSK_GRADES[grade] },
+ };
+}
+
+export const DUSK_START = duskRecipe(DUSK_START_GRADE);
+export const DUSK_SOLUTION = duskRecipe(DUSK_BEST_GRADE);
+
+export const DUSK_PROMPT = `The still life below (a floor, a wall, a slab with a jug, a loaf and a cloth, lit by a low warm sun) is graded with "dusk" in
+effects: ${JSON.stringify(DUSK_GRADES.dusk)}. Two other grades are candidates: "golden" ${JSON.stringify(DUSK_GRADES.golden)} and "airy" ${JSON.stringify(DUSK_GRADES.airy)}.
+The picture from the recipe camera should read as a warm late-afternoon photograph in mid-tones: the whole slab and
+what stands on it easy to read, neither dim and heavy nor pale and washed out. Keep the grade whose picture fits that
+look. Change only the effects block, not the scene, camera or lights.`;
+
+// The window is measured on the picture (see look.mjs measureRenderedLook): mean brightness over the whole frame, and
+// the shares of clipped and crushed pixels. Dusk draws at about 0.25, golden at 0.35, airy at 0.52.
+export const DUSK_CHECKS = [
+ { kind: 'lint' },
+ { kind: 'parts', min: 6, max: 6 },
+ ...[['table', [0, 0.72, -0.4]], ['jug', [-0.35, 0.9, -0.4]], ['loaf', [0.2, 0.82, -0.3]]].map(([node, position]) => ({ kind: 'centreAt', node, position })),
+ { kind: 'renderedLook', brightness: [0.3, 0.46], maxClipped: 0.01, maxCrushed: 0.02 },
+];
diff --git a/bench/agent-modeling/look-harness.js b/bench/agent-modeling/look-harness.js
index 9b662f9c..35d910bf 100644
--- a/bench/agent-modeling/look-harness.js
+++ b/bench/agent-modeling/look-harness.js
@@ -4,7 +4,43 @@ import { agentEnvironmentMap, resolveAgentShadow } from '/src/agent-look.js';
import { agentGroundPlacement, createAgentGround } from '/src/agent-ground.js';
import { Renderer67 } from '/src/renderer.js';
-async function renderLookViews(recipe, views) {
+const CLIPPED_CHANNEL = 250;
+const CRUSHED_LUMA = 12;
+
+/** Mean brightness, warmth (mean red over mean blue), and the shares of clipped and crushed pixels of a drawn canvas. */
+function pixelStatistics(canvas) {
+ const copy = document.createElement('canvas');
+ copy.width = canvas.width;
+ copy.height = canvas.height;
+ const context = copy.getContext('2d');
+ context.drawImage(canvas, 0, 0);
+ const { data } = context.getImageData(0, 0, copy.width, copy.height);
+ const pixelCount = data.length / 4;
+ let lumaTotal = 0;
+ let redTotal = 0;
+ let blueTotal = 0;
+ let clipped = 0;
+ let crushed = 0;
+ for (let index = 0; index < data.length; index += 4) {
+ const red = data[index];
+ const green = data[index + 1];
+ const blue = data[index + 2];
+ const luma = 0.2126 * red + 0.7152 * green + 0.0722 * blue;
+ lumaTotal += luma;
+ redTotal += red;
+ blueTotal += blue;
+ if (red >= CLIPPED_CHANNEL && green >= CLIPPED_CHANNEL && blue >= CLIPPED_CHANNEL) clipped++;
+ if (luma <= CRUSHED_LUMA) crushed++;
+ }
+ return {
+ meanBrightness: lumaTotal / pixelCount / 255,
+ warmth: redTotal / Math.max(blueTotal, 1),
+ clippedShare: clipped / pixelCount,
+ crushedShare: crushed / pixelCount,
+ };
+}
+
+async function renderLookViews(recipe, views, measure = false) {
await loadAllAgentSceneModules();
if (needsMeshBooleans(recipe)) await loadMeshBooleans();
const scene = createAgentScene(recipe);
@@ -30,7 +66,9 @@ async function renderLookViews(recipe, views) {
renderer.render({ ...camera, environment, effects, exposure: effects.exposure, time: 0 });
const glError = renderer.context.getError();
if (glError !== 0) throw new Error(`${name} gave WebGL error ${glError}.`);
- images.push({ name, image: canvas.toDataURL('image/png').split(',')[1] });
+ images.push(measure
+ ? { name, statistics: pixelStatistics(canvas) }
+ : { name, image: canvas.toDataURL('image/png').split(',')[1] });
}
} finally {
renderer.dispose();
diff --git a/bench/agent-modeling/look.mjs b/bench/agent-modeling/look.mjs
index f3982512..ef3d9065 100644
--- a/bench/agent-modeling/look.mjs
+++ b/bench/agent-modeling/look.mjs
@@ -82,6 +82,14 @@ export async function withLookPage(callback, viewport = { width: IMAGE_SIZE, hei
}
}
+/** Draws a recipe once from its own camera and measures the picture: brightness, warmth, clipped and crushed shares. */
+export async function measureRenderedLook(recipe) {
+ return withLookPage(async page => {
+ const [view] = await page.evaluate(sceneRecipe => window.renderLookViews(sceneRecipe, [{ name: 'recipe' }], true), withoutPhysics(recipe));
+ return view.statistics;
+ });
+}
+
/** Draws jobs ([{ recipe, taskId, prefix, directory }]) from the task cameras; returns repository-relative PNG paths per job. */
export async function renderLookImages(jobs) {
return withLookPage(async page => {
diff --git a/bench/agent-modeling/references.mjs b/bench/agent-modeling/references.mjs
index 581a47d4..4fc666a5 100644
--- a/bench/agent-modeling/references.mjs
+++ b/bench/agent-modeling/references.mjs
@@ -9,6 +9,7 @@ import { walkerRecipe } from './walker.mjs';
import { KETTLE_RESIZED, KETTLE_RESIZED_PLAIN } from './kettle.mjs';
import { LAMP_SOLUTION } from './lamp.mjs';
import { GALLERY_SOLUTION } from './gallery.mjs';
+import { DUSK_SOLUTION } from './dusk.mjs';
import { COLONNADE_SOLUTION } from './colonnade.mjs';
import { DESK_FINAL, DESK_FINAL_PLAIN } from './desk.mjs';
import { CABINET_FINAL, CABINET_FINAL_PLAIN } from './cabinet.mjs';
@@ -170,6 +171,7 @@ export const REFERENCES = {
'best-of-three': LAMP_SOLUTION,
'render-pick': GALLERY_SOLUTION,
'light-pick-hard': COLONNADE_SOLUTION,
+ 'look-pick': DUSK_SOLUTION,
'kettle-resize': KETTLE_RESIZED,
'kettle-resize-plain': KETTLE_RESIZED_PLAIN,
'desk-resize': DESK_FINAL,
diff --git a/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-off.json b/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-off.json
new file mode 100644
index 00000000..ddd68e4b
--- /dev/null
+++ b/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-off.json
@@ -0,0 +1,196 @@
+{
+ "run": "2026-11-03-06-05-haiku-look-haiku-off",
+ "model": "claude-haiku-5-5",
+ "date": "2026-11-03T06:06:32.305Z",
+ "skill": false,
+ "branches": "off",
+ "relations": "on",
+ "runsPerTask": 3,
+ "passed": 3,
+ "tasks": 3,
+ "toolCalls": 28,
+ "costUsd": 0.08,
+ "byModel": {
+ "claude-haiku-5-5": {
+ "runs": 3,
+ "passed": 3,
+ "successRate": 1,
+ "toolCalls": 28,
+ "toolErrors": 0,
+ "inputTokens": 2067838,
+ "outputTokens": 8350,
+ "costUsd": 0.08,
+ "tasks": {
+ "look-pick": {
+ "runs": 3,
+ "passed": 3,
+ "successRate": 1,
+ "toolCalls": 28,
+ "toolErrors": 0,
+ "inputTokens": 2067838,
+ "outputTokens": 8350,
+ "costUsd": 0.08
+ }
+ }
+ }
+ },
+ "records": [
+ {
+ "task": "look-pick",
+ "attempt": 1,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 9,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/1/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/1/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/1/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 11,
+ "costUsd": 0.021732660000000004,
+ "inputTokens": 646859,
+ "outputTokens": 2775,
+ "wallSeconds": 26,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 2,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 10,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_capabilities": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/2/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/2/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/2/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 12,
+ "costUsd": 0.03413852,
+ "inputTokens": 705931,
+ "outputTokens": 2699,
+ "wallSeconds": 29,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 3,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 9,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/3/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/3/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-off/look/3/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 11,
+ "costUsd": 0.02202044,
+ "inputTokens": 715048,
+ "outputTokens": 2876,
+ "wallSeconds": 25,
+ "exitCode": 0,
+ "stopped": "success"
+ }
+ ]
+}
diff --git a/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-on.json b/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-on.json
new file mode 100644
index 00000000..3b9e890e
--- /dev/null
+++ b/bench/agent-modeling/results/2026-11-03-06-05-haiku-look-haiku-on.json
@@ -0,0 +1,195 @@
+{
+ "run": "2026-11-03-06-05-haiku-look-haiku-on",
+ "model": "claude-haiku-5-5",
+ "date": "2026-11-03T06:06:51.852Z",
+ "skill": false,
+ "branches": "on",
+ "relations": "on",
+ "runsPerTask": 3,
+ "passed": 3,
+ "tasks": 3,
+ "toolCalls": 27,
+ "costUsd": 0.17,
+ "byModel": {
+ "claude-haiku-5-5": {
+ "runs": 3,
+ "passed": 3,
+ "successRate": 1,
+ "toolCalls": 27,
+ "toolErrors": 0,
+ "inputTokens": 2199587,
+ "outputTokens": 10677,
+ "costUsd": 0.17,
+ "tasks": {
+ "look-pick": {
+ "runs": 3,
+ "passed": 3,
+ "successRate": 1,
+ "toolCalls": 27,
+ "toolErrors": 0,
+ "inputTokens": 2199587,
+ "outputTokens": 10677,
+ "costUsd": 0.17
+ }
+ }
+ }
+ },
+ "records": [
+ {
+ "task": "look-pick",
+ "attempt": 1,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 9,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/1/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/1/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/1/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 11,
+ "costUsd": 0.12799378,
+ "inputTokens": 799242,
+ "outputTokens": 2446,
+ "wallSeconds": 25,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 2,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 9,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/2/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/2/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/2/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 11,
+ "costUsd": 0.023825159999999995,
+ "inputTokens": 665139,
+ "outputTokens": 5367,
+ "wallSeconds": 38,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 3,
+ "pass": true,
+ "passed": 6,
+ "total": 6,
+ "failed": [],
+ "model": "claude-haiku-5-5",
+ "toolCalls": 9,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1,
+ "scene_dispose": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/3/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/3/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-haiku-look-haiku-on/look/3/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 11,
+ "costUsd": 0.022696530000000003,
+ "inputTokens": 735206,
+ "outputTokens": 2864,
+ "wallSeconds": 36,
+ "exitCode": 0,
+ "stopped": "success"
+ }
+ ]
+}
diff --git a/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-off.json b/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-off.json
new file mode 100644
index 00000000..a1254978
--- /dev/null
+++ b/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-off.json
@@ -0,0 +1,198 @@
+{
+ "run": "2026-11-03-06-05-sonnet-look-sonnet-off",
+ "model": "claude-sonnet-5-5",
+ "date": "2026-11-03T06:06:27.912Z",
+ "skill": false,
+ "branches": "off",
+ "relations": "on",
+ "runsPerTask": 3,
+ "passed": 0,
+ "tasks": 3,
+ "toolCalls": 23,
+ "costUsd": 1,
+ "byModel": {
+ "claude-sonnet-5-5": {
+ "runs": 3,
+ "passed": 0,
+ "successRate": 0,
+ "toolCalls": 23,
+ "toolErrors": 0,
+ "inputTokens": 1425227,
+ "outputTokens": 5291,
+ "costUsd": 1,
+ "tasks": {
+ "look-pick": {
+ "runs": 3,
+ "passed": 0,
+ "successRate": 0,
+ "toolCalls": 23,
+ "toolErrors": 0,
+ "inputTokens": 1425227,
+ "outputTokens": 5291,
+ "costUsd": 1
+ }
+ }
+ }
+ },
+ "records": [
+ {
+ "task": "look-pick",
+ "attempt": 1,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 8,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/1/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/1/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/1/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 10,
+ "costUsd": 0.3321928,
+ "inputTokens": 447579,
+ "outputTokens": 1738,
+ "wallSeconds": 24,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 2,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 7,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 2,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/2/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/2/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/2/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 9,
+ "costUsd": 0.3372634,
+ "inputTokens": 530004,
+ "outputTokens": 1757,
+ "wallSeconds": 24,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 3,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 8,
+ "toolErrors": 0,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_look": 3,
+ "scene_apply": 3,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 0,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/3/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/3/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-off/look/3/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 10,
+ "costUsd": 0.3329158,
+ "inputTokens": 447644,
+ "outputTokens": 1796,
+ "wallSeconds": 28,
+ "exitCode": 0,
+ "stopped": "success"
+ }
+ ]
+}
diff --git a/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-on.json b/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-on.json
new file mode 100644
index 00000000..6ba1a4e3
--- /dev/null
+++ b/bench/agent-modeling/results/2026-11-03-06-05-sonnet-look-sonnet-on.json
@@ -0,0 +1,201 @@
+{
+ "run": "2026-11-03-06-05-sonnet-look-sonnet-on",
+ "model": "claude-sonnet-5-5",
+ "date": "2026-11-03T06:06:33.602Z",
+ "skill": false,
+ "branches": "on",
+ "relations": "on",
+ "runsPerTask": 3,
+ "passed": 0,
+ "tasks": 3,
+ "toolCalls": 21,
+ "costUsd": 1.05,
+ "byModel": {
+ "claude-sonnet-5-5": {
+ "runs": 3,
+ "passed": 0,
+ "successRate": 0,
+ "toolCalls": 21,
+ "toolErrors": 3,
+ "inputTokens": 1863164,
+ "outputTokens": 5490,
+ "costUsd": 1.05,
+ "tasks": {
+ "look-pick": {
+ "runs": 3,
+ "passed": 0,
+ "successRate": 0,
+ "toolCalls": 21,
+ "toolErrors": 3,
+ "inputTokens": 1863164,
+ "outputTokens": 5490,
+ "costUsd": 1.05
+ }
+ }
+ }
+ },
+ "records": [
+ {
+ "task": "look-pick",
+ "attempt": 1,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 7,
+ "toolErrors": 1,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_apply": 2,
+ "scene_review": 1,
+ "scene_restore": 2,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 5,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/1/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/1/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/1/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 9,
+ "costUsd": 0.3501833,
+ "inputTokens": 621180,
+ "outputTokens": 1897,
+ "wallSeconds": 28,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 2,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 7,
+ "toolErrors": 1,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_apply": 2,
+ "scene_review": 1,
+ "scene_restore": 2,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 4,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/2/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/2/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/2/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 9,
+ "costUsd": 0.3489071,
+ "inputTokens": 620911,
+ "outputTokens": 1806,
+ "wallSeconds": 27,
+ "exitCode": 0,
+ "stopped": "success"
+ },
+ {
+ "task": "look-pick",
+ "attempt": 3,
+ "pass": false,
+ "passed": 5,
+ "total": 6,
+ "failed": [
+ "renderedLook: mean brightness 0.5208, 0% clipped, 0% crushed: too pale"
+ ],
+ "model": "claude-sonnet-5-5",
+ "toolCalls": 7,
+ "toolErrors": 1,
+ "toolsByName": {
+ "ToolSearch": 1,
+ "scene_create": 1,
+ "scene_apply": 2,
+ "scene_review": 1,
+ "scene_restore": 2,
+ "scene_export_recipe": 1
+ },
+ "branchCalls": 5,
+ "relationCalls": 0,
+ "pathQueries": 0,
+ "features": {
+ "geometryTypes": [
+ "box"
+ ],
+ "meshOperations": [],
+ "motionIk": [],
+ "motionTracks": 0
+ },
+ "look": {
+ "silhouette": {
+ "views": {
+ "front": 1,
+ "side": 1,
+ "three-quarter": 1
+ },
+ "mean": 1
+ },
+ "images": [
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/3/look-pick-front.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/3/look-pick-side.png",
+ "artifacts/agent-modeling/2026-11-03-06-05-sonnet-look-sonnet-on/look/3/look-pick-three-quarter.png"
+ ]
+ },
+ "turns": 9,
+ "costUsd": 0.3489127000000001,
+ "inputTokens": 621073,
+ "outputTokens": 1787,
+ "wallSeconds": 27,
+ "exitCode": 0,
+ "stopped": "success"
+ }
+ ]
+}
diff --git a/bench/agent-modeling/tasks.mjs b/bench/agent-modeling/tasks.mjs
index cece71ca..b286a257 100644
--- a/bench/agent-modeling/tasks.mjs
+++ b/bench/agent-modeling/tasks.mjs
@@ -7,6 +7,7 @@ import { DESK_START, DESK_START_PLAIN, DESK_CHECKS } from './desk.mjs';
import { CABINET_START, CABINET_START_PLAIN, CABINET_CHECKS } from './cabinet.mjs';
import { LAMP_START, LAMP_PROMPT, LAMP_CHECKS } from './lamp.mjs';
import { GALLERY_START, GALLERY_PROMPT, GALLERY_CHECKS } from './gallery.mjs';
+import { DUSK_START, DUSK_PROMPT, DUSK_CHECKS } from './dusk.mjs';
import { COLONNADE_START, COLONNADE_PROMPT, COLONNADE_CHECKS } from './colonnade.mjs';
import { TERRAIN_TASKS } from './terrain.mjs';
@@ -567,6 +568,7 @@ exported recipe is what gets graded.`,
{ id: 'best-of-three', startRecipe: LAMP_START, prompt: LAMP_PROMPT, checks: LAMP_CHECKS },
{ id: 'render-pick', startRecipe: GALLERY_START, prompt: GALLERY_PROMPT, checks: GALLERY_CHECKS },
{ id: 'light-pick-hard', startRecipe: COLONNADE_START, prompt: COLONNADE_PROMPT, checks: COLONNADE_CHECKS },
+ { id: 'look-pick', startRecipe: DUSK_START, prompt: DUSK_PROMPT, checks: DUSK_CHECKS },
...KETTLE_TASKS,
...DESK_TASKS,
...CABINET_TASKS,
diff --git a/changes/issue-67-look.md b/changes/issue-67-look.md
new file mode 100644
index 00000000..0b527abe
--- /dev/null
+++ b/changes/issue-67-look.md
@@ -0,0 +1 @@
+- Agent modeling suite: `look-pick` offers three colour grades and checks the picture the exported recipe draws (mean brightness, clipped and crushed shares), so the pick cannot be traced from numbers. Branches saved no calls on it (#67).
diff --git a/tests/agent-modeling-suite.test.js b/tests/agent-modeling-suite.test.js
index 442e128a..c7e333e2 100644
--- a/tests/agent-modeling-suite.test.js
+++ b/tests/agent-modeling-suite.test.js
@@ -5,6 +5,28 @@ import { TASKS, taskById, taskPrompt } from '../bench/agent-modeling/tasks.mjs';
import { REFERENCES } from '../bench/agent-modeling/references.mjs';
import { GALLERY_LIGHT_POSITIONS } from '../bench/agent-modeling/gallery.mjs';
import { COLONNADE_BEST_PLACE, COLONNADE_LIGHT_POSITIONS } from '../bench/agent-modeling/colonnade.mjs';
+import { DUSK_GRADES } from '../bench/agent-modeling/dusk.mjs';
+
+test('the look pick passes the golden grade and fails the dim, the pale and a moved scene', async () => {
+ const task = taskById('look-pick');
+ assert.deepEqual(failedKinds(await gradeRecipe(task, structuredClone(REFERENCES['look-pick']))), []);
+
+ for (const [name, reason] of [['dusk', /too dim/], ['airy', /too pale/]]) {
+ const wrongGrade = structuredClone(REFERENCES['look-pick']);
+ wrongGrade.effects = { ...DUSK_GRADES[name] };
+ const grade = await gradeRecipe(task, wrongGrade);
+ assert.deepEqual(failedKinds(grade), ['renderedLook'], name);
+ assert.match(grade.results.at(-1).detail, reason);
+ }
+
+ const brightLight = structuredClone(REFERENCES['look-pick']);
+ brightLight.environment.keyIntensity = 6;
+ assert.deepEqual(failedKinds(await gradeRecipe(task, brightLight)), ['renderedLook']);
+
+ const movedLoaf = structuredClone(REFERENCES['look-pick']);
+ movedLoaf.nodes.find(node => node.id === 'loaf').translation = [0.5, 0.82, -0.3];
+ assert.ok(failedKinds(await gradeRecipe(task, movedLoaf)).includes('centreAt'));
+});
const failedKinds = grade => grade.results.filter(result => !result.pass).map(result => result.label ?? result.kind);