OpenTine v0.76.0: Security and integrity hardening
Release notes reproduced from the pinned changelog. Source.
tine mcp-proxy --organism-gateno longer relays a frame it cannot parse strictly. Before, one invalid UTF-8 byte in any field sent atools/callthat loads a tagged artifact to the server unchecked. Such frames are now refused with JSON-RPC error-32003(or dropped when no id is readable).tine custody gateignores amodel-organismtag signed by a key that pinned key roles deny therunner,policyandcuratorroles (an optimizer key), matches locations and digests as whole tokens instead of substrings (a one-letter location no longer blocks every tool call; trailing dots, which Windows drops from a path, still end a match), and skips a claim with a non-string location or digest instead of failing every call.tine trends --fail-on-regressionfails closed when a parent's lineage record is missing:lineage.parent-missingnow lists the variant inunchecked[](deleting a parent record skipped the paired comparison and let a regression pass).tine promote --require-admissionrebuilds the inputtine policy checksigned: new--admission-evals DIR,--admission-holdout DIRand--admission-budget SUBJECTpass the check's--evals,--holdoutand--budget(before, the gate's input had no evals, holdouts or budget, so a policy that reads them, such aspromote, never counted an allow). The policy input'soversightblock now holds the decisions on the run'spromotion:LABEL:RUNitems (it matched a decision's anchor blob against the run id, sok-of-n-approvalsnever held).holdout-signed(and so the shippedpromotepolicy) can now hold on real records: a sealed holdout's signed commitment records its items' dataset digest (dataset), and the policy input marks an eval as a holdout eval when its verdicts'datasetequals the digest a verified holdout, signed by a pinneddatasetkey, records. Before, the digest was compared with holdout names, so the rule never held andtine promote --require-admission promotecould not admit. Commitments sealed before 0.76 carry no digest and match no eval; reseal them with--rotate-from.- The policy input counts an approval only where the oversight queue would:
a decision anchored on a blob other than its item's anchor is ignored, a
signer's later reject cancels their earlier approve, and when the check
passes a
labelparam only approvals of a promotion to that label count. - Policy expressions: a long
a.b.b...selection chain (about 1000 selections) is refusedpolicy.parse(taller than 64), as in the TS verifier; the Python height check recursed, hit the interpreter's limit and recordedpolicy.stepsin the signed admission. Shared vectorsselect-height-1000andselect-height-1023cover it. - One run with a blob over 1 MiB no longer crashes the oversight queue or
tine transcripts. The search-index text reader hashes a blob of up to 64 MiB in full and keeps only its verified prefix; a larger or unreadable blob is read as empty text. A run whose text cannot be read is left out of the transcript corpus, and each oversight-queue source is isolated: a source that fails is warned about and lists nothing, and the other sources still list their items. - A deeply nested eval verdict line (
[[[[…) no longer abortstine query index,tine policy checkor the promote admission input: verdict lines are parsed with the bounded-nesting reader and a line past 200 levels is skipped as malformed. The same reader now parsestine query --verifyeval rows, lineage records and decisions,--corpusJSONL lines and the holds file, which refuse such input with their usual malformed-input error. - Padding a run's prompt no longer hides it from similar-to-known-bad
oversight items. System and prompt text now share a 256 KiB part of the
1 MiB per-run search-index text budget, so the steps are still read after a
padded prompt, and a run's score against a flag's evidence run is the best
of its whole-run score and its evidence-length, half-overlapping word
windows (
opentine/_transcript_windows.py). Text inserted between every copied step still dilutes each window; that limit is documented in docs/TRANSCRIPT_FLAGS.md. - Decoys that copy a flag's evidence can no longer push a real variant out
of the oversight queue. Every run at or above the 0.6 threshold is a
similar-to-known-bad hit (the nearest-50 cut is gone); past a work bound of
10,000 hits the best-scoring ones are kept and a
RuntimeWarningreports the truncation. The centring mean is fitted without the evidence runs and runs whose plain cosine to them is at least 0.5, so a flood of copies does not centre the flagged behaviour away. Decoys tuned to sit just under 0.5 still shift the mean; see docs/TRANSCRIPT_FLAGS.md. tine dataset checkrefuses a contributed bundle whose refs name anything but the signed record's public run, or whose pack holds another run object; every run in the pack is checked against--tombstones. A withdrawn, unredacted run could previously ride along under an extra ref.tine bom export --datasetrefuses a dataset version the repository marks unverified now (a member tainted since curation, or a taint filter that cannot be applied), astine dataset versionsandmaterializealready did.- The Python and TS dataset-version checks share one definition of a blank
selection(ASCII whitespace only); they disagreed on U+001C..U+001F, U+0085 and U+FEFF. New shared vectors cover each. tine dataset curatealso leaves out a candidate that contains at least half of one tainted run's distinct chunks, so padding a tainted copy with new text no longer dilutes it below the near-duplicate threshold.- Keyless verification:
tine verifyandtine keyless verifynow read the signing certificate through one shared helper, and refuse a bundle whoseverificationMaterialcarries more than one ofcertificate,x509CertificateChainandpublicKey. Before, the two commands could pick different leaves from such a bundle and report different signers. - Keyless verification:
tine verify --fulcio-rootnow walks the certificate chain with the same helper astine keyless verify: one depth limit (leaf plus up to four certificates to the root), every issuer must be a CA allowed to sign certificates, and bundled intermediates are used the same way. Before, a chain with three intermediates passed one command and failed the other, andtine verifyaccepted a non-CA issuer.