OpenTine v0.46.0: Share it, gate it
Release notes reproduced from the pinned changelog. Source.
Behaviour changes
tine serveanswers every not-found or not-allowed read on the hosted-beta routes with the same404({"error":"not found"}), so no route reveals whether an oid exists. Anonymous and other-tenant refusals are byte-identical for a real and a nonexistent tenant.tine serverefuses to store a tombstoned blob again: a pushed pack that carries one is installed without it.- A hook tool name that isn't a string now normalizes to
"". tine repo-search --jsongainsremote,truncated,hybridandembedder;GET /v1/capabilitiesgainsobject_read_http,run_closure,list,search,log_http,admin,share,tombstonesand (with a server key or trust policy)vsa. Every 0.45 key keeps its meaning.
Added
- Hosted-beta caps on
tine serve(SPEC 8.14):object_read_http(GET objects/<oid>):privateimmutable cache headers,Vary: Authorization, ETag and 304.run_closure(POST runs/<oid>/closure): one negotiated pack;lazy_blobsleaves blobs out and each one is read and authorized on its own.list(GET list/runs,GET list/refs): cursor-paginated,limit1–500.searchnow takestext, matched against stored run records only.log_http(GET log/entries): the tenant's own transparency-log entries.admin(GET admin/stats).share: read-only share tokens bound to one run, which expire and can be revoked; the server stores only a SHA-256 of each. Public/v1/share/<token>routes (info, closure, objects) return one 404 for an unknown, expired or revoked token and for an oid outside the run.
- New CLI commands:
tine share create|revoke|list(alsotine share-link),tine open RUN,tine repo-search --remote, andtine remote login(OAuth 2.0 device-code OIDC; the token is stored owner-only as the remote'stoken_file). - Stable public API v1: an OpenAPI 3.1 document (
docs/api/openapi-v1.yaml, SPEC 8.15) generated from the server's route table, covering every hosted-beta, share and tombstone route. Each operation is tagged with the capability that advertises it and its status (stable, orplannedfor theprojectcap). A test fails if the document, the route table, the TS SDK and the server disagree. - API conformance suite (
tests/api_conformance/) that any implementation runs against a base URL: private tenant routes, refusals independent of the oid and of whether the tenant exists, the uniform 404, 429 with Retry-After, verified packs, share tokens that read only their run and die when revoked, and uniform tombstone 404s. Its client never follows redirects. @opentine/sdk(ts/sdk): a typed TypeScript client that needs onlyfetch, with methods for every v1 route. It never follows redirects, never sends its bearer token on share-token routes, refuses dot-segment path parameters, and parses Retry-After in seconds or as a date.@opentine/sdk/verifiedchecks everything it fetches with the TS verifier and runs in browsers.@opentine/verifynow exportsinspectPackandwebhookClass.- Purge with tombstones.
tine purge OID --reason TEXT (--key-file|--ed25519-key-file)removes a blob's bytes, keeps its oid and leaves a signedopentine.tombstone(SPEC 4.14).tine fsckreportscontent_unavailableinstead of an error, andtine purge --listchecks every tombstone. Bundles carry tombstones, andtine push/tine fetchexchange them with remotes that listcaps.tombstones(GET/PUT tombstones/<oid>). - Redacted public copies.
tine bundle create FILE REF --redacted-publicbundles a re-redacted copy of one run with a signedopentine.redacted-copyrecord (SPEC 4.15);tine bundle verify --key-file/--pubkeychecks it. A purged blob verifies ascontent-unavailablein Python, the TS verifier andtine-verify.pyz. - Gate it in CI.
tine serve --trust-policy NAME=FILE(repeatable) admits ref updates only under namedopentine.admission-policydocuments (first covering policy decides; an uncovered ref gets a uniform 403), andtine serve --vsa-signing-key FILEsigns admission VSAs (DSSE, Ed25519) with the server's own key, recording the policy's URI and file sha256 andresourceUritine://TENANT/REF(SPEC 8.17). New GitHub Actionactions/gateand GitLab componentactions/gitlab/templates/opentine-gate.ymlruntine verify,tine eval verifyand a VSA gate, and edit one PR/MR comment in place. Newactions/preserve-noteskeepsrefs/notes/tineattribution through squash and rebase merges. - PII detection (
opentine-redaction/3): emails, phone numbers, US street addresses and UK postcodes, IBAN, payment cards, and US SSN / UK NINO / Spanish DNI-NIE, each behind a validator; a local-only pluggable classifier layer (--classifier rules|none|MODULE:ATTR,OPENTINE_PII_CLASSIFIER; defaultrules/1for names and dates of birth).tine redact check --piiwrites signed redaction reports version 2 (SPEC 4.13.1), checked by Python, the pyz and the TS verifier. Recall and precision are published in docs/PII.md (0.912 / 0.912 on the fixture corpus). - Hybrid search:
tine repo-search --hybrid [--embedder hash|MODULE:ATTR]fuses BM25 with a derived local embedding index (.tine/index/embed.sqlite,opentine-embed/1) by reciprocal rank fusion. Only redacted text is embedded, and the index is rebuilt when the classifier changes. Newopentine[embed]extra (numpy). - Vendor I/O:
tine export --format langfuse|phoenix|braintrust|langsmith(file or stdout only, redacted) andtine import --format …. Evaluations travel asgen_ai.evaluation.resultand as native scores; per-vendor display status is indocs/VENDOR_IO.md. - Steer and resume: steer for Codex (
Stop→block) and Gemini CLI (AfterAgent→deny) viatine fleet send;tine hook resume --agent codex|gemini|claude-code --session ID --message TEXT [--repo PATH] [--dry-run].opentine-hook/1is published asdocs/spec/hook-1.md(SPEC 8.16). - Schemas:
tine-share-1,tine-list-page-1,tine-cli-share-1,tine-cli-open-1,opentine-tombstone-1,opentine-redacted-copy-1,tine-cli-purge-1,tine-cli-purge-list-1,opentine-admission-policy-1,tine-ci-gate-1,opentine-redaction-report-2,opentine-hook-1andtine-cli-hook-resume-1. - Conformance: new families
61-vsa(13 cases),62-redaction-report-v2(12),63-tombstone(23),64-redacted-copy(16) and67-hook(35), answered by Python, the TS verifier and the pyz. - The suite is now 815 conformance vectors; 279 of the 815 refuse input, and the adapter contract still has one entry point: 49 ops.
Security
- Share tokens: failed lookups are rate-limited with 429 and a successful read
does not reset the count; every share response sends
Referrer-Policy: no-referrer; tokens are redacted from access logs;havesare honoured only inside the shared run, so a share holder learns nothing about the rest of the tenant. tine remote loginstrips control characters from issuer-supplied text and refuseshttp://issuers without--allow-insecure.- A remote purge (
PUT tombstones/<oid>for held content) is admin-only, refused for anything a legal hold reaches, deletes the index row with the bytes, and cannot be undone by a later push. - The CI gate fails closed: no checks, a run or eval without a pinned key
(
unpinned), or a VSA for another tenant or ref (wrong-resource) all fail. Only the poster's own marker comment is ever edited, so a PR author cannot plant a fake "passed" comment. - Vendor import turns malformed files into a clean error;
tine hook resumeresolves the CLI on PATH before recording anything and refuses cmd.exe metacharacters for a Windows.cmd/.batshim. - A plug-in PII classifier's kinds are limited to
[a-z0-9_-]{1,32}, and the embedding index is rebuilt when the classifier changes, so stale vectors cannot keep personal data matchable. - The server never signs as a user: shares, tombstones and redacted copies are client-signed; admission VSAs carry the server's own key.
Compatibility
- No existing byte format changed. New object kinds (
opentine.tombstone,opentine.redacted-copy, redaction report version 2, admission VSAs) and every new route are negotiated bycaps; a 0.34–0.45 client is unaffected. - SPEC 0.46.0 adds 4.13.1, 4.14, 4.15 and 8.14–8.17.
- The TS SDK (
ts/sdk) isprivate: trueand not yet published to npm.
Deferred
- Project formats and the code mirror (
opentine-project/1,caps.project,caps.social_export; ROADMAP §11): not built in this release; they shipped in 0.46.1, where theprojectroutes becamestablein the OpenAPI document. - Write-side
log_http; refresh-token renewal forremote login; event and blob text in remote search; indexes forlist/runs,admin/statsandsearch text(they walk the tenant), andlog/entriesre-verifies the log on every request. - The share throttle is per process and keyed by
REMOTE_ADDR; any writer can revoke any share in the tenant; objects fetched through a share stay in that browser's cache after revocation. - Writers can pre-record tombstones for content the tenant doesn't hold; local
re-fetch doesn't skip tombstoned blobs;
load_runand the run viewer raise on a purged blob; notine serve admincommand for tombstones. - The API conformance suite has no CI job against the hosted service, and the
OpenAPI document isn't served at
/v1/openapi.json. - CI: "Action used in two external repos" is outside this repository; no
endpoint for CI to fetch a VSA; no GitLab preserve-notes;
vsa.policiesis visible to every reader. - PII: no redaction on write, the push gate doesn't check PII, address detection is US/UK only, and no real local model adapter ships.
- Vendor formats are untested against live Langfuse, Phoenix, Braintrust and LangSmith instances, and the Codex/Gemini/Claude resume commands are unconfirmed against the vendors' CLIs.