# Test more than the happy path

Lesson 11 · Ship

Combine deterministic tests, adversarial play, and careful human judgment to find failures that matter.

## Outcomes

- Build a layered evaluation plan for gameplay and AI-assisted content.
- Create adversarial fixtures that exercise sequence breaks and boundary cases.
- Limit LLM judges to subjective questions with evidence and calibration.

Prerequisites: Lesson 10 and a deterministic offline playthrough.

Deliverable: A quality matrix, ten regression fixtures, and an adversarial playtest report.


## Match the grader to the question

Game quality is not one score. Use different graders for different properties:

| Property | Best first grader |
| --- | --- |
| no crash, valid save, reachable relay | deterministic code |
| objective understood | observed player behavior |
| line follows explicit tone rules | human review, optionally assisted |
| game is enjoyable | diverse players over repeated sessions |

An LLM judge is useful for sorting notes or applying a narrow rubric to text. It is a poor substitute for pathfinding, schema validation, or watching a player become lost.

## Attack the sequence

Happy-path testing repairs Moss, Ridge, Floodplain, then returns home. Adversarial QA tries the wrong order and wrong timing:

- return to the beacon before any repair;
- carry two cells to an already repaired relay;
- save during a repair animation, then reload;
- collect a cell while the inventory is full;
- approach every map boundary and obstruction;
- disconnect before optional dialogue returns;
- press confirm repeatedly during a transition;
- load an older save version.

Each fixture needs initial state, action sequence, expected invariant, and captured result. “Try to break it” is not reproducible.

Record the seed, save version, input device, build ID, and whether optional runtime dialogue was enabled. A failure that cannot be recreated is still worth noting, but it is not yet a reliable regression case.

## Keep simulation terms precise

A scripted bot that walks paths is not an LLM agent. A trained policy is not a model call on every step. Tools such as [Unity ML-Agents](https://docs.unity3d.com/Packages/com.unity.ml-agents@latest/) support training and simulation workflows, but a small project can learn plenty from deterministic path walkers, random input fuzzing, and recorded human runs. Choose the cheapest method that produces relevant evidence.

## Calibrate subjective judges

If a collaborator reviews dialogue tone, create examples that humans already labeled: clearly aligned, clearly off-tone, and ambiguous. Ask for cited rules and uncertainty, not just a number. Compare the judge against human labels on heldout fixtures. Repeat variable trials.

When judge and human disagree, inspect the rubric and evidence before changing either. Agreement is useful only when both are evaluating the intended property.

[Anthropic's eval guide](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) recommends evaluating outcomes and traces and separating tasks, trials, and graders. Use that structure without depending on a hosted evaluation platform: fixtures and results can be plain files in your repository.

## Failure modes and tradeoffs

**Judge monoculture** uses one model for every property. **Fixture leakage** tunes prompts against all test cases, leaving no heldout evidence. **Coverage theatre** counts thousands of random actions that never touch meaningful states. **Accessibility as checklist** marks text “readable” without testing size, contrast, timing, or alternate cues with people.

More tests cost time and can stabilize the wrong design. Prioritize the complete loop, irreversible state, common device/input differences, and failures that strand the player. Use [basic accessibility guidance](https://gameaccessibilityguidelines.com/basic/) to broaden scenarios, then validate with actual players.

## Build task: a layered test run

Create ten fixtures: four deterministic loop checks, three adversarial sequences, two accessibility observations, and one tone-review case. Hold out two from any prompt tuning. Run the suite on one known-good seed and one previously rejected seed. Convert every confirmed defect into a regression fixture.

```text
Review this Signal Garden test result using the supplied rubric.
First classify the property as deterministic, behavioral, or subjective.
If deterministic, do not judge it; name the code check required.
If subjective, cite the exact rubric rule and evidence, give uncertainty,
and request human review when evidence conflicts. Do not average unrelated issues.
```

## Completion evidence

The report must show fixture inputs, repeated trial results where behavior varies, grader type, and final human disposition. At least one adversarial case should exercise a sequence the happy path never reaches. The suite succeeds when it detects the deliberately rejected seed and the known invalid save without relying on prose judgment.



## Knowledge check

Which check should not be delegated to an LLM judge?

1. Whether every seeded map has a path from beacon to each relay.
2. Whether a repair line sounds consistent with the field-note tone.
3. Whether two human playtest notes describe the same confusion.

Answer: 1. Reachability is a deterministic property that code can verify exactly and cheaply.

## Further reading

- [Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) — Anthropic
- [Unity ML-Agents](https://docs.unity3d.com/Packages/com.unity.ml-agents@latest/) — Unity documentation
- [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines

Sources checked 1 December 2026. Signal Garden is an original teaching scenario.
