Repository navigation
Design eval
Does the design that Herd's agent writes before any code pick the right model of the problem? The design eval answers that without building anything:
- A Herd session designs the task and is stopped at a fixed point.
- A variant step runs: questions from a fresh challenger, or a second look.
- A judge labels each design before and after the step.
On the supermarket task, the decision is where a product is picked from. shelf is right: the program picks a reachable side of the shelf itself. cell and fixed-side are wrong: they push that choice onto the caller, or always take the first neighbour, and lose stores. The judge agrees with hand labels on 9 of 10 designs.
| arm | designer | step | right | unstated | wrong |
|---|---|---|---|---|---|
| control | Haiku | plain second look after red | 2 | 1 | 3 |
| control-specific | Haiku | "be specific" second look after red | 0 | 0 | 6 |
| seven challenger arms (generic, before the attacks, design-aware, limit-cost, ADHD, form-vs-quote) | Haiku | a fresh challenger's questions | 0 to 1 each | ||
| be specific in the skill, no second look | Sonnet | none (design at red) | 0 | 6 | 0 |
| control | Sonnet | plain second look after red | 4 | 2 | 0 |
| control-specific | Sonnet | "be specific" second look after red | 6 | 0 | 0 |
| specific-before-attacks | Sonnet | "be specific" second look before the attacks | 6 | 0 | 0 |
The "be specific" second look asks the designer to challenge its own understanding of the request and its business context, write ANSWERS.md, and state for every criterion and input form exactly what the program accepts, does and refuses, so that no choice is left unstated.
What it shows:
- Questions from a fresh challenger did not help. No variant beat the plain second look, and some pushed undecided designs into wrong ones.
- "Be specific" helps a strong designer. On Haiku, it ends indecision, but always in a wrong model.
- Sonnet needs the second look. It leaves the choice open at first. A sentence in the skill alone did not change that; the second look does.
End to end, with Sonnet designing and Haiku building (3 runs, S, M and L stores): 39.3 of 40 stores valid, against 38.0 for Haiku alone, and no pick-cell losses. The design phase costs about $0.5 to $0.7 more per run (estimates at list prices). Since Herd 0.14.0 (issue #102) this is the design step: Sonnet designs and Haiku builds by default ([models] in Settings). With 6 runs per arm the differences are not statistically significant: read them as direction, not proof.