Reference · v0.76.0
Reviews
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.
Reviews: tine review (0.47)
tine review create ID --title T [--code-repo NAME[=PROJECT]]... [--reviewer HEX]...
[--gate NAME]... --ed25519-key-file K [--key-id ID] [--json] [--repo R]
tine review add ID [--run OID]... [--commit SHA]... [--at NAME] [--finding SEVERITY:MESSAGE]...
[--resolve FINDING_ID]... [--monitor risk|intent-drift|coverage
(--score S --threshold T [--scorer X] | --verdict FILE)] [--gate NAME]...
[--reviewer HEX]... [--code-repo NAME[=PROJECT]]... --ed25519-key-file K
tine review gate ID GATE (--approve | --reject) [--reason TEXT] --ed25519-key-file K
tine review show ID [--reviewer-key HEX] [--json] [--repo R]
tine review export ID -o FILE [--reviewer-key HEX] [--json] [--repo R]
tine review verify FILE [--reviewer-key HEX] [--json]
tine review import FILE [--json] [--repo R]
tine review push ID [--remote R [--tenant T] [--token-file P]] [--json] [--repo R]
A Review is a unit of work across runs and commits, in one repository or
several (SPEC 4.20). create writes version 0, signed by the
--ed25519-key-file key, which becomes its first reviewer (--reviewer adds
more); --code-repo names each repository it spans (default one named
default), optionally with the opentine.project id it belongs to. add
signs the next version with what is added: runs and commits (--at picks the
code repo, default the first), findings (info, low, medium, high or
critical; --resolve closes one by id), gates, reviewers and monitors. A
monitor is an eval scorer's score against a threshold, risk, intent-drift
or coverage; --verdict takes the scorer, score and threshold from a signed
tine-eval-verdict/1 (tine eval run) and records its digest. Every version
must be signed by a reviewer of the version before it; anything else is
refused (exit 4) and the Review does not change.
gate signs one decision on one gate of the head version. Only a reviewer can
sign one, and an approval is refused (review-gate.blocked, exit 4) while a
monitor of that version fails or a critical finding is open; a rejection is
always allowed. show verifies the Review and prints each gate's status
(approved, rejected or pending; a decision on an earlier version never
counts for the head). The Review lives in .tine/reviews/ID.json as its
bundle; export writes that opentine.review-bundle, and
python tine-verify.pyz FILE verifies it offline, every version and every
gate decision (one check row each), with --pubkey pinning the first
reviewer. verify does the same check here (exit 4 on failure), import
adopts a bundle that extends the local copy, and push sends what a remote's
caps.reviews (SPEC 8.19) lacks; the remote checks every record, stores it
exactly as signed, logs it in its transparency log and never signs one.
--json follows tine-cli-review-1. The 70-review.json conformance family
pins Python, the TS verifier and the pyz.
Multi-agent review through the fleet: tine review run (0.48)
tine review run ID --fleet TOML [--trust] [--base REV] [--diff-file FILE] --ed25519-key-file K [--key-id ID] [--json] [--repo R]
tine review findings ID [--json] [--repo R]
run runs a reviewer fleet (a fleet.toml, inert until its exact bytes are
trusted with --trust, like tine fleet up) on the change: git diff REV
(default HEAD, the uncommitted change) or the diff in --diff-file, redacted
before any reviewer sees it. Each member gets OPENTINE_REVIEW_ID,
OPENTINE_REVIEW_CONTEXT (the file holding the change) and
OPENTINE_REVIEW_FINDINGS (the file it writes), and writes one JSON object
per line: {"severity", "message", "path"?, "line"?}. Every well-formed line
becomes one signed opentine.review-finding (SPEC 4.25), its message redacted
first, signed by --ed25519-key-file (which must be a reviewer of the head
version) and kept in .tine/review-findings/ID.json; a malformed line is
skipped and counted, never guessed at. The Review then gets one new version
listing every new finding as open, so a critical one blocks approval.
findings lists the stored findings, each checked against the head version's
reviewers; python tine-verify.pyz .tine/review-findings/ID.json checks the
same file offline, one row per finding. --json follows tine-cli-review-1;
the 74-review-finding.json conformance family pins Python, the TS verifier and
the pyz.