Lessons and cascade
Agents learn from fixes that passed a hidden test. Cheap model first, strong model only when it fails.
Lessons
When a task fails in round 1 and passes in round 2, assay saves what changed as a lesson. Only fixes that a hidden test verified are saved.
Next time a task looks similar, the matching lessons go into the agent's prompt. Hidden test paths are stripped first, so a lesson never leaks the grader.
On a retry, the agent also gets the first point where its output went wrong, not the whole log.
Cascade
json{ "cascade": { "fast": "claude-haiku-5-5", "strong": "claude-sonnet-5" } }Round 1 runs on fast. A task that fails moves to strong for round 2. Tasks that pass never pay for the strong model.
Turn it on
json{ "lessons": true }Or a path: "lessons": "lessons.jsonl". Or set ASSAY_LESSONS=1.