Browse documentation

Portable .tine files default to v5 (since 0.42). --for-legacy writes v4. The .tine/ repository format is v3. tine evidence export writes v4. Formats and protocols.

Docs target stable release v0.76.0.Stable vs main checked 2026-11-21

Reference · v0.76.0

Evals and datasets

From the pinned CLI source. Read upstream.

Current format policy: Portable .tine files default to v5 (since 0.42). --for-legacy writes v4. The .tine/ repository format is v3. tine evidence export writes v4.

Evals and datasets (0.45)

tine dataset add DATASET.jsonl --from-run RUN [--repo PATH] [--id ID] [--expected TEXT] [--tombstones FILE]
tine dataset import SRC --out DATASET.jsonl [--format jsonl|hf] [--split S]
                    [--id-field F] [--input-field F] [--expected-field F]
tine dataset export DATASET.jsonl --out PATH [--format jsonl|hf] [--split S]
tine dataset show DATASET.jsonl
tine eval run DATASET.jsonl --scorer SPEC --key KEY --out DIR [--threshold T]
              [--outputs FILE.jsonl] [--run RUN] [--judge-prompt FILE] [--judge-rubric FILE]
              [--created-at TIME]
              [--holdout DIR [--repo PATH]]
tine eval verify DIR [--pubkey PUB]
tine eval compare A B [--pubkey PUB] [--exit-code]
tine eval ci --key KEY [--config TOML] [--out DIR] [--repo PATH] [--created-at TIME]

A dataset is JSON Lines, one item per line: id and input are required, expected, output, run and metadata optional. dataset add --from-run appends the run's prompt as input, its last answer as output and the run itself as run. --format hf reads or writes a local Hugging Face folder of JSON Lines splits (<split>.jsonl or data/<split>*.jsonl, with dataset_info.json and a dataset card on export); nothing is downloaded and Parquet is not read.

Sealed holdouts (0.60, docs/HOLDOUTS.md):

tine dataset seal DATASET.jsonl --out DIR --name NAME --max-unseals 4 --max-items 50 --key KEY --seal-key FILE
tine dataset unseal DIR --out FILE.jsonl --run RUN --why TEXT --key KEY --seal-key FILE
tine dataset exposure DIR [--chain OLDER...] [--repo PATH]

seal also takes --rotate-from OLD and --repo PATH; unseal takes --purpose eval|other, --items I,J, --exceed-budget and --repo PATH.

seal needs a dataset-role key and unseal an eval-role key from the owner-pinned trust bundle. unseal writes a signed access record before it releases items and enforces the holdout's exposure budget; tine promote --sealed-holdout DIR refuses an exposed holdout (promote.holdout-exposed; holdouts under REPO/.tine/holdouts/ are checked without the flag), tine promote --canary-lengths FILE refuses a failed canary check (promote.canary-failed; lengths whose run is not the candidate, promote.canary-run-mismatch), and tine eval run --holdout DIR refuses runs that touched it (eval.holdout-touched). --json prints tine-cli-holdout-1.

eval run scores each item's output (or the --outputs row with the same id) and signs one tine-eval-verdict/1 per item (SPEC 4.12) with the Ed25519 --key. Scorers: exact; regex:PATTERN; json-schema:FILE (a subset: type, enum, const, required, properties, additionalProperties, items, minimum, maximum, minLength, maxLength); python:MODULE:FUNC or python:FILE.py:FUNC, called as FUNC(output, item) and returning a bool, a number in 0..1 or {"score": n}; and llm-judge:PROVIDER[:MODEL], whose prompt and reply are saved as their own run (tagged eval-judge) that the verdict names as judge_run. The judge must end its reply with SCORE: <0..1>. An item passes when its score is at least --threshold (default 1). Every item must name the run it scores (run, or --run).

The eval folder holds verdicts.jsonl and an unsigned eval.json summary (tine-eval/1: eval id, dataset digest, scorer and version, counts, mean score). eval verify checks every verdict and that the summary matches them; every verdict's eval id must be recomputed from its own dataset, scorer, threshold, time and signer (eval.id-mismatch), so one eval has one signer, and no item may repeat (eval.duplicate-item). Without --pubkey that signer is trusted on first use. eval compare verifies both evals, then lists regressed (pass to fail), fixed, changed scores, only_a/only_b items and the mean-score delta; --exit-code exits 1 on any regression. A failed verification exits 4. tine-verify.pyz DIR|verdicts.jsonl and opentine-verify verdicts.jsonl check the same verdicts without opentine installed.

eval ci (0.47) runs every [[eval]] table of .tine/evals.toml (or --config) with eval run into --out (default .tine/evals), signed with the one --key, and exits 1 unless every eval's passed / items reaches its min_pass_rate (default 1; [defaults] sets threshold and min_pass_rate for all; any other key, there or at the top level, is refused). dataset and outputs are relative paths inside the repository (no .., no absolute or drive paths). Each table takes name, dataset and scorer, and optionally outputs, run, threshold, min_pass_rate and judge_prompt: a registered prompt (NAME@LABEL) whose {{input}}, {{expected}} and {{output}} become the llm-judge template, so every verdict's scorer_version pins its bytes and the output names its digest. An unknown key is refused before anything runs. The same command runs locally, in CI (the gate action's evals-config input) or on a self-hosted runner. --json follows tine-cli-eval-ci-1.