OpenTine v0.65.0: Query and experiments
Release notes reproduced from the pinned changelog. Source.
tine query "SELECT ..." [--repo PATH]runs one read-only SQL statement over a derived SQLite index at.tine/query/index.sqlite:runs,steps, acostsview,monitor_verdicts,oversight_decisions,lineage_variants,lineage_edgesandevals. Every row carries theoidit was read from; the index is labelled non-authoritative in itsmetatable, in--jsonoutput and in the text header, and deleting it loses nothing. Built on the standard library'ssqlite3; no new dependency.- Only reading is allowed: the index is opened read-only with
PRAGMA query_only, and an authorizer refuses writes, schema changes,ATTACH, everyPRAGMA, transactions andload_extension(query.refused). Work is bounded by a count of SQLite steps (--max-steps,query.too-many-steps), not a clock;--limitcaps the rows returned. tine query SQL --verify [--strict]goes back to the object or record behind each returned row and marks itverified(intact, consistent with the row, Ed25519 signature valid, signer holds a role in the owner-pinned key roles),unverified(intact but unsigned, or signer without a pinned role) orfailed(missing, changed, bad signature, or the index row disagrees with the source).failedexits 1;unverifiedis advisory unless--strict.tine query index [--rebuild] [--check] [--evals DIR]...reports or rebuilds the index. Staleness compares a stat fingerprint of the object store (then the object ids, so a repack is not stale), the lineage folder and the remembered eval folders; a stale index answers markedstale, and--refreshrebuilds it first. Large rebuilds read objects in worker processes.scripts/bench/query_index.pytimes a synthetic one-million-run index and typical aggregate queries; results are in docs/bench/0.65-query.md.--jsonprintstine-cli-query/1. See docs/QUERY.md.tine query --verifyasks for the role a table needs (scorerfor evals,monitorfor monitor verdicts,approverfor oversight decisions; never anoptimizerkey), checks a step'srun/seqand an eval'srunagainst their objects, and fails eval sources outside the indexed folders.tine queryrefuses values over 1,000,000 bytes (query.too-large) and repeated result column names (query.duplicate-column).- The query index also holds experiment manifests (
experiments,experiment_results) and reproduce reports (reproductions), read from.tine/experiments/and eachtine query index --experiments DIR(remembered);--verifyre-checks them against their files, and a changed experiment file makes the index stale. - Experiment manifests:
opentine.experiment-manifest/1is a signed file convention recording hypothesis, code and container digests, model id and version, sampling parameters, seeds, data commitments, compute spend, result rows that reference signedtine-eval-verdict/1files by digest and path, and the stated conclusion.tine experiment sign DRAFT --key KEYsigns a draft. tine experiment check REPORT [--manifest M]recomputes a reproduce report instead of trusting its signature alone: a row whose delta or agree does not follow from its scores and tolerance, unlisted score drift, a selection that is not the seeded sample of M, or a field M leaves nondeterministic but the report omits failsfail:experiment.report-mismatch; an optimizer-signed report failsfail:experiment.key-separation. A reproducer-chosen seed or tolerance and--repeats 1are advisories. Theverdictrunner refuses an unverified or swapped verdict file.tine experiment check FILE [--repo PATH] [--strict]failsfail:experiment.result-mismatchwhen a row's digest, score or passed differs from its verdict, andfail:experiment.reference-missing,fail:experiment.reference-unsigned,fail:experiment.unsigned,fail:experiment.bad-signature,fail:experiment.key-separation(verdict signed by a pinned optimizer key) andfail:experiment.malformed. A verdict signer outside the owner-pinned scorer/eval/verdict roles isadvisory:experiment.signer-unpinnedand blocks only with--strict.tine reproduce EXPERIMENT --sample K --key KEY [--seed N] [--tolerance T] [--repeats N] [--runner verdict|FILE.py:FUNC|MODULE:FUNC]reruns a seeded, recorded sample of result rows and writes a signedopentine.reproduce-report/1with per-row agreement, the selection, and the manifest fields found nondeterministic; it exits 1 on disagreement.- Schemas
opentine-experiment-manifest-1,opentine-reproduce-report-1,tine-cli-experiment-1andtine-cli-reproduce-1(file conventions, not object kinds); docs/EXPERIMENTS.md. No object kind and notine verifycode is added.