OpenTine v0.36.0: Agent contract, op log and undo
Release notes reproduced from the pinned changelog. Source.
Behaviour changes
- Errors go to stderr. Commands that used their own
_failhelpers now share one error contract. Under--json, stdout carries only JSON, a failure included, as{"error": {"code", "exit_code", "message"}}; usage errors under--jsonemit the same object with exit 2. Exit codes 0-6 are named indocs/CLI.md, and existing statuses keep their meaning. - Every subcommand accepts
--json. Commands without a payload of their own wrap their output as{command, exit_code, output}; the v3 plumbing verbs accept it as a no-op.fleet up(with or without--dry-run) andreplay --dry-run/--inspectnow honour it. tine serverefuses static tokens under 32 bytes unless started with--allow-weak-tokens.tine statscounts v3 repositories instead of the legacy run index.
Added
tine op log,tine op verifyandtine undo. Every ref-moving command appends an entry toopentine-log/1, a hash-chained log in the C2SP tlog-tiles layout under.tine/log/op/with Ed25519 signed-note checkpoints.tine undo [OP]restores an op's refs as a new forward ref transaction and refuses to cross gaps left by writers that do not log (including 0.35 and older) unless--force.tine push --dry-run(alias--outgoing) lists the refs, objects and runs a push would send without connecting.--manifest PATHwrites a canonical push manifest, signed with--key-fileor--ed25519-key-file; URL credentials are stripped from it.git config tine.transcriptRemote NAMEsends run bundles from the pre-push hook to a separate remote from the code.- MCP tools from one registry (
opentine/_mcp_registry.py), each annotated read or write. New read tools:verify_run,log,fleet_status,fanout_status,cost,agent_showandstats, each returning its command's--jsonpayload.tine fleet status --repo PATHlists a repository's fan-out records. - OIDC for
tine serve:--oidc-issuer,--oidc-audience,--oidc-jwks-uri,--oidc-tenant-claimand--oidc-roles-claim. Issuer and JWKS URLs must behttps://and are never taken from a token. Repo.update_ref_rebasere-reads a contended ref and recomputes its new value, for append-style writers.
Fixed
- Concurrent writers to one ref no longer fail on contention. Ref locks
are retried with bounded jittered exponential backoff (10 s) before the
contention is reported; a compare-and-swap mismatch is never retried.
Contention and CAS mismatches raise distinct
ValueErrorsubclasses.
Security
tine servelocks a client out with exponential backoff after repeated 401s, and answers 500s with a generic body and a request id, logging the exception server-side only.- Supply-chain CI: pip-audit over the locked dependencies, zizmor over the
workflows, a CycloneDX SBOM attached to each release and listed in
SHA256SUMS, CodeQL, OpenSSF Scorecard and Dependabot. - The release build job installs only the
releaseextra; the test suite runs in a separate gates job. Every existing release gate is kept. - Locked
anyio,certifi,cryptography,mcp,pyasn1,pyjwtandurllib3upgraded past the advisories pip-audit reports.