Repository navigation
ThinkWatch Core 0.73.0
This release gives every rule of every guard its own action, lets content rules check the text of the model's answers as well as requests, and adds a record-only action that reports a match without changing anything.
Upgrade notes
- The control-plane protocol version (
CONTROL_API_VERSION) goes from 47 to 48. ThinkWatch Lite connects only to a core with the same protocol version: ThinkWatch Lite 2026.10.18 includes 0.72.0 (protocol 47) and does not connect to 0.73.0. A server used with it stays on 0.72.0 until the app is updated to a release that includes 0.73.0;sudo twcore upgrade --version 0.72.0 --restartswitches a server back. - The request store's schema is unchanged; nothing is cleared.
- Configuration: existing configurations load unchanged and keep their behaviour. New optional keys:
actionsand a per-ruleactionundersecurity.redact;scope,case_sensitiveandreplacementon content rules; the content actionreplace. A configuration that uses any of them does not load in 0.72.x. - A content rule whose
scopeincludesresponsecannot useaction: blockormatch: codepoints; such a configuration is refused with its own message. - New message codes:
config.rule_scope_block,config.rule_scope_codepoints,config.rule_scope_empty,security.rule_scope_block,security.rule_scope_codepoints,security.rule_scope_empty,security.redact_action_unknown,security.unknown_custom_rule.security.content_action_unknownis renamedsecurity.content_action_bad(its sentence now listsreplace);security.no_action_of_its_ownis removed. - Changed in the protocol:
RuleActiongainsplaceholderandreplace; new typeContentScope(requestorresponse).- Rule views carry
scopeandreplacementfor content rules, the realcase_sensitiveof content matchers, andaction/default_actionfor redaction rules. CustomRuleSavegainsscopeandreplacement;case_sensitiveapplies to content rules andactionto redaction rules.SetBuiltinRuleActionaccepts redaction rules.- New endpoint
PUT /security/{guard}/rules/enabled(SetRulesEnabled) switches several built-in and custom rules on or off with one configuration write; unknown ids or names are refused and nothing is written. SecurityTestRequestgainsscope(try a sample as a request or as an answer) andreplacement.ContentMatchedgainsdirection; its outcome can bereplaced.SecretItemgainsreplaced.OutcomeDetailfor a content replacement carriessegmentsandreplacement.SecurityCountsgainscontent_replaced.
Actions per rule. Every rule now has its own action, and a guard's mode decides whether the actions apply: under enforce each rule does what it says, under observe every rule only records, under off nothing is checked.
- Outbound redaction:
placeholder(replace with a placeholder and put the value back in the answer, as before) orrecord(report the value and send it unchanged; it never enters the ledger). Where a record-only match overlaps a placeholder match, the placeholder match still applies. - Tool-call inspection:
cutorrecord, as before. - Content filter:
block(requests only),strip,replaceorrecord.replacewrites the rule'sreplacementtext (default***) in place of the match, on requests as well as answers, and is not reversed in the answer.
Content rules for answers. A custom content rule's scope lists request, response or both. A rule on response checks the text the client receives: streamed answers in every supported format (including Codex freeform tool input), whole answers and the Responses WebSocket. Tool calls are left to tool-call inspection and thinking is not checked. Matching is the same as for requests, with case_sensitive (off by default).
- Streamed answers are not buffered. Each text holds back only the characters that could still grow into a match: the longest keyword less one, or a regular expression's longest possible match, at most 256 characters; deleting rules hold back as many again. A match longer than that may have its start sent already.
- Deleting repeats until no match remains, so deleting one match cannot form another. Whole answers always come out clean. A stream gives the same result where a match is nested one level deep; with deeper nesting the start of a match may already have been sent, and the rest is deleted.
- Regular expressions anchored to the start or end of a text or line are checked once, on the model's own text.
- Copies of the answer text in the same stream (closing events that repeat the whole text) are rewritten to match what was sent. When an answer rule can delete or replace, logprobs are removed from streamed answers and from whole answers whose text changed, since they repeat the text word by word.
- Held text is sent when the stream ends, breaks off or carries an upstream error.
- The stored answer is the one the client received.
Requests. Deleting and replacing on requests repeat until no match remains; a part still changing after 64 rounds is emptied. Case-insensitive matching uses the same method for requests and answers, so characters whose lowercase form has a different length are matched correctly.
Redaction fixes. Overlapping placeholder matches merge into one placeholder, so no part of either is sent in clear. Custom redaction patterns match within one JSON string at a time and can no longer make a request body invalid JSON. Matches on placeholders already in the text are ignored before overlapping matches merge.
Stored bodies and security log. Stored bodies and log excerpts put the placeholder back wherever a request value appears as written, so a value the model repeats without its context (a connection-string password, for example) is not stored in clear. In valid JSON only string contents are changed; text that is not valid JSON, such as an event stream, is masked wherever a value appears, numbers included. Excerpts never show part of a value.
WebSocket. A frame from an answer that has already ended is filtered by that answer's own filter and never changes the answer in progress, also when a relay rewrites answer ids.
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.73.0:
curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh -s -- --version 0.73.0An installation made with the script switches to 0.73.0 with:
sudo twcore upgrade --version 0.73.0 --restartConfiguration, 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.sha256On macOS:
shasum -a 256 -c twcore-aarch64-apple-darwin.sha256On 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
- Per-rule actions for every guard and content filtering of answer text by @fylorn in #335
- v0.73.0 by @fylorn in #336
Full Changelog: v0.72.0...v0.73.0