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

Historical migration · v0.6

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.

These are historical release notes, preserved for the migration URL. Current installation and writer defaults are described in the current reference.

0.6.0 — 2026-08-01

The Surface Release. The v3 provenance engines that shipped only as MCP tools — semantic diff, search, attestation, evaluation, promotion, fork and resume — are now human CLI verbs, so an operator at a terminal, and CI, can drive what only an agent could before. Deterministic replay becomes a checkable gate and cross-run statistics land. Stored data stays readable: every artifact and repository written by 0.3.0, 0.4.0, and 0.5.0 still loads, gated by golden fixtures for all three.

Added

  • The v3 repository engines are now CLI verbs. repo-show, repo-log --json, and context read a run, its object log, and a minimal causal slice; repo-diff (with --exit-code) and repo-search expose the semantic-diff and search engines; attest, evaluate, and promote append an attestation, an evaluation, or a promotion; repo-fork and repo-resume branch and continue a v3 run. Each mirrors the MCP tool it shares an engine with, and a parity meta-test keeps the two in lockstep — pinning the deliberate divergences (promote is an unconditional operator verb on the CLI though MCP gates it behind allow_promotion; the CLI is not confined to experiments/*, whose threat model is model-controlled input rather than an operator). The read verbs are read-only; the mutating verbs append objects exactly as the MCP path does, preserve the expect-absent CAS on a promotion (moving one needs --expected-old; there is no --force), and never emit a --json object on a failed write. Every verb has a stable --json object through one writer, and attacker-controlled recorded content is terminal-escaped on the human path.
  • tine diff gains --json and --exit-code. The legacy diff verb becomes scriptable, with git-diff exit semantics (0 identical / 1 differs / never 2) and a drift object literally the same shape replay --verify reports. The default invocation is byte-identical.
  • tine stats. Cross-run aggregation over the local .tine_runs index — run and step counts, cost total/mean/max, distinct models, tag and format-version histograms — grouped (--group-by model|status|tag|day|format-version) and filtered exactly like tine ls. Token and duration figures are absent unless --deep loads each run; "not collected" is never a silent zero that would sum with real costs.
  • Top-level re-exports and more --json. Thirteen diff/query/signing names (RunDiff, Graph, Query, parse_query, sign_artifact, verify_artifact, …) are now importable straight from opentine, and tine import and tine tag gain --json.
  • tine replay <run> --verify. Deterministic replay was an asserted property; it is now a check with an exit status, so CI can gate on it. The check is deliberately not an in-memory one — Run.fork deep-copies, so diffing a fork against its source always passes and proves nothing. Instead the replay is saved to a temporary path and loaded back, the replay is derived a second time from the source file, and the two must agree on the 64-hex run id, on the retained slice, on the canonical digest of the round-tripped artifact (Run.verify_integrity), and on every structural field. Exit status is binary: 0 reproduced, 1 drift or a source that will not load (argparse keeps 2). --ignore-cost-drift downgrades an accounting-only difference — the cost/usage/billing bucket tine diff already reports separately — to a pass; structural drift always fails. --json emits one documented object (command: "replay-verify") through the same single writer as the other --json commands. A source that does not load produces no verdict, so it is a human message and never JSON.
  • --verify with --harness re-executes the run twice over one context and compares the two saved artifacts: the real nondeterminism gate for an external agent. Cache-mode verification, which spawns nothing, is the default CI gate.

Fixed

  • tine replay --inspect / --dry-run previewed the wrong steps. Inspection listed the descendant closure of --from-step while a replay retains the ancestor closure, so on any branched run the preview was the complement of what the replay reuses; on a linear run the two agreed by accident. Preview, verification verdict, and Run.fork now read one helper (retained_closure), and inspection prints the matching would reuse N recorded steps count.
  • tine fork / replay --harness recorded the wrong causal context. The same descendant-vs-ancestor slip, in a second place: _run_context fed a fork/rerun the descendant closure of the fork point (the discarded future) instead of the ancestor closure it keeps, so a forked run's recorded context cited steps its own graph does not contain — a silent provenance defect. It now shares the one retained_closure helper fork and replay --verify use, and replay --verify --harness gained the slice check that catches a regression.

Changed

  • tine replay --verify writes nothing under .tine_runs/ unless --save names a destination — the always-write paths of a plain replay are conditional under --verify. With --save the verified bytes are copied out and the existing refusal to overwrite without --force still applies. The temporary workspace is removed on every path, failures included.
  • --json and --ignore-cost-drift are refused, not ignored, when the chosen replay mode cannot honour them (--json without --verify, either of them with --inspect/--dry-run), matching the refusal rule the other commands already follow.

Known divergence

  • A cached replay from the CLI carries the source's status, while Agent.replay(mode="cache") (HistoryMixin.replay) marks its result completed. --verify checks the CLI's artifact and therefore pins the CLI behaviour. This is documented, not changed, in 0.6.0; reconciling the two is a 0.7.0 change.

Compatibility

  • No format change. --verify runs over the committed v0.3.0 / v0.4.0 / v0.5.0 golden artifacts in cache mode as part of the backwards-compatibility gate.