Skip to main content

Run output-quality evaluations

The command creates a new numbered iteration and never overwrites a prior run. See Portable evaluations for the artifact layout and review rules. Eval files are validated before a workspace is created or an agent is invoked, including optional file lists and mechanical assertions. Grading responses must contain boolean pass/fail results and evidence; comparison winners must be A, B, or tie. Malformed model responses stop the evaluation instead of producing a completed benchmark from unvalidated values.

Generate routing cases

Add --auto-synthetic for a cold-start skill or --blend to combine observed evidence with synthetic gap cases. When --skill-path is present, SelfTune writes the portable package copy under evals/ and keeps a compatibility mirror for existing local workflows.

Run mechanical assertions

Use --generate to draft assertions and --run-agent when the test requires a live agent transcript. Test files are validated before execution. Malformed assertion fields, tags, or test metadata reject the file with a warning; SelfTune does not run a partial suite. Portable eval cases without selftune_assertions are not mechanical tests and are skipped.

Analysis commands

Corpus imports validate optional metadata independently. Invalid category or difficulty values use general or medium; malformed optional skill, tool, and tag fields are omitted without discarding valid neighboring metadata. Run selftune eval <subcommand> --help for the current strict flag surface.