t3-code-android-nightly/evals/workflow-authoring
Julius Marminge 8987ba39d4
feat(workflows): a run can declare its subject and be found by it (#42517)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 11:33:39 -08:00
..
fixtures feat(server): durable workflows (#38882) 2026-11-22 17:50:18 -08:00
cases.ts feat(server): durable workflows (#38882) 2026-11-22 17:50:18 -08:00
grade.ts feat(workflows): a run can declare its subject and be found by it (#42517) 2026-11-25 11:33:39 -08:00
README.md feat(server): durable workflows (#38882) 2026-11-22 17:50:18 -08:00
run.test.ts feat(server): durable workflows (#38882) 2026-11-22 17:50:18 -08:00
run.ts feat(server): durable workflows (#38882) 2026-11-22 17:50:18 -08:00

Workflow authoring

Checks that a model can write a working workflow definitions file from the t3-workflows skill alone. Run it when the skill, the author API, or the way the server loads a definitions file changes.

The model gets the skill's body and one task, and replies with a file. The grader loads that file with the server's loader, registers it in the real engine on a throwaway database, and drives it with a stand-in for agents: it starts runs, delivers webhooks, answers questions, restarts the engine, and checks how each run ends. Nothing is judged by reading the code.

Run

cd evals
pnpm workflow-authoring --out runs/baseline
pnpm workflow-authoring --out runs/shorter --skill /path/to/variant.md --baseline runs/baseline/results.ndjson
  • Models go through the vibeproxy CLIProxyAPI provider in ~/.codex/config.toml. Default models: gpt-6.1-terra and gpt-6-luna. Pass --model once per model to change them.
  • Flags: --skill <file> (a variant of the skill), --case <id> (repeatable), --samples <n> (default 3), --reasoning <level> (default low), --baseline <results.ndjson>.
  • Each answer is saved next to the results as <case>.<model>.<sample>.ts, and summary.md lists every problem the grader found.
  • Cost: proxy quota only, about 5,000 tokens per sample.

The answers are code the grader runs. They come from a model that saw only the skill and the task, but run this on a machine where that is acceptable.

Add a case

Add an entry to cases.ts: the task as a person would give it, and one or more scenarios. A scenario says what the stand-in agent answers and returns the problems it finds after driving the file's workflows; none is a pass. Put a reference answer in fixtures/<case id>.ts, which run.test.ts requires to pass, and a wrong answer when the case exists to catch one mistake.