Every field of tasks/<task>/spec.yaml, what it is for, and the rules modelstill spec validate checks.
A task spec is one YAML file, by convention tasks/<task>/spec.yaml. Unknown keys are rejected at every level.
task : extract-technologies
version : 1
instruction : prompts/system.md
output_schema : schemas/out.json
requirements :
- id : correct_technologies
priority : p0
type : set_f1
instruction : Every named technology in the posting, merged by canonical product, and nothing else.
- id : correct_strength
priority : p1
type : label
instruction : Strength is required, preferred or mentioned, as the posting states it.
labelling :
teachers :
- { model : <teacher-a> , family : <family-a> }
- { model : <teacher-b> , family : <family-b> }
disagreement : human_queue
eval :
judge : { model : <judge> , family : <family-c> }
golden_set : data/gold.jsonl
gate :
metric : correct_technologies
max_regression : 0.02
max_flip_rate : 0.01
max_cost_ratio : 0.60
max_p95_latency_ms : 4000
train :
base : Qwen/Qwen3-1.7B
method : lora
lora_r : 16
seeds : [ 1 , 2 , 3 ]
serve :
litellm_alias : extract-technologies
fallback : extract-technologies-cloud
target_error : 0.05
monitor :
canary : data/canary.jsonl
replay_frac : 0.3
Field Type Rule taskstring lowercase slug: a letter, then letters, digits, - and _ versioninteger at least 1 instructionpath the system prompt, relative to the spec output_schemapath the JSON schema of an answer, relative to the spec requirementslist at least one labelling, eval, train, serve, monitormappings all required
Field Values ida name; the gate's metric must be one of them priorityp0, p1, p2, p3typeexact, set_f1, pass_fail, labelinstructionwhat a correct answer means, in one sentence
The requirement type picks the default agreement metric for modelstill swap: set_f1 for set_f1, JSON equality for the others.
Field Values teachersat least two {model, family} entries disagreementhuman_queue (default) or drop
Field Meaning judge{model, family}; the family must differ from every teacher's familygolden_setwhere the gold set lives gate.metrica requirement id gate.lower_ci_minoptional, 0 to 1: the run's interval lower bound must reach it gate.max_regressionoptional, 0 to 1: the paired difference's lower bound must be at least minus this gate.max_flip_rate0 to 1 gate.max_cost_ratioabove 0 gate.max_p95_latency_msabove 0
A gate needs lower_ci_min, max_regression or both.
Field Values basethe base model id methodlora, full or classifierlora_roptional, above 0 (16 when unset) seedsat least one; one training run per seed
Field Meaning litellm_aliasthe LiteLLM model_name callers send today fallbackthe deployment that answers when the plugin fails target_errorbetween 0 and 1: the error rate the deferral threshold is calibrated for
Field Meaning canarya benchmark of known answers replay_frac0 to 1
modelstill spec validate tasks/ < tas k > /spec.yaml
every field above, with its type and range, and no unknown keys;
the judge's family is not a teacher family;
the gate's metric is a requirement id;
the gate has at least one quality rule.
modelstill spec hash tasks/ < tas k > /spec.yaml
SHA-256 of the parsed spec plus the text of the instruction and output-schema files. Editing the prompt changes the hash even if the YAML did not change. modelstill push task registers the spec with this hash and the git commit, and training artifacts carry it in their path.