{"data":{"kind":"file","path":"README.md","version_id":"bmjvqqeojsw59bwsv26v2b0s","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":4518,"modified_at":"2026-11-26T09:43:10.230000","content_hash":"57e0ba8e1a123a01c17277939a61b3157a24a15aaec42d447282670808873995"},"entries":[],"content":"# letter-spirit\n\nAdvent of Evals, Day 4. After Hofstadter and McGraw's Letter Spirit: a font is drawn on a coarse grid of short strokes,\nand one or two hidden rules restyle a plain alphabet into a new font. The model sees a few example letters, works out\nthe rules, and draws 6 more letters in the same style, exactly.\n\n### Overview\n- **Environment ID**: `letter-spirit`\n- **Short description**: Style induction on gridfonts: infer 1-2 hidden rules from a stated grammar of 1,782, then draw 6 letters exactly.\n- **Tags**: `advent-of-evals`, `analogy`, `style`, `multi-turn`, `tool-use`, `eval`, `train`\n\n### Task\n- **Type**: multi-turn tool use\n- **The grid**: 3 columns by 7 rows of points; a letter is a set of the 56 short strokes between neighbouring points,\n  written as stroke numbers. The prompt lists the plain alphabet as stroke numbers and as pictures.\n- **The grammar** (stated in the prompt; the rules themselves are hidden): a rule picks strokes by kind (horizontal,\n  vertical, either diagonal, any diagonal, any stroke), where (anywhere, touching one row, or touching one column) and\n  ends (any, free end, no free end), then acts on them: delete, or move or copy one step up, down, left or right. That\n  is 6 × 11 × 3 × 9 = 1,782 rules. Two rules apply in turn.\n- **Tools**:\n  - `draw(strokes)`: renders a set of strokes as a picture, to check a draft. Free, and does not affect the score.\n  - `submit(answer)`: the answer, once: one `<letter id=\"g\">5,6,17</letter>` line per asked letter.\n- **Reward**: the share of the 6 asked letters whose stroke set equals the truth exactly. No credit for overlap.\n  The leaderboard metrics are pass@1 (the share of tries scoring 0.9 or more, i.e. all 6 letters right) and pass^4\n  (the share of tasks where all 4 tries pass).\n- **Budget**: the prompt tells the model it has at most 32,000 output tokens per turn, thinking included, and that it\n  is cut off there.\n\n### Modes (`levels`)\n| Level | Hidden rules | Examples |\n| --- | --- | --- |\n| 1 | 1 | named: each example shows the plain letter and its styled version |\n| 2 | 2, applied in turn | named |\n| 3 | 2, applied in turn | unlabeled: styled glyphs without their letters |\n\nEvery font the grammar can draw is enumerated (880 with one rule, 534,595 with up to two), so each task is built to\nhave exactly one answer: the examples are the fewest letters that pin the 6 asked letters down, and every task has a\ndecoy, a reading as simple as the truth that fits every example but one.\n\n### Datasets\nBy default (`frozen=True`) the environment serves the frozen Day 4 task set the leaderboard was scored on: 75 eval\ntasks (22 / 27 / 26 at levels 1 / 2 / 3) and 25 train tasks. An exact oracle scores 100 on every one. `frozen=False`\ngenerates fresh tasks from disjoint seed streams (`num_train`, `num_eval`, `levels`) for training at scale. Tasks are\nseeded and deterministic.\n\n### Quickstart\n```bash\nprime env install brendanhogan/letter-spirit\nvf-eval letter-spirit -p prime -m anthropic/claude-opus-5.5 -a '{\"levels\": [2]}' -n 5 -r 1 -t 32000 -S '{\"reasoning_effort\": \"medium\"}'\n```\n\nTo reproduce the leaderboard, run all 75 eval tasks with the budget every model got: reasoning effort `medium`,\n32,000 output tokens per turn, 4 tries per task. The leaderboard numbers are pass@1 (the share of the 300 tries scoring\n0.9 or more) and pass^4 (the share of the 75 tasks where all 4 tries pass).\n\n```bash\nvf-eval letter-spirit -p prime -m <model> -n 75 -r 4 -t 32000 -S '{\"reasoning_effort\": \"medium\"}'\n```\n\n### Arguments\n| Arg | Type | Default | Description |\n| --- | ---- | ------- | ----------- |\n| `levels` | int or list[int] | `[1, 2, 3]` | Which levels to serve (frozen) or generate |\n| `frozen` | bool | `true` | Serve the frozen leaderboard tasks; `false` generates fresh tasks |\n| `num_train` / `num_eval` | int | `100` / `30` | Tasks to generate when `frozen=false` |\n| `max_turns` | int | `24` | Turn limit |\n\n### Metrics\n| Metric | Meaning |\n| ------ | ------- |\n| `reward` / `exact_reward` | Share of the 6 asked letters drawn exactly (0-1) |\n| `pass_metric` | 1 if the score is ≥ 0.9 (all 6 letters); its mean is the leaderboard's pass@1 |\n| `draws_used` | `draw` calls spent |\n| `submitted_metric` | 1 if the model gave an answer |\n\n### Versions\n| Version | Change |\n| ------- | ------ |\n| 1.0.0 | First release: frozen v3 task set (grammar of 1,782 rules), oracle-checked. The prompt states the 32,000-output-token-per-turn cap; leaderboard at reasoning effort `medium`, pass@1 and pass^4. |\n","encoding":"utf-8","truncated":false,"total_bytes":4518},"status":null}