Skip to content

ThinkWatch Core 0.77.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 07:02
· 44 commits to main since this release

This release stops the tool-call check from deciding on arguments that are still arriving, and records hits that are only logged with the whole call.

Upgrade notes

  • The control-plane protocol version is still 49. ThinkWatch Lite releases with protocol 49 work with 0.77.0.
  • The request store's schema and the configuration are unchanged; nothing is cleared.
  • For crates that embed tw_guard: Wall::cut_early and Wall::finish are new. Pass cut_early(false) when the stream cannot be cut (observe mode), and call finish() when a stream ends normally, so Chat calls without a finish_reason or [DONE] are checked. Rule::find_in and Rule::find_all_in are new; Rule::find and Rule::find_all behave as before.

Tool calls in streamed answers. The streaming check looked at the arguments as far as they had arrived. A destination cut off in the middle of its host looked like an external host, and a hit that was only recorded was written at that moment, with the rest of the call missing.

  • A hit on arguments that are still arriving counts only once it is settled. A host cut off at http://127 (before .0.0.1) is no longer taken for an external one, and a $ or \b at the end of what has arrived no longer fires. A credential at the very end is not counted until it is complete.
  • While a call streams, only rules that cut are checked, so a cut still happens as early as possible. Every rule runs again on the complete call: Anthropic content_block_stop, Responses output_item.done, Chat finish_reason, [DONE] or the end of the stream. A hit that is only recorded, and every hit in observe mode, is recorded with the whole call.
  • The end of a stream (bytes held back to restore placeholders, and the closing frames of a converted stream) now goes through the check too.
  • -T counts as uploading a file only inside a curl command. docker compose exec -T and ssh -T, which turn off the terminal, no longer look like uploads.

Downloads

Platform Binary Archive for server installation
Linux, x86_64 twcore-x86_64-unknown-linux-gnu twcore-x86_64-unknown-linux-gnu.tar.gz
Linux, aarch64 twcore-aarch64-unknown-linux-gnu twcore-aarch64-unknown-linux-gnu.tar.gz
macOS, Apple silicon twcore-aarch64-apple-darwin —
Windows, x64 twcore-x86_64-pc-windows-msvc.exe —
Windows, ARM64 twcore-aarch64-pc-windows-msvc.exe —

Each file is published with a .sha256 file beside it. A Linux archive contains twcore, the systemd unit twcore.service and LICENSE. ThinkWatch Lite includes its own copy of twcore; the files here are for running core separately, such as on a server.

Server installation

On Linux (x86_64 or aarch64), the install script sets up twcore as a systemd service. This installs 0.77.0:

curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh -s -- --version 0.77.0

An installation made with the script switches to 0.77.0 with:

sudo twcore upgrade --version 0.77.0 --restart

Configuration, the remote control port and connecting ThinkWatch Lite are described in docs/server.md.

Verifying a download

A .sha256 file holds the SHA-256 of the file followed by its name. With both files in the current directory, on Linux:

sha256sum -c twcore-x86_64-unknown-linux-gnu.tar.gz.sha256

On macOS:

shasum -a 256 -c twcore-aarch64-apple-darwin.sha256

On Windows, in PowerShell, the following prints True when the binary matches:

(Get-FileHash .\twcore-x86_64-pc-windows-msvc.exe).Hash -eq (Get-Content .\twcore-x86_64-pc-windows-msvc.exe.sha256).Split()[0]

The install script and twcore upgrade check the SHA-256 themselves.

What's Changed

  • Tool calls: no verdicts on half-received input; record whole calls by @fylorn in #353
  • v0.77.0 by @fylorn in #355

Full Changelog: v0.76.0...v0.77.0