OpenTine v0.47.0: Merge it, review it
Release notes reproduced from the pinned changelog. Source.
Behaviour changes
tine mcprecallalso returns team-signed memory notes undermemories; with no.tine/memory-team.json, none are returned.- A merge step exported to
.tinev2 reads back asmodel; v2 has nomergekind. tine eval cirefuses unknown keys in.tine/evals.toml(top level and[defaults]) and dataset or output paths outside the repository.- Leases taken through
caps.coordare bound to the caller who claimed them.
Added
- Run merge and pick (SPEC 4.19):
tine merge OURS THEIRS [--ref R]writes a deterministic merge run with parents[OURS, THEIRS]and onemergeevent. Workspace trees merge three ways; conflicting paths and a differing policy manifest are recorded in the merge event, leave the runpausedand exit 1.tine pick ONTO EVENT...copies events onto a run's tip, each marked withpicked_from. opentine.merge(merge/v1), new kind: a signed attestation naming the merged run, its parents, the target, the fencing token and a digest of each gate piece; it can also be checked against the merged run.opentine.merge-approval, new kind: a signed approve or reject decision on a candidate run for a target.- Merge queue:
tine merge-queue init|add|claim|heartbeat|land|work|show|approve|verifyoncoord/merge-queue/<id>, with leases and fencing tokens. A landing commits with one compare-and-swap of the queue record, so a stale holder is refused and an entry never lands twice; a chaos test that kills workers proves it. Gate policyopentine-merge-gates/1combines a pinned server VSA, signed eval verdicts and signed approvals. - Reviews (SPEC 4.20), new kinds:
opentine.reviewis a reviewer-signed, hash-chained unit of work across runs and commits in one or more repositories, with findings, monitors (risk, intent drift, coverage) and gates;opentine.review-gateis a signed gate decision;opentine.review-bundleverifies offline.tine review create|add|gate|show|export|verify|import|push. An approval is refused while a monitor fails or a critical finding is open (review-gate.blocked), and--verdicttakes a monitor's score from a signed eval verdict. tine servecaps.reviews(SPEC 8.19):GET reviews,GET|PUT reviews/{id}(compare-and-swap) andPOST reviews/{id}/decisions. Uniform 404, transparency-logged, never signed by the server. The TS SDK addslistReviews,getReview,updateReview,decideReviewGateandgetReviewVerified.- Prompt registry (
opentine.prompt, SPEC 4.21):tine prompt push|label|get|list|verify|link|sync. Versions are Ed25519-signed, hash-chained and signed by the same key as the version before. Labels move, andlinkrecords the version in a run's annotation. - Team memory (
opentine.memory, SPEC 4.22):tine memory add|list|recall|trust|sync. Notes are signed and shown only when a key in.tine/memory-team.jsonsigned them. A note can supersede another, andaddrefuses text the secret detector flags. - MCP tasks (SPEC 8.20): MCP 2025-11-25 tasks for
tools/call. Cancelling a task, or letting it expire, stops its tool. - Push-triggered evals:
tine eval cireads.tine/evals.tomland gates on each eval'smin_pass_rate. A registeredjudge_promptis pinned into every verdict. The gate action gainsevals-configandeval-key-file. - Plugin API (SPEC 8.21): entry-point plugins in four groups
(
opentine.importers,opentine.signers,opentine.scorers,opentine.snapshots). Nothing loads automatically; a plugin loads only when it matches an entry in$XDG_CONFIG_HOME/opentine/plugins.jsonon kind, name, distribution and exact version, is installed in this interpreter's site-packages and its module resolves to a file its own distribution installed.OPENTINE_NO_PLUGINS=1turns loading off. These rules choose which code runs; they are not a sandbox.tine plugins list|allow|check, andtine eval run --scorer plugin:NAME, whose verdict pins the plugin's name, distribution and version. tine experts PATH(tine-experts/1): ranks agents (by model, from line attribution notes) and humans (by commit author e-mail) by attributed lines, then verified runs.@opentine/capture(ts/capture), no runtime dependencies: turns Vercel AI SDK v4/v5 results and OpenAI Agents SDKRunResultobjects intoopentine-hook/1events and delivers them totine hook capturewithout a shell.- Remote task backend (
caps.coord, SPEC 8.22):tine serverunsopentine-coord/1tasks over HTTP. Leases are compare-and-swap with fencing on the server's clock, and every move is an auditedupdate_ref.tine task ... --remoteuses it; the sixcoordroutes are stable in OpenAPI, the route table, the TS SDK and the API conformance suite. - Scale acceptance: 1,000 tasks × 50 workers with abandoned leases give
zero lost or duplicated claims and zero stale
donecalls accepted (scripts/coord_scale.py; CI runs 100 × 10). - Witness operations (SPEC 8.23):
--keycan be given more than once and every key cosigns, current key first, so keys rotate without a gap.GET /keys,GET /health(503degradedwhen state cannot be written),--rate-limit Nper client with 429 andRetry-After. Cosigning state survives a restart. - Forge claims (
opentine.forge-claim, new kind, SPEC 4.23): the committed.opentine/projectcarries a fingerprint of the project's first manifest version. A match reads "claimed by upstream (as mirrored)" and is never a pass.tine project claimwrites it;claim --checkandclaim --missingcheck it. - Project forks:
tine project fork DEST --project-id IDcopies the run repository, never code, and setsforked_from;tine project verify --source PATHchecksforked_fromagainst the source's history. tine-verify.pyzverifies merge records, review bundles (every gate decision listed as its own check), prompt versions and histories, and memory notes offline.- Schemas:
opentine-merge-1,opentine-merge-approval-1,opentine-merge-gates-1,opentine-review-1,opentine-review-gate-1,opentine-review-bundle-1,opentine-prompt-1,opentine-memory-1,opentine-plugin-allow-1,opentine-forge-claim-1,tine-cli-merge-1,tine-cli-pick-1,tine-cli-merge-queue-1,tine-cli-review-1,tine-cli-prompt-1,tine-cli-memory-1,tine-cli-eval-ci-1,tine-cli-plugins-1andtine-experts-1; newdocs/PLUGINS.md,docs/PROMPTS_AND_MEMORY.mdanddocs/design/F2-merge.md. - CLI: eight new commands (
merge,pick,merge-queue,review,prompt,memory,plugins,experts), 117 in total. - Conformance: new families
68-merge(52 cases),69-memory(18),70-review(40),71-prompt(24) and72-forge-claim(11), answered by Python, the TS verifier and the pyz. - The suite is now 1015 conformance vectors; 417 of the 1015 refuse input, and the adapter contract still has one entry point: 63 ops.
Security
- The merge queue never overwrites a target ref moved outside it:
landrefuses withdiverged, and the target only follows the queue head when the head contains every event of the current target. - Merge gates count approvals from distinct listed keys, and one reject from a listed key blocks; eval verdicts are checked against the candidate run and the allowed signers; VSAs need the pinned key.
- A Review gate decision is tied to the digest, seq and id of one version, so it cannot be reused on another, and only a reviewer of that version can sign it. The server stores Review records as their reviewers signed them, publishes each atomically (temporary file, then a hard link that fails if the name exists) and never signs one. Local Review writes take a per-Review lock, and a repeated decision is stored once.
- Memory sync accepts a fetched note only from a team key, under the ref named
by its own digest; with no team file it accepts none
(
memory.untrusted-signer). Team-file keys must be lowercase hex. tine prompt verifyreports a history that does not reach version 1 asprompt.chain-break.- A failed MCP task reports only the exception type, never its text.
- Plugin loading refuses a module in the current directory or on
PYTHONPATH, a stdlib target and namespace packages. On POSIX the allow-list file and its directory must be owned by you or root, and none of the allow-list, its directory, the module file or the module's directory may be group- or world-writable (a sticky bit does not exempt a directory).tine plugins allowrefuses when more than one distribution provides the same name. caps.coordbinds each fencing token to the caller who claimed it (acoord/leases/<id>record written by compare-and-swap), so another writer'sheartbeatordonewith a token it read is409 stale. A missing task, another tenant and a caller who cannot read all get the same 404; a reader who tries to write gets 403.- A lock file is published with its owner stamp already in it (written to a private name, then hard-linked into place), so a writer killed between creating a lock and stamping it can no longer leave an empty lock that wedges a ref, gc or log for good. An empty lock left by an older version is still treated as live.
- The witness
/healthnever shows local paths, and its rate limit keys on the client's socket address, not onX-Forwarded-For.
Compatibility
- No existing byte format changed. The new kinds (
opentine.merge,opentine.merge-approval,opentine.review,opentine.review-gate,opentine.prompt,opentine.memory,opentine.forge-claim) are new objects;caps.reviewsandcaps.coordare negotiated bycaps, and Reviews are kept outside the ref listing, so fetch, clone and push are unchanged for 0.34–0.46.1 clients. - SPEC 0.47.0 adds 4.19–4.23 and 8.19–8.23. The conformance families are numbered 68–72.
- Leases written through
caps.coordbefore the caller binding have nocoord/leasesrecord; their holders claim again.
Deferred
- Merges: raising
min_readerfor repositories that hold merges; octopus merges; TS-side gate evaluation; a remote merge-queue backend. Approvals name only the run and the target (no queue id, nonce or expiry),landcan run without a signing key (a gated landing then records no attestation), a gated entry reached without evidence is rejected for good,merge-queue workpolls a held lease with no limit, and there is no command to recover a diverged queue. - Reviews: no pull from a remote (only
importof a bundle file); an exported Review does not include its runs' bundles; monitors do not run scorers themselves; no CLI flag links a finding to a subject;--verdictdoes not pin the scorer's key; a reviewer of version N can replace the reviewer list in version N+1 (by design, not yet documented as a trust caveat). - Prompts and memory: a prompt's first version is trusted on first use (no
team-key pinning for prompts);
tine eval verifydoes not re-check the judge prompt link; MCP tasks are held per server and advertised only through theio.opentine/tasksextension; sync makes one round trip per ref and never resends a label the remote already has. - Plugins: importer, signer and snapshot plugins load only from Python;
tine import,tine signandtine rewinddo not use them yet.tine expertscounts lines from notes that are not validly signed (onlyverified_runsreflects signatures). SCITT emission stays behind--experimentaland no emitter ships. The capture SDK's fixtures are hand-written. - Projects: remote
--source; a signed fork point; claim files on the pyz command line;claim --checkwithout--branchassumes the default branch; the witness has no--json.