Changelog
Release notes for Thoth SDKs, the Thoth binary line (proxy + thothctl), and IaC providers.
Historical release notes
Entries describe behavior at the time of each release. Use Install an SDK and Your first governed agent for current package names, runtime requirements, connection details, and failure behavior.
Release notes for every published Thoth package, newest first. Latest releases come straight from each package's changelog, so they match what is published; pre-releases are not listed. See the release-channel guide when selecting an upgrade. Releases follow Semantic Versioning.
Subscribe
- Direct feed URL:
https://docs.atensecurity.com/docs/changelog/rss.xml - One-click Feedly subscribe: Feedly
- One-click Inoreader subscribe: Inoreader
Latest releases
Generated from each package's CHANGELOG.md, newest first.
- Go SDK 0.1.24 (November 29, 2026)
- Python SDK 0.9.1 (November 29, 2026)
- TypeScript SDK 0.5.1 (November 29, 2026)
- Go SDK 0.1.23 (November 28, 2026)
- Go SDK 0.1.22 (November 28, 2026)
- Pulumi provider 0.1.25 (November 28, 2026)
- Python SDK 0.9.0 (November 28, 2026)
- Python SDK 0.8.0 (November 28, 2026)
- Terraform provider 0.1.25 (November 28, 2026)
- Thoth CLI and MCP proxy 0.4.0 (November 28, 2026)
- TypeScript SDK 0.5.0 (November 28, 2026)
- TypeScript SDK 0.4.0 (November 28, 2026)
- Thoth CLI and MCP proxy 0.3.16 (November 7, 2026)
- Go SDK 0.1.21 (November 6, 2026)
- Python SDK 0.7.0 (November 6, 2026)
- TypeScript SDK 0.3.0 (November 6, 2026)
- Pulumi provider 0.1.24 (November 5, 2026)
- Terraform provider 0.1.24 (November 5, 2026)
- Thoth CLI and MCP proxy 0.3.15 (November 5, 2026)
- Python SDK 0.6.0 (October 31, 2026)
- TypeScript SDK 0.2.0 (October 31, 2026)
- Thoth CLI and MCP proxy 0.3.14 (October 29, 2026)
- Pulumi provider 0.1.23 (October 28, 2026)
- Terraform provider 0.1.23 (October 28, 2026)
- Thoth CLI and MCP proxy 0.3.13 (October 28, 2026)
- Pulumi provider 0.1.22 (October 24, 2026)
- Pulumi provider 0.1.21 (October 24, 2026)
- Terraform provider 0.1.22 (October 24, 2026)
- Terraform provider 0.1.21 (October 24, 2026)
- Thoth CLI and MCP proxy 0.3.12 (October 24, 2026)
- Thoth CLI and MCP proxy 0.3.11 (October 24, 2026)
- Pulumi provider 0.1.20 (October 23, 2026)
- Python SDK 0.5.25 (October 23, 2026)
- Terraform provider 0.1.20 (October 23, 2026)
- Thoth CLI and MCP proxy 0.3.10 (October 23, 2026)
- Thoth CLI and MCP proxy 0.3.9 (October 23, 2026)
- Pulumi provider 0.1.19 (October 19, 2026)
- Terraform provider 0.1.19 (October 19, 2026)
- Thoth CLI and MCP proxy 0.3.8 (October 19, 2026)
- Go SDK 0.1.20 (October 18, 2026)
- Pulumi provider 0.1.18 (October 18, 2026)
- Python SDK 0.5.24 (October 18, 2026)
- Terraform provider 0.1.18 (October 18, 2026)
- TypeScript SDK 0.1.22 (October 18, 2026)
- Pulumi provider 0.1.17 (October 16, 2026)
- Terraform provider 0.1.17 (October 16, 2026)
- Pulumi provider 0.1.16 (September 18, 2026)
- Python SDK 0.5.23 (September 18, 2026)
- Terraform provider 0.1.16 (September 18, 2026)
- Thoth CLI and MCP proxy 0.3.7 (September 12, 2026)
- Go SDK 0.1.19 (September 11, 2026)
- Python SDK 0.5.22 (September 11, 2026)
- TypeScript SDK 0.1.21 (September 11, 2026)
- TypeScript SDK 0.1.20 (September 11, 2026)
- Pulumi provider 0.1.15 (July 23, 2026)
- Terraform provider 0.1.15 (July 23, 2026)
- Pulumi provider 0.1.14 (July 10, 2026)
- Terraform provider 0.1.14 (July 10, 2026)
- Pulumi provider 0.1.13 (July 9, 2026)
- Terraform provider 0.1.13 (July 9, 2026)
- Thoth CLI and MCP proxy 0.3.6 (July 9, 2026)
- Go SDK 0.1.18 (June 20, 2026)
- Python SDK 0.5.21 (June 20, 2026)
- TypeScript SDK 0.1.19 (June 20, 2026)
- Python SDK 0.5.20 (June 15, 2026)
- Pulumi provider 0.1.12 (June 10, 2026)
- Thoth CLI and MCP proxy 0.3.5 (June 10, 2026)
- Terraform provider 0.1.12 (June 9, 2026)
Fixed
- The check that decides whether observe mode may send the record for a request that cannot be built (added in 0.1.23) now reads
GET /v1/capabilitiesfirst and falls back toGET /health. On the hosted API only/v1/*reaches the enforcer, so 0.1.23 read an answer with no capabilities there and sent nothing. The new path carries no credentials, follows no redirects, reads at most 64 KiB and has the same 2 second limit and cache as before; an older or customer-hosted enforcer without/v1/capabilitiesis still read on/health. It needs platform v0.6.44 or later, which serves/v1/capabilities.
Fixed
- The check that decides whether observe mode may send the record for a request that cannot be
built (added in 0.9.0) now reads
GET /v1/capabilitiesfirst and falls back toGET /health. On the hosted API only/v1/*reaches the enforcer, so 0.9.0 read an answer with no capabilities there and sent nothing. The new path carries no credentials, follows no redirects, reads at most 64 KiB and has the same 2 second limit and cache as before; an older or customer-hosted enforcer without/v1/capabilitiesis still read on/health. It needs platform v0.6.44 or later, which serves/v1/capabilities.
Fixed
- The check that decides whether observe mode may send the record for a request that cannot be built (added in 0.5.0) now reads
GET /v1/capabilitiesfirst and falls back toGET /health. On the hosted API only/v1/*reaches the enforcer, so 0.5.0 read an answer with no capabilities there and sent nothing. The new path carries no credentials, follows no redirects, reads at most 64 KiB and has the same 2 second limit and cache as before; an older or customer-hosted enforcer without/v1/capabilitiesis still read on/health. It needs platform v0.6.44 or later, which serves/v1/capabilities.
Added
- In observe mode a call whose request cannot be built (a non-finite number, an unserialisable value, an invalid date, or a body over 4 MiB) is now recorded. The call is handled
exactly as before and the tool still runs; the SDK then sends one second, small request to the enforcer that names the failure class
(
non_finite_number,unserialisable_value,invalid_dateortoo_large) and carries no tool arguments, no findings, no data handling and no usage, so the call appears in the would-have-blocked summary. Enforce mode sends nothing extra. When the client has any data handling configured, the request carries identifiers only (agent, tenant, user, tool, session, trace and attestation ids, scope, environment, mode, the data classification label, and an identity binding rebuilt from the agent, tenant and user ids). The request goes only to an enforcer that reports support: the SDK readsGET /health(no credentials, no redirects, at most 64 KiB, 2 second timeout), caches a clean answer for 10 minutes and a failure for 60 seconds, and sends nothing, logging one warning, whencapabilities.client_request_erroris nottrue. That is the case until the platform release that carries the matching enforcer change is deployed; until then behaviour is exactly as before (the known limit under 0.1.22 still applies).
Changed
- A request larger than 4 MiB, the enforcer's default limit, is refused in the SDK before it is
sent: the call is blocked with the reason
enforcer_request_too_largeand the tool does not run, whether or not fail-open is on. Before, the enforcer's refusal could arrive as a dropped connection, which fail-open read as an allow. Use smaller tool arguments or ask a reviewer for a held action. This check is in the SDK and needs no enforcer change.
Fixed
- With fail-open on, an enforcer reply that could not be understood no longer allows the call; it is blocked, with the reason
enforcer response not understood, whether or not fail-open is on. Fail-open still covers only an enforcer that cannot be reached or is overloaded (network error, timeout, 429, 5xx); authentication failures still block. - A call whose request cannot be built, because the tool arguments hold a value that is not valid JSON (NaN or Infinity, for one), is blocked with the reason
request could not be built, whether or not fail-open is on, and its reported usage is kept for the next call. - An enforcer reply larger than 16 MiB is not read: the call is blocked, whether or not fail-open is on.
- The reason for a request the enforcer rejects (a 4xx) now names the status, as
enforcer rejected request (status=N).
Known limits
- In observe mode a request that cannot be built (a non-finite number, an unserialisable value) is not sent and leaves no record: it appears nowhere in the would-have-blocked summary.
Added
-
Local scan detects labelled medical record numbers and labelled dates of birth in tool arguments: two new
dlpcategories,mrnanddob, reported as a category and a count (the matched text is never kept or sent). A match needs a label next to the value:MRN,medical record number,patient idorchart numberfollowed by an identifier;DOB,date of birth,birthdate,birthdayorbornfollowed by an ISO, numeric day-month-year or written-month date with a year from 1900 to 2026. A bare number or a bare date is not matched. These are pattern detectors: they have false positives (for example a UUID right afterpatient id) and false negatives (for exampleuser_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set'sruleset_hashis9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it toaccepted_scanner_ruleset_hashesbefore relying on a client that sends it. The email detector's quantifiers are now bounded (local part up to 64 characters, domain up to 253), so scanning long text is linear; an address whose local part is one run of more than 64 letters or digits is no longer matched. The scan runs in your process; the server side needs the matching Thoth platform release. Theremrnanddobare findings only (rule conditions, evidence): the server does not redact them from what a tool receives unless redaction for them is switched on, which is an explicit workspace choice. An enforcer built between 8 and 24 November rejects a report containingmrnordobwith a 422, because it only knows the original five categories, and the SDK blocks that call even with fail-open on. An older enforcer ignores the newclient_findingsfield; the matching platform release accepts and evaluates it. -
Client.ReportUsage(thoth.Usage{PromptTokens, CompletionTokens, CostUSD})reports the model usage behind a governed call, so a workspace's daily budget for the agent has something to count. It is sent with the next governed call asprompt_tokens,completion_tokensand, only if you setCostUSD,estimated_cost_usd, then forgotten (sent once; resent if the call did not reach the server). Tokens first: Thoth never works dollars out from tokens. Zero, negative and non-finite values are ignored; one report is capped at 10,000,000 tokens and $1,000. Additive: nothing changes unless you call it. -
Opt-in withholding of values at the source. Set
Config.DataHandlingToolArguments(hash,redactordrop) andConfig.DataHandlingPrompts(hashordrop), or the environment variablesTHOTH_DATA_HANDLING_TOOL_ARGUMENTS,THOTH_DATA_HANDLING_PROMPTSandTHOTH_DATA_HANDLING_SALT. Hashes are HMAC-SHA256 with a client-held salt (Config.DataHandlingSalt, else a random per-process salt). The enforce request declares what was applied indata_handling, a rule that needs argument values holds the call (args_withheld) and says why, and modified arguments are never applied to a call whose arguments were withheld: if the server returns a rewrite anyway, including on an approved hold, the call fails closed (the tool does not run,*PolicyViolationError) because that is a server or contract problem. Nothing changes when unset; an invalid value makesNewClientreturn an error. No new dependencies. A whole-number float hashes as an integer (3.0is3), as in the TypeScript SDK. Theargs_withheldhold needs a Thoth platform release that includes it: against an enforcer without it, hashed or redacted argument values are evaluated as if they were real, so a rule on argument values would not hold and the call could be allowed. -
Local scanning when tool arguments are withheld. With
DataHandlingToolArgumentsset tohash,redactordrop, the SDK scans the raw arguments (and the destination host inRequestMetadata) in your process before withholding them, and sendsclient_findingsnext todata_handling: counts and categories of credentials, email addresses, phone numbers, SSN-shaped numbers and confidentiality phrases, whether a path looks sensitive, a destination hostname, and recipient domains. The enforcer must be on a Thoth platform release that acceptsclient_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself asatensec-thoth-gowith rulesetthoth-detectors.v1, ruleset hash9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it setsaccept_local_scanand lists that hash inaccepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out ofscannedinstead of reported clean.THOTH_DATA_HANDLING_LOCAL_SCAN=off(orDataHandlingLocalScan: "off") sends no findings. A workspace withrequire_client_findingsholds calls from a client that withholds arguments and sends no findings. The detector spec is embedded in the module and refused if it does not match its hash. Go maps have no order, so keys are read in sorted order: recipient domains from different fields are listed in that order. -
PolicyViolationError.Reasonexplains anargs_withheldhold and points toTHOTH_DATA_HANDLING_TOOL_ARGUMENTS.
Changed
thoth.governance.Policy: descriptions now match the server. Every write through an API key waits for a person, an org admin's key included: a new rule startspending, and a change to what a live rule matches or does puts it back topending, where Thoth does not enforce it, until a signed-in org admin decides it.enabledis true for anything not disabled, so a pending rule shows no preview difference; readstatus.
Fixed
thoth.governance.Agent:displayName,ownerEmailandapprovedScopeno longer fail with an "inconsistent result after apply" error (bridged fromthoth_agent).
Added
thoth.access.EndpointApiKeygainskind,allowedAgentsandallowedTools(bridged fromthoth_endpoint_api_key):kindaccepts onlymcp_gateway, the runtime key of the customer-hosted MCP gateway, which needspermissions: ["execute"]and both lists (exact agent ids on the endpoint; tools as<upstream>__<tool>or a prefix ending in one*). The Terraform provider checks the rules at plan time; whether a Pulumi preview reports them at preview time has not been verified. Changing any of the three replaces the key.thoth.governance.getToolInventory(bridged fromthoth_tool_inventory): the workspace's tools with Thoth's advisory recommendation for each (risk, suggested classes, a suggestedSTEP_UPorBLOCK, the reasons and a draft rule). Read-only; it writes no class, rule or decision. Reported descriptions and schemas are left out ofdataJson. Recommendations need an admin credential.thoth.governance.PolicygainsargumentConditions(bridged fromthoth_policy): up to five numeric checks on a tool's arguments, eachargument,operator(gt,gte,lt,lte,eq),valueand an optionalwhenMissing. A review or block rule fails closed on an omitted, non-numeric or differently spelled argument.thoth.governance.DataHandlinggainsacceptLocalScan,acceptedScannerRulesetHashesandrequireClientFindings(bridged fromthoth_data_handling): how Thoth treats what a client's own scan reports about argument values the client withheld. A report only adds holds.thoth.governance.DataHandlinggainslocked(bridged fromthoth_data_handling, defaultfalse): a one-way lock for a workspace that handles protected health information. Locked, arguments and prompts are never kept as sent, and the lock cannot be lifted through Pulumi or the API. Destroying the resource leaves a locked workspace unchanged. Needs a server that stores the field.thoth.governance.GovernanceSettings: a binding insecretBrokerAuthBindingsJsonmay setupstream, the MCP gateway upstream it is for (bridged fromthoth_governance_settings).thoth.governance.PolicyBundle(bridged fromthoth_policy_bundle): a create, update or destroy made with an API key is held pending until a signed-in org admin approves it; the provider stops with a "pending approval" error that names the change id.thoth.governance.PolicyExceptionReviewandthoth.governance.PolicyChangeArtifactApplyare refused for an API key (403): a review or apply is a signed-in person's decision.thoth.governance.TenantApproversresource (bridged fromthoth_tenant_approvers): who may approve held actions on a workspace with no Slack workspace connected.userIdsis a set of user IDs from your sign-in provider (at most 50);revision,updatedByandupdatedAtare outputs. Needs a signed-in admin session, not an API key. Destroying it saves an empty list, so nobody can approve until a new list is set.
Added
- In observe mode a call whose request cannot be built (a non-finite number, a value that is not valid JSON, arguments nested too deeply, or a body over 4 MiB) is now recorded. The call is handled
exactly as before and the tool still runs; the SDK then sends one second, small request to the enforcer that names the failure class
(
non_finite_number,unserialisable_value,too_deeportoo_large) and carries no tool arguments, no findings, no data handling and no usage, so the call appears in the would-have-blocked summary. Enforce mode sends nothing extra. When the client has any data handling configured, the request carries identifiers only (agent, tenant, user, tool, session, trace and attestation ids, scope, environment, mode, the data classification label, and an identity binding rebuilt from the agent, tenant and user ids). The request goes only to an enforcer that reports support: the SDK readsGET /health(no credentials, no redirects, at most 64 KiB, 2 second timeout), caches a clean answer for 10 minutes and a failure for 60 seconds, and sends nothing, logging one warning, whencapabilities.client_request_erroris nottrue. That is the case until the platform release that carries the matching enforcer change is deployed; until then behaviour is exactly as before (the known limit under 0.8.0 still applies).
Changed
- A request larger than 4 MiB, the enforcer's default limit, is refused in the SDK before it is
sent: the call is blocked with the reason
enforcer_request_too_largeand the tool does not run, whether or not fail-open is on. Before, the enforcer's refusal could arrive as a dropped connection, which fail-open read as an allow. Use smaller tool arguments or ask a reviewer for a held action. This check is in the SDK and needs no enforcer change.
Fixed
- A successful (2xx) enforcer response the SDK cannot read, such as a body that is not valid
JSON or has a field of the wrong type (a number sent as a string, for one), now blocks the call with the reason
enforcer response not understood, whether or not fail-open is on. Before, fail-open read it as an enforcer outage and allowed the call. Fail-open still covers only network failures, 429 and 5xx. - A call whose request cannot be built, because the tool arguments hold a value that is not valid
JSON (NaN or Infinity, a datetime, bytes or a set) or are nested too deeply, is now blocked with the reason
request could not be built, whether or not fail-open is on, and its reported usage is kept for the next call. Before, fail-open read it as an enforcer outage and allowed the call although nothing was sent. - A step-up hold counts as resolved only when the enforcer returns JSON
trueforresolved. A string such as"false", a number or null no longer resolves the hold; the SDK keeps polling until the step-up timeout blocks the call. - With the Anthropic Python package older than 1.0,
thoth.init()no longer raises. It logs a warning that Anthropic tools are not governed and to upgrade to 1.x; other frameworks are still governed.
Known limits
In observe mode a request that cannot be built (a non-finite number, an unserialisable value, arguments nested too deeply) is not sent and leaves no record: it appears nowhere in the would-have-blocked summary.
Added
-
Local scan detects labelled medical record numbers and labelled dates of birth in tool arguments: two new
dlpcategories,mrnanddob, reported as a category and a count (the matched text is never kept or sent). A match needs a label next to the value:MRN,medical record number,patient idorchart numberfollowed by an identifier;DOB,date of birth,birthdate,birthdayorbornfollowed by an ISO, numeric day-month-year or written-month date with a year from 1900 to 2026. A bare number or a bare date is not matched. These are pattern detectors: they have false positives (for example a UUID right afterpatient id) and false negatives (for exampleuser_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set'sruleset_hashis9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it toaccepted_scanner_ruleset_hashesbefore relying on a client that sends it. The email detector's quantifiers are now bounded (local part up to 64 characters, domain up to 253), so scanning long text is linear; an address whose local part is one run of more than 64 letters or digits is no longer matched. The scan runs in your process; the server side needs the matching Thoth platform release. Theremrnanddobare findings only (rule conditions, evidence): the server does not redact them from what a tool receives unless redaction for them is switched on, which is an explicit workspace choice. An enforcer built between 8 and 24 November rejects a report containingmrnordobwith a 422, because it only knows the original five categories, and the SDK blocks that call even with fail-open on. An older enforcer ignores the report. The matching platform release accepts and evaluates it. -
thoth.report_usage(prompt_tokens, completion_tokens, cost_usd=None)andthoth.report_usage_from(response)report the model usage behind a governed call, so a workspace's daily budget for the agent has something to count. The SDK adds what you reported to the next governed call asprompt_tokens,completion_tokensand, only if you passed it,estimated_cost_usd, then forgets it (sent once; resent if the call did not reach the server). Tokens first: Thoth never works dollars out from tokens. Negative, non-finite and non-number values are ignored with a warning and never raised; one report is capped at 10,000,000 tokens and $1,000. Pending usage is process-wide.report_usage_fromreads OpenAI-style (prompt_tokens,completion_tokens) and Anthropic-style (input_tokens,output_tokens)usageblocks. Additive: nothing changes unless you call it. -
Opt-in withholding of values at the source. Set
data_handling_tool_arguments(hash,redactordrop) anddata_handling_prompts(hashordrop) oninit(), theinstrument*()functions orThothConfig, or the environment variablesTHOTH_DATA_HANDLING_TOOL_ARGUMENTS,THOTH_DATA_HANDLING_PROMPTSandTHOTH_DATA_HANDLING_SALT. Hashes use a client-held salt. The request declares what was applied, a rule that needs argument values holds the call (args_withheld) and says why, and modified arguments are never applied to a call whose arguments were withheld: if the server returns a rewrite anyway, the call fails closed (the tool does not run,ThothPolicyViolation) because that is a server or contract problem. Nothing changes when unset; an invalid value raises when the client is created. This needs the matching Thoth platform release: an enforcer without it evaluates hashed or redacted arguments as if they were the real values, so rules on argument values would not hold the call and it could be allowed. -
Local scanning when tool arguments are withheld. With
data_handling_tool_argumentsset tohash,redactordrop, the SDK scans the raw arguments (and the destination host inrequest_metadata) in your process before withholding them, and sendsclient_findingsnext todata_handling: counts and categories of credentials, email addresses, phone numbers, SSN-shaped numbers and confidentiality phrases, whether a path looks sensitive, a destination hostname, and recipient domains. The enforcer must be on a Thoth platform release that acceptsclient_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself asatensec-thothwith rulesetthoth-detectors.v1, ruleset hash9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it setsaccept_local_scanand lists that hash inaccepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out ofscannedinstead of reported clean.THOTH_DATA_HANDLING_LOCAL_SCAN=off(ordata_handling_local_scan=FalseonThothConfig) sends no findings. A workspace withrequire_client_findingsholds calls from a client that withholds arguments and sends no findings. Nothing changes when data handling is not configured. -
The local scan leaves
recipientout ofscanned, instead of reporting it clean or milder, when a recipient field holds one of the 23 spaces that Python splits words on and ASCII does not (U+001C to U+001F, U+0085, U+00A0, U+1680, U+2000 to U+200A, U+2028, U+2029, U+202F, U+205F, U+3000). Accented letters and other text in recipient fields still scan.
Needs the server from production v0.6.39 or later. An older server ignores or refuses the new fields, so a non-default value would show as drift.
Changed
thoth_policy: the documentation and descriptions now match the server. Every write through an API key waits for a person, an org admin's key included: a new rule startspending, and a change to what a live rule matches or does puts it back topending, where Thoth does not enforce it, until a signed-in org admin decides it. Becauseenabledis true for anything not disabled, the plan shows no difference for a pending rule; the provider now warns when it creates, updates or reads apendingorrejectedrule, andstatusshows it. An admin key that re-enables a rule its owner wrote is refused with 403, and a promotion to prod always starts pending (withreplace_existing, the live prod rule keeps enforcing until the replacement is approved). Earlier text said only a key that was not an org admin's started pending and that turning a rule on needed an org admin's key.thoth_policy_bundle: a create, update or destroy made with an API key is now held pending by the server until a signed-in org admin approves it. The provider stops with a "pending approval" error that names the change id, records nothing in state (soplankeeps showing the change, and a held destroy keeps the bundle in state), and completes without a copy when run again after the approval. Needs a server with policy bundle approval.thoth_policy_exception_reviewandthoth_policy_change_artifact_applyare refused for an API key (403): a review or apply is a signed-in person's decision. Creating a request withthoth_policy_exceptionstill works with a key.
Added
-
thoth_endpoint_api_key:kind,allowed_agentsandallowed_toolsissue the runtime key of the customer-hosted MCP gateway.kindaccepts onlymcp_gateway, which needspermissions = ["execute"]and both lists (exact agent ids on the endpoint; tools as<upstream>__<tool>or a prefix ending in one*). The rules are the server's, checked at plan time with plan-time errors, so a bad entry stops before a key is created. The three attributes replace the key when changed, are read back on refresh and import, and keep the configured spelling when the server only lower-cases, de-duplicates or sorts. The secret stays sensitive and is returned once. Thethoth_api_keysdata source documents the gateway fields in each row, includingneeds_reissue. Needs a server that stores the lists; an older server refuses them. Not added: a gateway key cannot be created from the fleet or agent key resources, by design. -
thoth_governance_settings: asecret_broker_auth_bindings_jsonbinding may setupstream, the MCP gateway upstream it is for. A gateway is released a binding only whenupstreamequals the request's andagent_idsandtoolsare explicit. Needs a server that stores the field. -
thoth_tool_inventorydata source: the workspace's tools with Thoth's advisory recommendation for each (risk flags and level, suggested classes, a suggestedSTEP_UPorBLOCK, the reasons and a draft rule), including tools seen only in recorded decisions such as Claude Code traffic. Read-only: it writes no class, rule or decision. Filter withserverorneeds_classification. A tool's reported description, schema and annotations are left out ofdata_json. Recommendations need an admin credential and a server that returns them. -
thoth_governance_settings:secret_broker_auth_bindings_jsondocuments and round-trips a binding'sid,agent_idsandtools(limit a binding to named agents and tools; with neither it applies to every agent and tool on its host). The server's normalization of the JSON (lower-cased hosts, sorted and de-duplicated lists) is no longer reported as an inconsistent result. A prefix keeps its trailing space.secret_broker_fail_on_missing_secretis sent only when set. Needs a server with binding scopes. -
thoth_data_handlinggainslocked(defaultfalse): a one-way lock for a workspace that handles protected health information. Locked, arguments and prompts are never kept as sent, and the lock cannot be lifted through Terraform or the API.terraform destroyleaves a locked workspace unchanged and warns. Needs a server that stores the field. -
thoth_policygainsargument_conditions: up to five numeric checks on a tool's arguments, ANDed with the tool match inrules_json, for example holdapprove_expensewhenamountis over 100. Each isargument(a name or dotted path),operator(gt,gte,lt,lte,eq),valueand an optionalwhen_missing. A review or block rule fails closed: a call that omits the argument matches, a value that is not a plain number or a key spelled differently (Amount) holds the call for review. They can equally be written underargument_conditionsinrules_json, but not both. Needs a server that applies them (an older one holds the tool for every call). -
thoth_tenant_approversresource: who may approve held actions on a workspace with no Slack workspace connected, such as a dedicated deployment.user_idsis a set of user IDs from your sign-in provider (at most 50, each a verified, active organization member);revision,updated_byandupdated_atare read-only. Saving sends the revision it read, so a concurrent change is refused instead of overwritten. Needsuse_thothctl_sessionor an admin bearer token: an API key is refused with the fix. Destroying it saves an empty list, so nobody can approve until a new list is set. Import by tenant ID. Needs a server that servessettings/approvers. -
thoth_data_handlinggainsaccept_local_scan(defaultfalse),accepted_scanner_ruleset_hashes(lower-case sha256 hex, at most 20, default none) andrequire_client_findings(defaultfalse). They configure how Thoth treats what a client's own scan reports about argument values the client withheld. A report is used only when the workspace accepts local scans and the scanner's ruleset hash is on the list, only for the checks it says it ran, and it can only add holds. The report is client-asserted, and nothing sends one yet. Destroying the resource turns all three off.
Fixed
thoth_agentno longer fails after apply with "Provider produced inconsistent result" fordisplay_name,owner_emailandapproved_scope. Thoth's agent read now returns the registration it stored; against a server that does not yet, the provider keeps the planned values for the keys the read omits instead of replacing them with empty ones. Values the server does return still show drift.
This release adds the Claude Code hook, the customer-hosted MCP gateway mode and thothctl commands for held policy
bundle changes, and changes several behaviours (search this section for "Upgrade note"). Read Known limits before
using a customer-hosted endpoint.
Security
- When Thoth answers
MODIFYfor a call whose arguments the proxy withheld, the proxy no longer forwards the call: it returns a policy error (modified_arguments_not_applicable), because the rewrite was decided without the real values. - Upgrade note: the proxy no longer passes Thoth credentials to a stdio upstream server under any environment
policy. Before, only
THOTH_CLEAN_ENV=1withheld them, andTHOTH_CHILD_ENV_ALLOWcould re-add them. Now everyTHOTH_*variable whose name containsKEY,TOKEN,SECRET,BEARERorCREDENTIAL, everyTHOTH_*_FILEvariable andTHOTH_MCP_GATEWAY_SETTINGS_JSONis withheld whatever the allow list says. An upstream that relied on receiving such a variable no longer does. - The hook refuses a
THOTH_TENANT_IDthat is not one plain DNS label (lower-case letters, numerals and hyphens, at most 63 characters, no dots,@,/,#,:orxn--) under every apex, the default included, before any URL is built or credential read, and the enforcer and GovAPI URLs are built in one place that checks the host the URL really has (a tenant such asevil.com/#could otherwise move it). thoth gatewaydoes not log settings text. A rejected upstream is reported by its position and a fixed reason, so an invalid upstream name is not repeated in a log line, and a settings file's unknown top-level key is reported by position only.
Added
- A custom apex can be used once Aten signs a trust bundle for your tenant. The hook embeds Aten's two public keys
(
aten-hook-trust-aand-b; two, so Aten can roll one without a new release), verifies the bundle against them, and enforces its leaf-key pins. A bundle signed by any other key, or naming an unknownkey_id, is refused and the hook blocks the call (exit 2). thoth gatewayis the customer-hosted MCP gateway:refuse_all(the default; it answers/healthzand refuses everything else) orserveforremote_mcpupstreams with a static credential, which forwards the enforcer's signed decision receipt (require_receipt, on by default). Seedocs/deployment/customer-hosted-mcp-gateway.md.thoth gatewayserve mode can take its settings fromTHOTH_MCP_GATEWAY_SETTINGS_JSONinstead of--settings-file(exactly one of the two; both or neither stops startup). The value goes through the same parser, size cap (1 MiB, applied to the file too) and messages as the file, is parsed once and never re-read, is not printed, reports a rejected entry by its position and a fixed reason (not its content), and is not passed to stdio upstream child processes. Only three top-level keys are allowed:upstreams,callersandrequire_receipt. Upgrade note: text that is not JSON, is over the cap, is not an object with a non-emptyupstreamslist, has any other top-level key (a misspelledcallers, for instance) or has an invalid entry stops startup with a non-zero exit for this source, rather than leaving a gateway that refuses every call and cannot recover. A settings file keeps starting the gateway on an unknown top-level key: the key is ignored and a warning gives its position, never its text.thoth gatewaystops onSIGTERMorSIGINT: it stops accepting connections, lets in-flight requests finish forTHOTH_GATEWAY_SHUTDOWN_DRAIN_SECONDS(default 10, clamped to 0 to 60), then exits 0; a second signal exits at once.thothctl api-keys create --kind mcp-gatewaywith--allowed-agentand--allowed-toolissues the runtime key of the customer-hosted gateway with the agents and tools it may act for, checked against the server's rules before anything is sent.thothctl governance bundle-changes list,show,approveandrejecthandle policy bundle changes held for a person (a change made with an API key, a service or a system principal waits for a signed-in organization administrator with a second factor).approveneeds the content hash thatshowprinted, so a change that has since moved is refused, and needs--yesor a typed confirmation.showprints every field the approval hash covers (bundle ID, status, description, source address, assignments, enforcement mode and the policy text); a change whose policy text is not included (a remote source) is refused unless you pass--allow-remote-source, and a server that leaves a hashed field out makesapproverefuse before sending anything. An API key is refused before anything is sent. Text from the server is escaped before it is printed.thothctl settings secret-broker set --bindingacceptsupstream=NAME(letters, digits,-and_, no__, at most 128 characters, checked before anything is sent), the form the preview prints for a gateway binding.bindingslists it, and changing other flags keeps it.thothctl tools recommend: per tool, Thoth's advisory recommendation (suggested classes,STEP_UPorBLOCK, risk and the reasons) from names, schemas and observed decisions, including tools seen only in recorded decisions such as Claude Code traffic.--serverfilters to one MCP server,--format jsonprints the recommendation fields (never a tool's description or schema),--show-rulesprints each draft rule.--apply-classes --tool <name>declares classes for that ONE tool (no bulk form, no--all) through the same flow astools confirm, so the same admin and recent-second-factor checks apply. It declares only classes the shipped profiles hold for approval (execute,delete,bulk_operation,export,external_call,credential_access), because a declared class a profile allows (read,write,sensitive_data_access) could move a held tool to allowed; those stay withtools confirm. It prints the expected effect first ("effect unknown" when it cannot tell; policy rules you added are not checked) and needs--yesor ayat a prompt; with no terminal and no--yesit refuses.--dry-runprints the effect and sends nothing. It never applies a rule. Names and reasons are cleaned of control characters before they are printed. Admin credential needed for recommendations.thoth hook claude-codechecks Claude Code's built-in tools (Bash,Edit,Write,Readand the rest) and its MCP tools with Thoth before they run, as aPreToolUsehook.ALLOWadds no decision, so Claude Code's own permissions still apply;STEP_UPandBLOCKdeny the call; any failure denies it. AMODIFYanswer is also denied, with a message that the enforcer changed the call and the hook cannot apply a changed call, so it was not run. Shell commands are classified best-effort (git_push,git_commit,http_post,package_publishand similar); what it cannot recognise staysBash.thoth hook install claude-codeadds the hook to.claude/settings.json(or--scope local,--scope user,--print) without touching other settings. Calls reach Thoth only while the hook is installed. What it does and does not do:- It sends no session intent and no original request, so a call is never held back locally for lacking one. Write-like tool names go to the enforcer like any other call, and the enforcer decides them with the workspace's policy.
- It does not refuse a call because of a file's name. A file whose name suggests sensitive data is decided by the enforcer, so the outcome depends on the workspace's policy and mode.
- A Grep
path,globorincludeis checked even when it has the same value as thepattern, and a search rooted inside~/.thothis refused as well as one above it.
- The hook always refuses a fixed list of exact secret stores (
deny_secret_store_path), with no setting that allows one for a workspace: under a home directory, SSH private keys (.ssh/id_*, not*.pub),.aws/credentials,.kube/config,.netrc,.npmrc,.pypirc,.git-credentials, the two gcloud credential files,.docker/config.jsonand GnuPG private keys;/etc/shadowand/etc/sudoers; anywhere,*.pem,*.key,*.p12,*.pfx,id_rsa*and.envor.env.<anything>, except.pub,.example,.sampleand.templatenames and key files under a conventional fixture directory (test,tests,testdata,fixtures,examples,docs). It reads the text of the path only (it never opens a file or follows a symbolic link) and is not data-loss prevention. The file tools (Read,Write,Edit,MultiEdit,NotebookEdit) are checked by the path they name, andGrepwhen its path is a store or a directory of stores. For shell text it is best-effort: it reads the common file-reading and copying commands,curlupload options, redirections and the command behind a wrapper such assudoorenv, but it does not see aliases, functions, scripts, interpreter one-liners, command substitutions, variables assigned earlier,tar,zip,find -exec, symbolic links, UNC share layouts other than the usual one or a command it does not list, andGlobis not checked. A backslash before a newline is removed before reading, and a tool is found by its base name with case folded (/usr/bin/grep,GREP), withggrep,ag,gawkand similar read as the tool they stand for. The value of--include,--excludeand glob options of a search tool is a file-name pattern and is not read as a path, while-fand--filevalues are checked. Command size, three tiers: the check first looks at size. Up to 64 KiB the command is parsed in full. From 64 KiB to 256 KiB it is not parsed: its raw text is scanned, including store directories named to a search tool (grep,rgand similar) or a copy tool (cp,scp,rsync,mv), and the call is refused on a match, otherwise it goes on to the enforcer as an ordinaryBashcall (ls ~/.sshis allowed). Over 256 KiB the command is refused. The check has a one-second deadline (two seconds for the raw-text tier), and a call whose check does not finish in time is refused. Upgrade note: a command over 64 KiB gets no shell classification, so a tenant rule that denies a classified action such asgit_pushdoes not see it; the call gets the defaultBashdecision, which holds it for approval by default, instead of the rule's denial. thoth hook install claude-code --wait-seconds N(0 to 600, off by default; never read from the environment) lets the hook wait for a reviewer to resolve a held action instead of denying it. The call continues only when the hold is approved and is bound to this exact call (tenant, agent, session, tool and a digest of the arguments); every other outcome denies. The installer sets Claude Code's hook timeout to N + 30 s, the hook never waits within 30 s of it, andhook doctorreports a wait that does not fit, a missingonFailure: block, or a Claude Code older than 2.1.295.thoth hook install claude-code --apex-domain <domain>and--trust-bundle <path>write the arguments for a customer-hosted stack, so settings need no hand edit. They write arguments only and grant nothing: the hook uses a non-default apex only when it isthoth.atensecurity.com, the tenant is one DNS label, and a trust bundle that Aten signed for the tenant names that apex (verified before the credential is read; any failure exits 2). The hook client sends no credential over redirects, plain http or an environment proxy. An optional root-ownedhook-policy.jsoncan only narrow what is trusted. Format:docs/product/claude-code-hook-trust-bundle.md. See Known limits: this does not work until a later release.- The hook enforces leaf-key pins for a customer-hosted enforcer. A trust bundle for a customer apex must list one to four
leafpins (SHA-256 of the certificate's public key); a bundle without pins, with arootorintermediatepin, with duplicates or with more than four is refused. The pin is checked during the TLS handshake, after the normal certificate checks, so a different key aborts the connection before any request or credential is sent and the hook exits 2 with apin mismatchmessage. Chains are checked against the operating system's root store for a customer apex; redirects, environment proxies and session resumption are not used. thoth hook doctorandthoth hook trust-bundle verifyverify the bundle, print the derived enforcer host, the pins and the days left (warning under 14, and on a single pin or a spare pin still listed 90 days after issue), read managed settings without changing them, and fail on an unknown, duplicated or invalid--apex-domain,--agent-idor--trust-bundle.thoth hook verify-endpointconnects without sending a credential and reports the key the enforcer presents, its certificate expiry and issuer, and whether it matches the bundle. It authorizes exactly as the hook does (admin policy and platform rules included), strips terminal control and bidi characters from anything taken from the certificate or server, and reports an unreadable certificate as an error.- On a stack without a dashboard, such as a customer-hosted one,
thothctl approvals resolveand the other commands that ask for a step-up now ask you to sign in again through your identity provider instead of failing. thothctl opens the sign-in link, waits up to five minutes for the authorization code, checks the new sign-in is yours, saves it over yourthothctl auth loginsession and sends the command again once, with the same decision and note. A cancelled, timed-out or different-user sign-in is not retried and saves nothing.thothctl auth step-updoes the same sign-in ahead of time on such a stack. Workspaces with a dashboard keep the browser step-up. thothctl approvals list,getandresolveprint who decided, in what role and why, as the sentence Slack shows (Sam Johnson (Reviewer) approvedpayments.sendbecause "..."), and keep expiry, created time and the held reason. The reason is withheld, with a note, for a workspace whose data handling is locked or whose lock cannot be read. Escape sequences (ANSI, OSC, hyperlinks) and all control characters are stripped from text people typed. Under--json, reviewer-typed text (note,resolution_note,resolved_by_name,decisions[].reasonand.name) moves tountrusted_reviewer_textwithreviewer_text_untrusted: true, and is withheld (reason_withheld: true) for a locked workspace.--json --rawkeeps the API's own keys for scripts that need them; treat that text as untrusted data. Upgrade note: this changes--jsonoutput for these three commands.- Local scan detects labelled medical record numbers and labelled dates of birth in tool
arguments: two new
dlpcategories,mrnanddob, reported as a category and a count (the matched text is never kept or sent). A match needs a label next to the value:MRN,medical record number,patient idorchart numberfollowed by an identifier;DOB,date of birth,birthdate,birthdayorbornfollowed by an ISO, numeric day-month-year or written-month date with a year from 1900 to 2026. A bare number or a bare date is not matched. These are pattern detectors: they have false positives (for example a UUID right afterpatient id) and false negatives (for exampleuser_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set'sruleset_hashchanges to9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it toaccepted_scanner_ruleset_hashesbefore relying on a client that sends it. The email detector's quantifiers are now bounded (local part up to 64 characters, domain up to 253), so scanning long text is linear; an address whose local part is a single run of more than 64 letters or digits is no longer matched. thothctl settings secret-broker get,bindingsandset: show the workspace's secret-broker settings, list the auth bindings (reference, host, header, agents, tools) and change them. A binding can carry anidand theagentsandtoolsit is limited to.setchanges only the flags given, replaces a list that is given, keeps the stored webhook, SIEM and PAM secrets, and refuses asecret_refthat looks like a credential before sending anything.thoth doctorreports the secret broker on the machine: whether brokering is on (counts only), whether a missing secret refuses the call, whether servers inherit the whole environment, and the settings file it reads. It never prints a reference, header or value.thothctl settings data-handling set --locked truelocks a workspace's data handling for protected health information: arguments and prompts are then never kept as sent, and only Aten support can lift the lock.--locked falseis refused before a request is sent. Needs a server that stores the field.thothctl governance policies createandupdatetake--argument-condition(repeatable, at most five): a numeric check on a tool argument, for example--rules '\{"tool": "approve_expense"\}' --argument-condition 'amount>100'. Operators are>,>=,<,<=and==; add,when-missing=no_matchto let a call without the argument through. A hold or block rule holds a call that omits the argument, sends a value that is not a plain number, or spells the name differently.thothctl approvals approvers get,candidatesandsetread and replace the list of people who can approve held actions on a workspace without Slack.settakes--user-id(repeat it) or--user-ids a,b, saves against the revision it just read so a concurrent change is refused instead of overwritten, and refuses an empty list unless you pass--clear. It needs a signed-in organization administrator; an API key is refused before anything is sent. Every command takes--json.thothctl settings data-handling settakes the local scan settings:--accept-local-scan,--accepted-scanner-ruleset-hashes(comma separated, or--clear-accepted-scanner-ruleset-hashes) and--require-client-findings. Only the flags you give change.thoth runcan withhold values before they leave the machine.--data-handling-tool-arguments(hash,redactordrop) and--data-handling-prompts(hashordrop), each also read fromTHOTH_DATA_HANDLING_TOOL_ARGUMENTSandTHOTH_DATA_HANDLING_PROMPTS, replace the argument values and the conversation text the proxy sees (request text, sampling context, tool output). Nothing is withheld unless you set one.THOTH_DATA_HANDLING_SALTkeeps hashes stable across restarts (it is read from the environment only); without it each process uses a random salt. An invalid value stops startup. The request names what was applied indata_handling.- With tool arguments withheld, the proxy scans the original arguments on your machine and sends
client_findings: counts, categories, destination hostnames and recipient domains, never values, paths or the local part of an address. The scanner isatensec-thoth-proxywith rulesetthoth-detectors.v1(hash9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46, which includes the medical record number and date of birth detectors above); add the hash toaccepted_scanner_ruleset_hashesand turn onaccept_local_scanfor Thoth to rely on it. The detectors are a heuristic, not a compliance control.--data-handling-local-scan off(orTHOTH_DATA_HANDLING_LOCAL_SCAN=off) sends no findings. A workspace withrequire_client_findingson holds calls from a proxy that withholds arguments and sends none. - The proxy's own path checks are unchanged and still read the original arguments on your machine. Its wider list of sensitive file names is not sent as a finding.
thothctl settings recipient-policy activityshows what the outside-recipient guard has done recently: how many actions it checked and flagged, how many it would have held (or did hold), why, which outside domains and agents account for them, and a few examples that link to the decision.--dayssets the look-back (1 to 30, default 7) and--jsonprints the API response. It needs a workspace admin, and it records domains and counts only, never addresses. Use it in observe mode to see what enforce would hold before you turn it on.thothctl governance policies replayshows what a rule or overlay change would have decided over your recent captured decisions, without applying it. Give the change as a JSON file or on stdin (--candidate-file), and optionally--agent-id,--since,--untiland--limit;--jsonprints the API response. It reports how many decisions would change and how, what could not be evaluated and why, and what the replay does not model. It is an estimate, not a sign-off, and an empty window is reported as nothing captured, not as zero changes. A rate limit says how long to wait.
Changed
- Upgrade note: MCP gateway: a leased secret must be 8 to 4,096 bytes after trimming. A shorter or longer one is refused
before the upstream is called (
lease_secret_too_short,lease_secret_too_long, no value in any message). The workspace does not check the length when a binding is saved, so a secret outside the range binds and then fails on every call: check it before you bind (docs/deployment/customer-hosted-mcp-gateway.md). - The proxy's log and response redaction now also covers a secret written by a JSON encoder that escapes only some
characters: Go
json.Marshal(&,<,>, U+2028, U+2029), Pythonjson.dumps, PHPjson_encodewith theJSON_HEX_*flags, and a JSON text inside a JSON string. A secret such asp@ss&word-9f3a1c77echoed asp@ss\u0026word-9f3a1c77was not redacted before. One log write is now scanned and written only up to 32 KiB and ends with[truncated]when it is longer. - A decision request over 4 MiB is now blocked on the machine before it is sent, and a request the enforcer refuses as
too large (HTTP 413) is reported the same way: the call is blocked with the decision reason
enforcer_request_too_large(and, in the Claude Code hook, a clear message and exit code 2) instead of a generic HTTP or transport error. Such a call was already blocked; use smaller tool arguments. - Upgrade note: scripts that parse the old default output of
thothctl tools listmust add--json. It now prints a table (tool, server, status, classes, risk and suggested decision) instead of the raw JSON;--jsonprints the API response unchanged, as before. - Upgrade note: when any secret-broker setting is on (enabled, strict endpoint mode, allowed hosts or auth bindings), a
missing secret or a failed lookup now refuses the call instead of forwarding it without the header.
THOTH_SECRET_BROKER_FAIL_ON_MISSING_SECRET=falserestores the old behaviour and logs a warning. - The proxy replaces a resolved secret value, and its base64 and URL-encoded forms, with
[redacted]in its log lines, telemetry events, error responses and the tool output it sends for audit, and redacts credential-bearing header values under anyheadersobject in those events. THOTH_CLEAN_ENV=1limits what a stdio upstream inherits to a base set plusTHOTH_CHILD_ENV_ALLOW.thoth wrap-configturns it on for servers wrapped from now on (listing the variables already in the server'senvblock); existing entries are unchanged.- Broker settings can be read from a workspace settings file named by
THOTH_SECRET_BROKER_SETTINGS_FILE;THOTH_SECRET_BROKER_*variables still override it. The proxy does not fetch them from the workspace itself.
Fixed
thothctl bootstrapno longer sendsfail_on_missing_secret: falsewhen--secret-broker-fail-on-missing-secretis not given. The field is left out, so the proxy's fail-closed default applies.
Known limits
- A custom apex needs a bundle Aten signs for your tenant. Without one the hook fails closed (exit 2).
--apex-domain,--trust-bundle, leaf-key pins andverify-endpointagainst a custom apex all depend on it. The default apex needs none. - The secret-store list and the shell classification in the hook are best-effort for shell text, as described above. They are a guard against common mistakes, not a sandbox, and not a data-loss-prevention or compliance control.
- The local
mrnanddobdetectors are pattern matches with false positives and false negatives.
Added
- In observe mode a call whose request cannot be built (a non-finite number, an unserialisable value, an invalid date, or a body over 4 MiB) is now recorded. The call is handled
exactly as before and the tool still runs; the SDK then sends one second, small request to the enforcer that names the failure class
(
non_finite_number,unserialisable_value,too_deep,invalid_dateortoo_large) and carries no tool arguments, no findings, no data handling and no usage, so the call appears in the would-have-blocked summary. Enforce mode sends nothing extra. When the client has any data handling configured, the request carries identifiers only (agent, tenant, user, tool, session, trace and attestation ids, scope, environment, mode, the data classification label, and an identity binding rebuilt from the agent, tenant and user ids). The request goes only to an enforcer that reports support: the SDK readsGET /health(no credentials, no redirects, at most 64 KiB, 2 second timeout), caches a clean answer for 10 minutes and a failure for 60 seconds, and sends nothing, logging one warning, whencapabilities.client_request_erroris nottrue. That is the case until the platform release that carries the matching enforcer change is deployed; until then behaviour is exactly as before (the known limit under 0.4.0 still applies).
Changed
- A request larger than 4 MiB, the enforcer's default limit, is refused in the SDK before it is
sent: the call is blocked with the reason
enforcer_request_too_largeand the tool does not run, whether or not fail-open is on. Before, the enforcer's refusal could arrive as a dropped connection, which fail-open read as an allow. Use smaller tool arguments or ask a reviewer for a held action. This check is in the SDK and needs no enforcer change.
Fixed
- With fail-open on, an enforcer reply that could not be understood no longer allows the call; it is blocked. A reply with a field of the wrong type is treated the same way. A tool call whose arguments hold NaN, Infinity or an invalid date is blocked before anything is sent, because they would otherwise reach the enforcer as a missing value. The reason for a rejected request now names the status.
Known limits
- In observe mode a request that cannot be built (a non-finite number, an unserialisable value, an invalid date) is not sent and leaves no record: it appears nowhere in the would-have-blocked summary.
Added
-
Local scan detects labelled medical record numbers and labelled dates of birth in tool arguments: two new
dlpcategories,mrnanddob, reported as a category and a count (the matched text is never kept or sent). A match needs a label next to the value:MRN,medical record number,patient idorchart numberfollowed by an identifier;DOB,date of birth,birthdate,birthdayorbornfollowed by an ISO, numeric day-month-year or written-month date with a year from 1900 to 2026. A bare number or a bare date is not matched. These are pattern detectors: they have false positives (for example a UUID right afterpatient id) and false negatives (for exampleuser_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set'sruleset_hashis9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it toaccepted_scanner_ruleset_hashesbefore relying on a client that sends it. The email detector's quantifiers are now bounded (local part up to 64 characters, domain up to 253), so scanning long text is linear; an address whose local part is one run of more than 64 letters or digits is no longer matched. The scan runs in your process; the server side needs the matching Thoth platform release. Theremrnanddobare findings only (rule conditions, evidence): the server does not redact them from what a tool receives unless redaction for them is switched on, which is an explicit workspace choice. An enforcer built between 8 and 24 November rejects a report containingmrnordobwith a 422, because it only knows the original five categories, and the SDK blocks that call even with fail-open on. An older enforcer ignores the newclient_findingsfield; the matching platform release accepts and evaluates it. -
Opt-in withholding of values at the source. Set
dataHandlingToolArguments(hash,redactordrop) anddataHandlingPrompts(hashordrop) oninit(),instrument(), thewrap*/govern*helpers orThothClient, or the environment variablesTHOTH_DATA_HANDLING_TOOL_ARGUMENTS,THOTH_DATA_HANDLING_PROMPTSandTHOTH_DATA_HANDLING_SALT. Hashes use a client-held salt (HMAC-SHA256,node:crypto). The enforce and explain requests declare what was applied indata_handling, a rule that needs argument values holds the call (args_withheld) and says why, and modified arguments are never applied to a call whose arguments were withheld: if the server returns a rewrite anyway, the call fails closed (the tool does not run,ThothPolicyViolation) because that is a server or contract problem. Nothing changes when unset; an invalid value throws when the client is built. No new runtime dependencies. Holding a call onargs_withheldneeds the matching Thoth platform change: against an enforcer without it, hashed or redacted argument values are evaluated as if they were real, so rules on argument values would not hold and those calls could be allowed. -
Local scanning when tool arguments are withheld. With
dataHandlingToolArgumentsset tohash,redactordrop, the SDK scans the raw arguments (and the destination host in the request metadata) in your process before withholding them, and sendsclient_findingsnext todata_handling: counts and categories of credentials, email addresses, phone numbers, SSN-shaped numbers and confidentiality phrases, whether a path looks sensitive, a destination hostname, and recipient domains. The enforcer must be on a Thoth platform release that acceptsclient_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself asatensec-thoth-tswith rulesetthoth-detectors.v1, ruleset hash9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it setsaccept_local_scanand lists that hash inaccepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out ofscannedinstead of reported clean.THOTH_DATA_HANDLING_LOCAL_SCAN=off(ordataHandlingLocalScan: false) sends no findings. A workspace withrequire_client_findingsholds calls from a client that withholds arguments and sends no findings. The detector spec ships in the package (dist/detectors.v1.json,src/detectors.v1.json);resolveJsonModuleis now on in the build so the JSON is emitted next to the code. -
The local scan leaves
recipientout ofscanned, instead of reporting it clean or milder, when a recipient field holds one of the 23 spaces that Python splits words on and ASCII does not (U+001C to U+001F, U+0085, U+00A0, U+1680, U+2000 to U+200A, U+2028, U+2029, U+202F, U+205F, U+3000). Accented letters and other text in recipient fields still scan.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel, and of the Linux runtime for x86_64 and arm64 (install.sh installs it).
Windows artifacts are not included and remain at v0.3.6.
thoth update and thothctl update now verify a signature before they install, so this is
the release to update to first: versions up to 0.3.15 update to it as before, and from 0.3.16 on
every update is verified.
Security
thoth updateandthothctl updatenow require a detached Ed25519 signature ofchecksums.sha256(checksums.sha256.ed25519, published with each release) and verify it against public keys compiled into the binary before they trust the checksums or install. Before, the expected hash came from the same release as the binary, so anyone who could replace release assets could replace both. A missing, invalid or unknown-key signature refuses the install, and there is no flag to skip the check.- The signature covers the release version as well as the checksums, and self-update installs
only a version strictly newer than the one running, with or without
--force. An older signed release cannot be replayed to roll a binary back, and the same version is not reinstalled. - Links the server supplies (the sign-in and step-up approval URLs) are validated before
thothctlopens them: https only (http only for loopback), no credentials, whitespace, control characters or quotes, and a host that is loopback, anatensecurity.comorauthkit.appdomain, or shares a domain with the configured API host. Otherwise the link is not opened, a warning is printed, and the URL, which is already printed, can be opened by hand. The browser is now opened without a shell: Windows no longer goes throughcmd /C start, which could run a command from a crafted URL and truncated legitimate links holding&. - The MCP proxy takes the context the enforcer judges a call by (purpose, identity, auth and delegation context, model and cost, original request, data classification, action attestation id) from the call's own parameters and the operator's configuration, never from the tool arguments, which the model chooses. A model could otherwise declare its own purpose, role or a lower data classification. Arguments can still raise a call's sensitivity but never lower it.
Changed
thoth update --forceandthothctl update --forceno longer reinstall the current version or an older one: an update installs only a strictly newer release whose signature verifies. The flag is still accepted, so existing scripts do not break, prints a note and does nothing.
Added
- When a held action is approved or denied, the decision and
PolicyViolationErrorcarry the signedTerminalReceipt, andReceiptkeeps the receipt written when it was held (it was dropped). While a hold is pending, the SDK logs one line saying where to approve or deny it.EnforcementDecisionalso carriesProfileID,ProfileVersion,TenantDeclarationsStatusandRiskClassificationwhen the enforcer returns them. Event telemetry now includes the receipt'ssignature_key_idand the terminal receipt.
Fixed
- A held call that is approved now runs with the arguments the enforcer redacted
when it held the call. The approval comes back as a plain ALLOW, so the call
used to start with the original arguments (an approved email to an outside
recipient was sent with its card number). A modification the SDK cannot map
back onto the call, or one that arrives with no arguments, now returns a
PolicyViolationErrorinstead of running the original arguments, and a tool with its ownargsparameter is no longer misread as the positional form. - Enforce and hold-status requests send the API key in both
X-Api-KeyandAuthorization: Bearer, as event ingestion already does. The SDK sent only Bearer, so behind an ingress that stripsAuthorizationevery call was blocked. - A held call now waits up to 15 minutes for approval, as the Python and
TypeScript SDKs do. The wait was fixed at 30 seconds with no way to change it,
so a person approving in Slack or the dashboard a minute later found the call
already blocked. Set
Config.StepUpTimeoutfor a different limit (a shorter one suits unattended jobs). - A step-up decision with no hold token is refused at once, instead of polling an empty token for the whole wait before blocking.
- The SDK no longer writes your tool's own errors to the process log. Errors that are not Thoth's are returned as they came, and a tool error can carry URLs, tokens or data.
- A call the enforcer allows with its arguments redacted or filtered (outbound
DLP redaction, or purpose-limited retrieval) now runs with the modified
arguments. The enforcer sends that as
decisionALLOW next toauthorization_decisionMODIFY, and the SDK used to read onlydecision, so the tool ran with the original arguments while the decision log said MODIFY. A stricterdecision(BLOCK, STEP_UP or DEFER) still wins. The TypeScript SDK was not affected.
Changed
Config.APIURLandTHOTH_API_URLignore blank (whitespace-only) values, so the order is alwaysConfig.APIURL, thenTHOTH_API_URL, thenhttps://api.atensecurity.com.Config.APIURLdefaults toDefaultAPIURL(https://api.atensecurity.com), the API for trial and self-serve workspaces, when neitherConfig.APIURLnorTHOTH_API_URLis set. PreviouslyNewClientreturned an error. Enterprise workspaces keep setting their own host; an explicit value always wins.
Fixed
ThothPolicyViolationandThothDeferredErrorcan be copied and pickled. A framework that re-raises the exception from a task (AG2 does) rebuilt it from its message alone and failed withTypeError: ... missing 1 required positional argument: 'reason', so a refused call surfaced as that error instead of telling the model the call was refused.- Observe mode now sends each call to the enforcer, as the product defines
observe (evaluate, record what would have been held or blocked, allow). The
SDK used to skip the enforcer entirely when
enforcement="observe", so those agents produced no "would have blocked" data and the ready-to-enforce checks had nothing to read. The tool always runs with its original arguments, a hold or modification in the answer is ignored, and an enforcer failure never fails the call. - Enforce, explain and hold-status requests send the API key in both
X-Api-KeyandAuthorization: Bearer, as event ingestion already does. The SDK sent onlyX-Api-Keyto enforce and only Bearer to the hold poll, so behind an ingress that strips one of them either every call was blocked or a held call could never be approved. - A call the enforcer modifies now runs with the modified arguments in every call
shape. Keyword-only calls (
fn(to=..., body=...)) used to run with the original arguments, because only positional and single-dict calls were mapped. A held call that is then approved also runs with the arguments the enforcer redacted when it held the call (the approval used to start the original call). A modification the SDK cannot map back onto the call, or one that arrives with no arguments, now refuses the call with aThothPolicyViolationinstead of running the original arguments. - Event telemetry now includes the receipt's
signature_key_id, the field the enforcer uses for the signing key. The allow-list only hadkey_id, so the key never reached events. - The copy of the tool arguments sent to the enforcer no longer loses
structure. Pydantic models, dataclasses, sets and enums keep their contents
(they used to become a plain string), and nothing nested up to 64 levels is
replaced by
"[truncated]"; deeper values are kept as JSON text. The tool still runs on your original objects, so a policy can now see the same fields the tool does, such as the recipient of a message. Arbitrary objects (a client, a session) are not walked, since they can hold credentials, and a model's or dataclass's every field is kept. Arguments with more than 100,000 values, such as one shared object repeated until it explodes, raiseToolArgumentsTooLargeErrorand the call does not run. - A call the enforcer allows with its arguments redacted or filtered (outbound
DLP redaction, or purpose-limited retrieval) now runs with the modified
arguments. The enforcer sends that as
decisionALLOW next toauthorization_decisionMODIFY, and the SDK used to read onlydecision, so the tool ran with the original arguments while the decision log said MODIFY. A stricterdecision(BLOCK, STEP_UP or DEFER) still wins. Update to get the redaction applied; the TypeScript SDK was not affected. wrap_autogen_toolstakes the Thoth settings (agent_id,tenant_id,approved_scopeand the rest) as its docstring showed; it used to accept only a tracer, so the documented example raisedTypeError. Passing a tracer still works. It is for AutoGen 0.2-style function maps (AG2 0.x).
Added
thoth.init()now also governs the Anthropic client's tools: every tool the tool runner (client.beta.messages.tool_runner) or the session tool runner calls, and any directtool.call(). That covers@beta_tooland@beta_async_toolfunctions, MCP tools frommcp_toolandasync_mcp_tool(checked once, not again by the MCP hook), and built-in tools such as your memory tool, including classes defined afterinit(). Each call is checked with the input it runs with; a refused call never runs, and Claude gets "Thoth refused this call: <reason>" as an error tool result. Tested withanthropic2.3.0.thoth.init()now also governs AG2 (1.x): every function tool an AG2Agentruns, from@tool, aToolkitor a subagent tool, is checked with the arguments it runs with, after the tool's and the agent's tool middleware. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as an error tool result. Tested withag21.2.2.
Changed
- An explicit
api_urlnow wins overTHOTH_API_URL, then the environment variable, then the defaulthttps://api.atensecurity.com, the same order the TypeScript and Go SDKs use.ThothConfigused to let the environment variable override a value passed in config, so a workload that sets both now talks to theapi_urlit passed. Blank values are ignored. - The
autogenextra now installs AG2 (ag2>=1.0), and anag2extra is added. It used to installpyautogen, which is now a proxy for Microsoft'sautogen-agentchat, an API Thoth didn't govern. For Microsoft's agents, use Microsoft Agent Framework, whichthoth.init()governs. api_urldefaults tohttps://api.atensecurity.com, the API for trial and self-serve workspaces, when neitherapi_urlnorTHOTH_API_URLis set, including forthoth.init(). Previously the SDK refused to start without one. Enterprise workspaces keep setting their own host.
Fixed
- Observe mode now sends each call to the enforcer, as the product defines
observe (evaluate, record what would have been held or blocked, allow). The
SDK used to skip the enforcer entirely when
enforcementwasobserve, so those agents produced no "would have blocked" data and the ready-to-enforce checks had nothing to read. The tool always runs with its original arguments, a hold or modification in the answer is ignored, and an enforcer failure never fails the call. - Enforce, explain and hold-status requests send the API key in both
X-Api-KeyandAuthorization: Bearer, as event ingestion already does. The SDK sent only Bearer, so behind an ingress that stripsAuthorizationevery call was blocked. - A held call that is approved now runs with the arguments the enforcer redacted
when it held the call. The approval comes back as a plain allow, so the call
used to start with the original arguments (an approved email to an outside
recipient was sent with its card number). A modification the SDK cannot map
back onto the call, or one that arrives with no arguments, now refuses the
call with a
ThothPolicyViolationinstead of running the original arguments. A tool whose own parameter is namedargsis no longer misread as the positional form. - A deferred action that the enforcer holds for review is now waited on like any other held action. It used to fail straight away as an unanswered deferral, although the hold was open.
Added
- When a held action is approved or denied, the decision carries the signed
terminalReceipt(and thereceiptfrom when it was held). While it waits, the SDK prints one line saying where to approve or deny it.EnforcementDecisionalso carriesprofileId,profileVersion,tenantDeclarationsStatusandriskClassificationwhen the enforcer returns them. - The copy of the tool arguments sent to the enforcer no longer loses
structure. Maps and Sets keep their contents (they used to serialise as
{}), objects withtoJSONuse it, and nothing nested up to 64 levels is replaced by"[truncated]"; deeper values are kept as JSON text. An object that appears twice in the arguments is no longer marked"[circular]"the second time; only a real cycle is. The tool still runs on your original objects, so a policy sees the same fields the tool does, such as the recipient of a message. Arguments with more than 100,000 values, such as one shared object repeated until it explodes, throw before the tool runs.
Changed
apiUrldefaults tohttps://api.atensecurity.com, the API for trial and self-serve workspaces, when neitherapiUrlnorTHOTH_API_URLis set. Previously the SDK refused to start without one. Enterprise workspaces keep setting their own host; an explicitapiUrlorTHOTH_API_URLalways wins.
Added
thoth.governance.RecipientPolicyresource (bridged fromthoth_recipient_policy): the outside-recipient guard.modeisobserve(the default: Thoth records what it would hold),enforce(sends, shares and invitations addressed outside the workspace step up for approval) oroff, withinternalDomains,allowedExternalDomainsandallowedDestinations. Needs the server from production v0.6.32 or later.thoth.governance.EvidencePackresource andthoth.governance.getEvidencePacks(bridged fromthoth_evidence_packandthoth_evidence_packs): build a signed evidence pack for a period and list the workspace's packs.thoth.governance.getAgentObserveSummary(bridged fromthoth_agent_observe_summary): what enforcing would have changed for an agent in observe, and whether it is ready to enforce.thoth.governance.AgentEnforcementgainsafterDecline(raise, the default;stop; orquarantine) andafterDeclineMinutes(5 to 1440, default 30), bridged fromthoth_agent_enforcement: what a person declining one of the agent's held actions does.
Changed
- Updated the Terraform provider bridge to
v0.1.24. - Every Terraform resource and data source now has a Pulumi mapping, and a test fails when one
is added without it. The schema is regenerated, which also brings the
rulesJsondescription onPolicyup to date. - Registering an agent (
thoth.governance.Agent) needs an admin on every workspace, and setting its mode while registering needs a recent second factor when acting as a person; API keys are exempt. This is enforced by the server from production v0.6.31 or later.
Security
- Updated
golang.org/x/netto v0.62.0, a security update.
Needs the server from production v0.6.32 or later, which adds the recipient-policy endpoint
(evidence packs need v0.6.18 or later, and after_decline needs v0.6.29 or later).
Added
thoth_recipient_policyresource: the outside-recipient guard.modeisobserve(the default: Thoth records what it would hold),enforce(sends, shares and invitations addressed outside the workspace step up for approval) oroff.internal_domainsdefault to the workspace's sign-in domains;allowed_external_domainscover plain sends to customers and partners, never forwards, shares or exports;allowed_destinationsnames non-address targets such aspatient-portal. Destroying the resource restores the defaults. Needs the server from production v0.6.32 or later.thoth_evidence_packresource: queue a signed evidence pack for a period (the previous calendar month by default; at most 31 days, already ended) and wait until it is built. A pack for the same period already in progress is adopted. Destroying it only removes it from state; download and verify packs withthothctl evidence pack downloadandthothctl evidence verify --pack.thoth_evidence_packsdata source: the workspace's packs and their status, without part locations.thoth_agent_observe_summarydata source: what enforcing would have held or denied for an agent in observe mode, andready_to_enforcewith each check (at least 7 days observed, at least 50 actions in the last 7 days, at most 2% held or denied, nothing denied in the last 3 days). Use it in a precondition onthoth_agent_enforcement; Thoth never switches an agent itself.thoth_agent_enforcementgainsafter_decline(raise, the default;stop; orquarantine) andafter_decline_minutes(5 to 1440, default 30): what a person declining one of the agent's held actions does. Withraise, the agent's next actions of the same kind need approval for that long, in every session. Needs the server from production v0.6.29 or later. Destroying the resource returns it toraisefor 30 minutes.
Changed
- Registering an agent (
thoth_agent) needs an admin on every workspace, not only on the shared runtime. Settingenforcement_modewhile registering also needs a recent second factor when the provider acts as a person (use_thothctl_session); API keys are exempt, as forthoth_agent_enforcement. This is enforced by the server from production v0.6.31 or later.
Security
- Updated
golang.org/x/netto v0.62.0, a security update.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel, and of the Linux runtime for x86_64 and arm64 (install.sh installs it).
Windows artifacts are not included and remain at v0.3.6.
This release fixes three ways the MCP proxy could show policy less than the tool call it
forwarded, so anyone running the proxy should update. settings recipient-policy needs the
server from production v0.6.32 or later.
Security
- The proxy now evaluates policy on the arguments that will actually run. It used to build the policy input from a rewritten copy in which every string was treated as a URL and a value holding something that looked like a secret was replaced whole, so part of a tool call could be hidden from policy rules while the original arguments were still forwarded. Only real URLs are rewritten now, credentials are masked in place so the rest of the value stays readable, and the proxy's local checks read the original arguments, which are never serialized or sent.
- A credential is masked to the end of its token (the next whitespace, quote or shell separator, matched without regard to case), so no tail of it reaches the copy sent to Thoth. If masking hid path-like text glued to a credential, the call is held for approval instead of passing.
- The hold for a masked credential never downgrades a call that policy would block or defer: it
only raises a call that was otherwise clean. Whether a value could hide more than a credential
is judged against the characters a credential can contain, so punctuation such as
#,:,!and brackets is caught, and a value under a sensitive key that holds more than a credential now counts.
Added
thothctl settings recipient-policy get|setconfigures the outside-recipient guard, the same setting as thethoth_recipient_policyTerraform resource.set --mode off|observe|enforcechooses whether sends, shares and invitations addressed outside the workspace are only recorded or held for review.--internal-domains,--allowed-external-domainsand--allowed-destinationstake comma-separated lists that replace the stored list, and each has a matching--clear-*flag to empty it. Only the flags given change, and the command needs an admin with a recent second factor. Needs the server from production v0.6.32 or later.thothctl settings compliance get|set|cleardeclares the compliance regimes the workspace is assessed against, without Terraform.set --regimes soc2,hipaa --mode observe|enforcedeclares them for the whole workspace: inobserveeach control's result is recorded and no decision changes; inenforcea declared control that fails can deny an action or hold it for approval.clearremoves the declaration, andgetshows the regimes, mode and revision. It uses the same safeguards as Terraform: the revision it read (a change made since is refused), the catalogue the running enforcer reports, and a request ID that can't apply twice. It needs an admin with a recent second factor and a plan with compliance mappings. These are mappings to help an audit, not certifications.thothctl kill-switch lift [--confirm]lifts a workspace-wide kill switch. Without--confirmit shows the agents and endpoints it would release; with it, it lifts the kill switch and reads the result back. It releases only the quarantines the kill switch made, so earlier or deliberate quarantines stay. It needs an admin with a recent second factor, and a server with the kill switch's lift route.thothctl agents mode settakes--after-decline raise|stop|quarantineand--after-decline-minutes 5..1440(withraise): what a person declining one of the agent's held actions does. Withraise, the default, the agent's next actions of the same kind need approval for that long, in every session;stopisolates that session;quarantinequarantines the agent. Leaving them out keeps the current setting. Needs the server from production v0.6.29 or later.
Changed
- Registering an agent (
thothctl init) needs an admin on every workspace, and setting its mode while registering needs a recent second factor when signed in as a person; API keys are exempt, as foragents mode set. The server enforces this from production v0.6.31 or later;thothctlshows the server's refusal as it is.
Fixed
acting_for(user, session_id=...): Thoth now sees a session ID derived from the tenant, agent, user and your session ID, rather than your ID itself, so two users who name the same session never share one in Thoth. The ID is stable across processes, so resuming a conversation still continues its history, and the TypeScript SDK derives the same ID.- Claude Agent SDK:
instrument_claude_agent_sdk_optionsnow checks every tool call in a PreToolUse hook, including tools inallowed_toolsand calls in bypass-permissions mode, which the SDK never passes tocan_use_tooland which Thoth therefore didn't check before. An allowed call is still left to the SDK's rules and yourcan_use_tool, which reuses the hook's decision instead of checking again. A call whose arguments Thoth would change is denied by the hook.
Added
thoth.init()now also governs MCP tool calls made with themcppackage'sClientSession.call_tool, whether your code calls an MCP server directly or through a framework's MCP adapter. A call a framework hook has already checked (the same arguments, under the MCP tool's name or a prefixed form of it, such asgithub_create_issueforcreate_issue) isn't checked or counted twice; any other call is checked. A refused call is never sent to the server and returns an error result, "Thoth refused this call: <reason>". Tested withmcp2.3.0.thoth.init()now also governs the Claude Agent SDK: everyquery()andClaudeSDKClientconnection gets Thoth's PreToolUse check, so each tool call, including tools inallowed_tools, is checked before the CLI runs it, without passing options throughinstrument_claude_agent_sdk_options. Your own hooks still run, your options object is not changed, and options you instrumented by hand are not checked twice. A refused call is denied with "Thoth refused this call: <reason>". Tested withclaude-agent-sdk0.2.176.thoth.init()now also governs Strands Agents tools:@toolfunctions, MCP tools and agents used as tools, whether the model calls them or your code callsagent.tool.<name>()directly. Each call is checked after Strands' hooks and tool middleware, with exactly the input that runs. A refused call never runs and ends with an error tool result, "Thoth refused this call: <reason>". Tested withstrands-agents1.63.0.thoth.init()now also governs Microsoft Agent Framework tools:@toolfunctions, agents used as tools and MCP tools, at the point every tool call runs, after function middleware and approval, with exactly the arguments Thoth checked. The framework's invocation context still reaches the tool and is not sent to Thoth. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool result. Tested withagent-framework-core1.24.0.thoth.init()now also governs Google ADK tools (FunctionTool, MCP tools, agent tools and your ownBaseToolsubclasses, including ones defined afterinit()), checked atrun_async, where every ADK tool path ends, after the before-tool callbacks, and run with exactly the arguments Thoth checked. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool result. Tested withgoogle-adk2.13.0'sLlmAgentandInMemoryRunner.thoth.init()now also governs Pydantic AI tool calls (function tools and MCP toolsets), checked with the final validated arguments, after Pydantic AI's own capability hooks, and run with exactly what Thoth checked. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool result; a call that can't be checked is refused. Output functions are checked before they run in every output mode (tool,TextOutput, native and prompted), by the function's name and arguments, and a refusal raisesThothPolicyViolation, since text in its place would become the agent's typed final answer; plain schema outputs call no function of yours. Tested withpydantic-ai-slim2.64.0'sAgentandFunctionModel.thoth.init()now also governs CrewAI tools, including tools defined beforeinit()runs:@tooltools andBaseToolsubclasses, whether an agent calls them natively (tool.run) or through CrewAI's text tool loop (CrewStructuredTool.invoke). Each call is checked with its arguments and runs with exactly what Thoth checked. A refused call never runs, and the agent gets "Thoth refused this call: <reason>". A result CrewAI serves from its tool cache doesn't run the tool and isn't checked again. Tested withcrewai1.15.33.thoth.init()now also governs OpenAI Agents SDK (openai-agents) function tools, including tools defined beforeinit()runs. Each call is checked with the model's arguments and runs with exactly what Thoth checked; arguments that aren't a JSON object are refused. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool's output. Local shell, computer and apply_patch tools are not covered by this hook. Tested withopenai-agents0.24.0'sRunner.thoth.init(): one call at startup governs every LangChain tool in the process, including the tools LangGraph'sToolNoderuns, with no change to any tool. It readsTHOTH_AGENT_ID,THOTH_TENANT_ID,THOTH_API_URLandTHOTH_API_KEY;approved_scopeis optional. The server's observe or enforce mode for the agent applies, a refusal raisesThothPolicyViolationbefore the tool runs, and each tool is reported to the tool inventory the first time it is used.thoth.shutdown()removes the hooks.thoth.acting_for(user_id, session_id=None): a block in which governed tools act for that user, in one session (generated when not given).- A tool already wrapped by
instrument(),instrument_toolchain()orinstrument_langgraph()is checked once, not again byinit()'s hook.
Fixed
actingFor(userId, fn, { sessionId }): Thoth now sees a session ID derived from the tenant, agent, user and your session ID, rather than your ID itself, so two users who name the same session never share one in Thoth. The ID is stable across processes, and the Python SDK derives the same ID.- README: the LangChain.js example passed an
AgentExecutortoinstrument(), which wraps tools with a.runmethod. LangChain.js tools have none, so no tool in that example was governed. The section now usesgovernLangChainTools.
Added
-
actingFor(userId, fn, { sessionId })now covers every governed tool given nouserId, including those governed withinstrument()or agovern*function (the AI SDK, OpenAI Agents, Mastra, Genkit, the Claude Agent SDK and the rest), and no longer needsinit(). Govern the tools once at startup and each call in a block is checked as that user. Every governed tool of the same agent in a block shares one session ID and tool-call history, while each is still checked with its own config (approved scope, enforcement, API key, purpose and the rest), and a named session continues across requests even when the tools are governed anew per request. AuserIdset in a tool's config still wins. -
init()now also governs Strands Agents and Google ADK. For Strands, every agent-loop tool call and every directagent.tool.<name>()call is checked with exactly the input that runs; a streaming tool runs inside the check and its events still stream as they come, and a refused call ends with an error tool result, "Thoth refused this call: <reason>". For ADK, each tool anLlmAgentuses is governed as the agent resolves its tools, so your ownBaseToolsubclasses are governed too; a refused call throwsThothPolicyViolationfromrunAsync. Tested with@strands-agents/sdk1.23.0 and@google/adk2.4.0. -
init()andactingFor(): one call at startup governs every LangChain.js and LangGraph.js tool and every MCP client call (@modelcontextprotocol/sdk) in the process, including tools and clients created before it, with no tools wrapped.actingFor(userId, fn, { sessionId })runs a request for the user it serves, in its own session or a named one shared by that user's blocks. An MCP call that a governed LangChain tool already checked (the same arguments, under the MCP tool's name or a prefixed form of it) isn't checked twice.init()readsTHOTH_AGENT_IDandTHOTH_TENANT_IDwith the existing variables;shutdown()removes it. Frameworks whose tools are plain objects keep theirgovern*functions. Tested with@langchain/core1.3.2 and@modelcontextprotocol/sdk1.32.2. -
Cloudflare Agents: documented governing a chat agent's tools with
governAiSdkTools, sinceAIChatAgent(@cloudflare/ai-chat) runs tools through the AI SDK andthis.mcp.getAITools()returns MCP tools as an AI SDK tool set. Tested with a tool set in that shape. -
LangChain.js and LangGraph.js:
governLangChainTools(tools, config)(also@atensec/thoth/langchain) returns governed copies of LangChain tools for LangGraph'sToolNodeandcreateReactAgentand for LangChain agents. Eachinvoke(andcall) is checked with the tool's arguments, aToolCallby itsargs; a refused call never runs. The tools passed in are unchanged. Tested with@langchain/core1.3.2 and@langchain/langgraph1.6.0. -
Mastra:
governMastraTools(tools, config)(also@atensec/thoth/mastra) returns governed copies of a Mastra agent's tools, keyed the same. Eachexecuteis checked with the tool's input, Mastra's execution context passes through unchanged, and a refused call never runs. Copies keep each tool's fields and class; the tools passed in are unchanged. Tested with a MastraAgentfrom@mastra/core1.81.0. -
OpenAI Agents SDK:
governOpenAIAgentTools(tools, config)(also@atensec/thoth/openai-agents) governs an agent's function tools. Each call is checked with the model's arguments before the tool runs, and the tool runs with exactly the arguments Thoth checked; arguments that aren't a JSON object are refused. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool's output. Hosted tools are left as they are; local tools Thoth can't check (shell, apply_patch, computer) make it throw unless named inoptions.ungoverned. Tested with@openai/agents0.21.0'srun(). -
Strands Agents:
governStrandsTools(tools, config)(also@atensec/thoth/strands) returns governed copies of a Strands agent's tools. Each call is checked with its final input when the tool runs, and the tool runs with exactly the input Thoth checked, so a later hook can't change it after the check; a refused call never runs. Tested with a StrandsAgentfrom@strands-agents/sdk1.23.0. -
Google ADK:
governAdkTools(tools, config)(also@atensec/thoth/google-adk) returns governed copies of an ADK agent's tools. Each call is checked with its final arguments when the tool'srunAsyncruns, and the tool runs with exactly the arguments Thoth checked, so abeforeToolCallbackcan't change them after the check; a refused call never runs. Tested with anLlmAgentandInMemoryRunnerfrom@google/adk2.4.0. -
Genkit:
thothGenkitMiddleware(generateMiddleware, config)(also@atensec/thoth/genkit) builds Genkit generate middleware whosetoolhook checks every tool call before it runs and runs the tool with exactly the input Thoth checked. Pass it last inuse(use: [thoth()]), so no other middleware can change the input after the check. A refused call never runs, and the model gets "Thoth refused this call: <reason>" as the tool's output. Tested withgenkit1.43.0'sgenerate. -
Claude Agent SDK:
governClaudeAgentOptions(options, config)(also@atensec/thoth/claude-agent-sdk) adds Thoth as PreToolUse, PostToolUse and PostToolUseFailure hooks, so every tool call is checked before it runs, including tools inallowedTools. An allowed call is left to the SDK's own permission rules; a refused call, or one Thoth can't check, is denied with the reason; a held call waits up to 16 minutes. Tested with@anthropic-ai/claude-agent-sdk0.3.316's hook types. -
MCP clients:
governMcpClient(client, config)(also@atensec/thoth/mcp) governs everycallToolan@modelcontextprotocol/sdkclient makes, from your code or a framework's MCP adapter. Tools are governed by name as they are first called, in one session; a refused call never reaches the MCP server; listed tools are reported to the tool inventory. A call a governed wrapper already checked is not checked again. Tested with@modelcontextprotocol/sdk1.32.2. -
Vercel AI SDK:
governAiSdkTools(tools, config)(also@atensec/thoth/ai-sdk) governs a tool set forgenerateText,streamTextor anAgent. Each tool with anexecuteis checked before it runs, with only the tool's input sent as its arguments; the call options reachexecuteunchanged, and tools withoutexecuteare left alone. Input schemas (Zod or JSON Schema) are reported to the tool inventory as JSON Schema. Tested with AI SDK 7.0.159.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel, and of the Linux runtime for x86_64 and arm64, the first Linux release
since v0.3.6 (install.sh installs it). Windows artifacts are not included and
remain at v0.3.6.
Evidence pack commands need the server from production v0.6.18 or later
(deployed 29 October 2026); session isolation needs v0.6.14 or later.
Added
- Evidence packs.
thothctl evidence pack build [--period-start RFC3339 --period-end RFC3339]builds a signed evidence pack for a period of up to 31 days (the previous calendar month by default), in the background;thothctl evidence pack listshows its status;thothctl evidence pack download --pack-id <id> [--output-dir DIR]saves every part (paid plans, or a trial's read-only retention window), fetching each from its short-lived link without sending your Thoth credential to storage. - Offline verification.
thothctl evidence verify --pack <part>...checks every part of a pack with no network access: the part sequence and file digests, each manifest's signature, every decision's attestation and receipt signature over the exact bytes it covers, the event chain's hashes, signatures and continuity, links and counts. A key is trusted only for its published purpose, from the list built intothothctl, or from--trusted-key PURPOSE=SHA256(repeatable) instead. The summary says what verification shows and what it does not (that every agent action reached Thoth, or that any control or requirement is met).--jsongives a machine-readable result. - Published signing keys.
thothctl evidence trusted-keys [--json]prints the decision-receipt and evidence-pack key fingerprints built into this release, as published at https://docs.atensecurity.com/signing-keys.json. - Session isolation.
thothctl investigate isolate --session-id <id> [--quarantine-agent] --confirmmakes Thoth deny every action in one session until it is released, while the agent's other sessions continue;--quarantine-agentalso quarantines the agent.thothctl investigate release --session-id <id> --confirmreleases it and restores the session's earlier status; an agent quarantine stays until lifted withthothctl agents quarantine lift.
Version 0.1.23 was prepared on 25 October but never published; this release contains it and everything since, bridged from Terraform provider 0.1.23.
Added
thoth.governance.TeamMemberandthoth.governance.SlackApprovalsresources (bridged fromthoth_team_memberandthoth_slack_approvals). Both needuseThothctlSession.- Provider configuration
useThothctlSession(andthothctlSessionFile): act as the person signed in withthothctl auth login, as in the Terraform provider. thoth.governance.ModelArtifactresource andgetModelArtifactsfunction (bridged fromthoth_model_artifactandthoth_model_artifacts): the model artifact registry and its activation gate.thoth.governance.Policyresource (bridged fromthoth_policy): a policy rule in dev or prod. A rule created with a key that is not an org admin's stays pending until an org admin approves it.thoth.governance.OrgSecuritySettingsresource (bridged fromthoth_org_security_settings): require a second factor, limit how long a sign-in lasts, and restrict the networks people and API keys may connect from.- Updated the Terraform provider bridge to
v0.1.23. thoth.governance.Agentresource (bridged fromthoth_agent): registers an agent with its display name, owner and approved scope.
Changed
thoth.governance.PolicyException.holdTokenis now secret, matching the Terraform provider.
Version 0.1.23 was prepared on 25 October but never published; this release contains it and everything since. Needs the server from production v0.6.13 or later (deployed 28 October 2026) for thoth_policy, thoth_team_member, thoth_slack_approvals, thoth_model_artifact and thoth_org_security_settings.
Added
thoth_policyresource: a policy rule in dev or prod, with its type, enforcement,applied_toand conditions (rules_json). A rule created with a key that is not an org admin's starts pending until an org admin approves it;statusshows that and Terraform never approves.enabled = falseturns a rule off. Changingenvironmentreplaces the rule. Import withenvironment/policy_id.thoth_team_memberresource: invite a person, set their role and remove them, on self-serve, trial and dedicated workspaces.thoth_slack_approvalsresource: the Slack approvals channel and the reviewers who may approve held actions, by email.- Both need a signed-in admin (
use_thothctl_session); API-key runs are refused with the fix. use_thothctl_session(andthothctl_session_file): the provider acts as the person signed in withthothctl auth login, renewing the session as thothctl does and sharing it. Changes that need a recent second factor use the proof fromthothctl auth step-up. Needed for changes that belong to a person, such as Slack reviewers and team members; CI/CD keeps using API keys.thoth_model_artifactresource: registers a model artifact and takes it through Thoth's activation gate (provenanceverification, thenscreeningorwaiver_reason, thenactivate). Registration fields cannot change, and activation and waivers cannot be undone; Terraform refuses plans that try. Destroying it keeps the artifact and its evidence in Thoth.thoth_model_artifactsdata source: lists registered artifacts, optionally by lifecycle status.thoth_org_security_settingsresource: sign-in security for the workspace.require_mfaasks every sign-in session (dashboard, thothctl, MCP) for a second factor;session_timeout_minutes(15 to 43200, default 720) limits how long a sign-in lasts; andip_allowlistrestricts the networks people and API keys may connect from. GovAPI enforces all three. Destroying the resource removes the policy. Ranges must be written in canonical CIDR form, and the allowlist must include the address the Terraform run connects from.thoth_agentresource: registers an agent (agent_id,display_name,owner_email,approved_scope) and reads back itsstatus. It never sets the mode (thoth_agent_enforcement) or changes a quarantine. Destroying it only removes it from state: Thoth keeps registrations with their decision history.
Changed
thoth_policy_change_artifact_apply: GovAPI now refuses to apply the same policy twice (409; a policy regenerated by a second review can be applied) and requires a plan with policy bundles, since applying publishes one.thoth_policy_exception.hold_tokenis sensitive and write-only. Thoth no longer returns hold tokens from the exception API, since a hold token is a credential, so reads keep the configured value instead of planning a replacement.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Built with Rust 1.99.1. Versions 0.3.13 to 0.3.16 were prepared in the
repository on 25 October but never published; this release contains all of
them. Some commands need the server from production v0.6.13 or later
(deployed 28 October 2026).
Added
- Policy rules.
thothctl governance policies list|create|update|toggle|promote|decide|deletemanages policy rules in dev or prod. A rule created by someone who is not an org admin stays pending until an org admin approves it withdecide;deleteneeds--confirm.thothctl governance policies simulate --environment dev|prod --tool <name> --agent-id <agent> [--params JSON]shows what Thoth would decide for one tool call, and which rules matched, without running it. A simulation changes nothing: no hold, approval request, quarantine, notification or record.--agent-idis required on self-serve and trial workspaces. - Exceptions.
thothctl exceptions list|get|create|review: request a policy exception for a blocked action (--violation-id,--justification,--frequency,--data-sensitivity), and review requests (--decision approve|deny|request_changes|approve_with_modification, with--policy-change-filefor a modification).thothctl exceptions artifacts list|get|applyapplies an approved exception's policy change as a policy bundle (--format rego|cedar,--mode enforce|observe) and ends its temporary override; the same policy is never applied twice, and applying needs a plan with policy bundles. - Held actions.
thothctl approvals get --approval-id <id>shows one held action, andthothctl approvals resolve --approval-id <id> --decision approve|deny [--note TEXT]approves or denies it. Repeating the same decision is harmless and a conflicting one is refused. - Agents and endpoints.
thothctl agents quarantine set|lift --agent-id <id>quarantines an agent or lifts the quarantine.thothctl agents discovered list|promote|block|unblockacts on agents Thoth has seen calling without a registration (blockneeds--confirm).thothctl kill-switch [--env dev|staging|prod] --confirmquarantines every registered agent and active endpoint and stops running sessions;thothctl endpoints quarantine set|lift --endpoint-id <id>is the way back.thothctl fleets list|get|create|update|delete|deploy|pause|rollbackmanages fleets (deleteandrollbackneed--confirm), andthothctl endpoints set-mode --endpoint-id <id> --mode enforce|observe|offsets one or more endpoints' mode. - Tools.
thothctl tools confirm --agent-id <id>declares a tool for one agent; without it the declaration covers every agent. - People and sign-in.
thothctl teammanages people as a signed-in admin: on self-serve and trial workspacesteam members list|remove|set-role,team invitations list|create|revokeandteam requests list|approve|deny; on dedicated workspacesteam org-members list|invite|remove|set-role. Neither removes yourself or the last admin.thothctl settings security get|set|removemanages sign-in security (--require-mfa,--session-timeout-minutes,--ip-allowlist);getshows the address Thoth sees you connecting from, which an allowlist must include.thothctl auth step-upconfirms a second factor in the browser ahead of time; the proof lasts about 15 minutes and is shared with the Terraform provider'suse_thothctl_session. - Slack.
thothctl slack status|channels|set-channelandthothctl slack reviewers list|candidates|setchoose the approvals channel and who approves (API keys cannot appoint reviewers).thothctl support status|create|invite|resendmanages the Slack Connect support channel with Aten as a signed-in organization admin; writes need--confirmand send an idempotency key you can reuse with--idempotency-keyto retry safely. - Settings.
thothctl settings setchanges the shadow-agent policy, the webhook, the SIEM destination and PAM. Only the flags given change; secrets are read from files (-for stdin), never from arguments. - Reports and billing.
thothctl reports generate [--start] [--end] [--wait]generates a report (in the background unless--wait), andthothctl reports compliance-risk [--from] [--to] [--scenarios-file]reads compliance risk, with your own monetary scenarios reported separately and never totalled.thothctl billing statements list|download <YYYY-MM>gets a paid workspace's month-end statements. - Model artifacts.
thothctl model-artifacts list|get|register|verify-provenance|screen|waive|activatetakes an artifact through Thoth's activation gate, as thethoth_model_artifactTerraform resource does.waiveandactivateneed--confirm.
Changed
thothctl reports listprints a table (report ID, cadence, status, generated, period, denials);--jsonkeeps the full snapshots.thothctl agents observe-summarynames modified and deferred actions only when there are any.- Tables print booleans as yes or no, and numbers, instead of
-. thothctl manualandthoth manualprint a reference generated from the commands themselves.
Added
- Updated the Terraform provider bridge to
v0.1.22, adding the resources below. thoth.governance.SiemDecisionStreamresource (bridged fromthoth_siem_decision_stream): which enforcement decisions are sent to the workspace's SIEM destination.thoth.governance.ToolClassificationgains optionaltargetSensitivityandactingPrivilege, sent with each decision in the SIEM decision stream.thoth.governance.AgentEnforcementresource (bridged fromthoth_agent_enforcement): an agent's mode,observeorenforce.- Updated the build default and plugin installation example to
0.1.22.
Added
- Updated the Terraform provider bridge to
v0.1.21: thethoth.governance.DataHandlingresource (what Thoth keeps of tool arguments and prompts; defaults hash arguments, drop prompts) and thethoth.governance.getDecisionsfunction (recorded enforcement decisions with the decisions view filters). - Updated the build default and plugin installation example to
0.1.21.
Added
thoth_siem_decision_streamresource: which enforcement decisions are sent to the workspace's SIEM destination.decisionsisnon_allow(holds and blocks, the default) orall, withallow_sample_rateforALLOWs. Needsthoth_siem_settingsfirst; destroying the resource turns the stream off.thoth_tool_classificationgains optionaltarget_sensitivity(public,internal,confidential,restricted) andacting_privilege(standard,elevated,admin), sent with each decision in the SIEM decision stream. They are sent to the API only when set (or to clear a value you removed), so configurations without them work against older APIs.thoth_agent_enforcementresource: an agent's mode,observe(Thoth records what enforcing would decide and allows the action) orenforce, withhigh_risk_action(holdordeny). Destroying it returns the agent toenforce.
Added
thoth_data_handlingresource: what Thoth keeps of your agents' tool arguments (store,hash,redactordrop) and prompts, model output and tool results (store,hashordrop). The defaults arehashanddrop, and destroying the resource returns the workspace to them. Needs a Thoth API with the data-handling endpoint.thoth_decisionsdata source: recorded enforcement decisions, newest first, filtered by outcome, agent, tool, reason code, matched rule and time window. Reads up tomax_results(default 100, at most 1,000) and setstruncatedwhen more matched.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Added
thothctl settings decision-stream getshows which decisions Thoth sends to your SIEM and how delivery is going (last delivered, last failure, failures in the last 24 hours), andthothctl settings decision-stream set --enabled true|false --decisions non_allow|all --allow-sample-rate <0-1>changes it. Turning it on needs a SIEM destination and an admin with a recent second factor.thothctl tools confirmtakes--target-sensitivity public|internal|confidential|restrictedand--acting-privilege standard|elevated|admin, sent to your SIEM with each decision for the tool. Confirming a tool again without them keeps what was declared.thothctl reports download <report-id> [--format pdf|csv] [--output FILE]saves a completed runtime security report. Downloading is on paid plans, and in the read-only window after a trial ends.thothctl agents mode get|set --agent-id <id> [--mode observe|enforce] [--high-risk hold|deny]shows or changes an agent's mode, andthothctl agents observe-summary --agent-id <id> [--days N]shows what enforcing would have denied or held for an agent in observe.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Added
thothctl settings data-handling getshows what Thoth keeps of tool arguments, prompts and tool output for the workspace, andthothctl settings data-handling set --tool-arguments store|hash|redact|drop --prompts store|hash|dropchanges it. Changing it needs an admin with a recent second factor, which a signed-in session confirms in the browser. The default is hashed arguments and no prompts.thothctl decisions listlists recorded enforcement decisions newest first, filtered by--outcome,--agent-id,--tool,--reason-code,--rule-id,--sinceand--until, with--cursorfor the next page.thothctl decisions exportdownloads the same selection as CSV (at most 5,000 decisions; it says when more matched). Export needs an admin and, during a trial, a paid plan.
Fixed
- A trial or self-serve workspace (a 32-character workspace ID as
tenant_id) now reacheshttps://api.atensecurity.comwhenapiBaseUrlis omitted. Before, the provider derivedhttps://grid.<workspace-id>.atensecurity.com, which exists only for dedicated tenants. Dedicated tenants are unchanged.
Added
- Billing errors: when the enforcer answers HTTP 402 with a
billing_error(governed actions used up, trial ended, or payment overdue), the call is blocked with Thoth's message as the reason anddecision_reason_codebilling_<code>. The message is logged once per process.fail_opendoes not apply to billing errors. - Approval link: while a call waits on a step-up hold, the SDK logs one warning
naming the tool, when the hold expires and the dashboard link where a
reviewer approves or denies it, instead of waiting silently. It needs an
enforcer that returns
approval_urlon the hold status; with an older enforcer the SDK stays quiet as before.
Fixed
- A trial or self-serve workspace (a 32-character workspace ID as
tenant_id) now reacheshttps://api.atensecurity.comwhenapi_base_urlis omitted. Before, the provider derivedhttps://grid.<workspace-id>.atensecurity.com, which exists only for dedicated tenants. Dedicated tenants are unchanged.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Fixed
- Commands that need a recent second factor, such as
thothctl api-keys create, no longer fail with HTTP 403 for signed-in sessions. The command prints and opens a confirmation link; you confirm in the browser with your authenticator, and it continues. That session can then run such commands for 15 minutes without asking again (the proof is kept in~/.thoth/step-up.json, readable only by you, and works only with that session). Needs a GovAPI with browser step-up for the CLI.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Changed
- Trial and self-serve workspaces use
https://api.atensecurity.comas their GovAPI by default.https://govapi.trial.atensecurity.comreaches the same service, and sessions saved for it keep working. thothctl mcp config --trialpoints clients athttps://mcp.atensecurity.com/<tenant>, the dedicated MCP host.https://govapi.trial.atensecurity.com/thoth/mcp/<tenant>keeps working.
Fixed
- A
thothctl auth loginsession no longer stops working after about five minutes. The saved session now includes a refresh token, and commands renew the access token through GovAPI shortly before it expires. Each renewal re-checks the workspace membership and admin role. Sessions saved by 0.3.8 need one new login.
Changed
- Updated the Terraform provider bridge to
v0.1.19, including optional agent-scoped tool classifications and the webhook, SIEM and PAM secret readback fixes. Redacted credentials preserve configured state rather than causing repeated updates. Imported redacted credentials remain unset until explicitly configured. - Updated the build default and plugin installation example to
0.1.19.
Added
thoth_tool_classificationaccepts an optionalagent_idto scope a tool declaration to one agent. Omitting it keeps tenant-wide authority; changing the scope replaces the declaration.
Fixed
- Webhook, SIEM and PAM resources preserve the configured secret in Terraform
state when the service returns
[redacted credential], preventing permanent drift and repeated secret writes. Imports leave redacted secrets unset; configure a replacement credential explicitly when managing an imported resource.
Release of the macOS runtime (thoth and thothctl) for Apple Silicon and
Intel. Linux and Windows artifacts are not included and remain at v0.3.6.
Added
-
thothctl mcp configgenerates client configuration for the tenant's Thoth configuration MCP endpoint, including Claude Code and Cursor. OAuth is the default; API-key configuration references an environment variable without embedding the credential. -
thothctl tools listshows tools discovered from your agents with their proposed effect classes, andthothctl tools confirmrecords an admin's confirmed classes. Only confirmed classes change decisions.thoth toolsforwards to the same commands. -
thothctl init --agent-id AGENT --profile PROFILEgives an agent a governance profile (safe-default,coding-agent,finance-operationsorcustomer-support), pinned at--profile-version(default1.0.0). -
The MCP proxy reports the tools an MCP server lists, including its
readOnlyHint,destructiveHintandopenWorldHintannotations, as advisory proposals. Annotations are claims made by the server, never authority.
Fixed
thothctl auth loginworks for trial and self-serve workspaces with no options: sign in in the browser, and GovAPI finds your workspace from the organization you signed in to. The workspace is saved to~/.thoth/current-workspace.json, so later commands no longer need--tenant-id. A 32-character workspace ID still works and selects the shared GovAPI host. GovAPI finds the WorkOS organization from the workspace instead of the email domain, and the admin check uses the workspace role GovAPI reports.
Privacy
- The proxy removes schema
default,example,examples,constandenumvalues before reporting tools, keeps parameters with those names, and percent-encodes the tenant ID. SetTHOTH_TOOL_INVENTORY=offto disable reporting.
Changed
- Added internal broker execution plumbing that is not enabled in this release and changes no runtime behaviour.
Added
- Tool inventory:
RegisterToolInventorysends tool names, descriptions and input-schema structure to your Thoth API, so Thoth can propose an effect class for an admin to confirm. Instrumenting a tool map reports the tool names from a goroutine, off the startup path, with a 2-second timeout. Proposals are advisory: they never grant execution, and only an admin's confirmation changes decisions.
Privacy
- Schema
default,example,examples,constandenumvalues are removed recursively before sending; parameters with those names are kept. Descriptions are sent as written, so keep secrets out of tool metadata. - Set
THOTH_TOOL_INVENTORY=offto disable collection.
Added
- Bridged the Terraform provider's 0.1.18 surface.
PackAssignmentaccepts the governance profilessafe-default,coding-agent,finance-operationsandcustomer-supportaspackId, withprofileVersionto pin the version andprofileParametersJsonfor paid-plan parameters. WhileprofileVersionis set, profile changes made through the resource are approved. See theterraform-provider-thoth0.1.18 changelog for details.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.18. - Bumped Pulumi release defaults/docs to
0.1.18:MakefiledefaultVERSION- plugin install command in
docs/installation-configuration.md
Upgrade note
Profiles need a Thoth service with agent profiles. Trial tenants can choose one
profile and cannot set parameters. Removing a profile assignment returns the
agent to safe-default, and safe-default itself cannot be removed. Compliance
pack assignments are unchanged.
Added
- Tool inventory: on instrumentation, the SDK sends each tool's name, description and input-schema structure to your Thoth API in the background, so Thoth can propose an effect class for an admin to confirm. Proposals are advisory: they never grant execution, and only an admin's confirmation changes decisions. Collection runs off the startup path, cannot raise into your code, and times out after 2 seconds.
Privacy
- Schema
default,example,examples,constandenumvalues are removed recursively before sending; parameters with those names are kept. Descriptions are sent as written, so keep secrets out of tool metadata. - Set
THOTH_TOOL_INVENTORY=offto disable collection.
Added
thoth_pack_assignmentaccepts the governance profilessafe-default,coding-agent,finance-operationsandcustomer-supportaspack_id. A profile gives an agent a starter policy built on confirmed tool classes and named rules, without writing rules.profile_versionpins the profile version. While it is set, the provider approves profile changes made through this resource, including a newprofile_version; Terraform review is the approval step.profile_parameters_jsonsets the paid-plan profile parameters:payment_approval_amount_usd(default 10000),refund_approval_amount_usd(default 5000) andapproved_remote_hosts(exact host names, default none).
Upgrade note
Profiles need a Thoth service with agent profiles. Trial tenants can choose one
profile and cannot set parameters; paid-only features return "available on paid
plans". Removing a profile assignment returns the agent to safe-default, and
safe-default itself cannot be removed. Compliance pack assignments are
unchanged.
Added
- Tool inventory: on instrumentation, the SDK sends each tool's name, description and input-schema structure to your Thoth API in the background, so Thoth can propose an effect class for an admin to confirm. Proposals are advisory: they never grant execution, and only an admin's confirmation changes decisions. Collection runs off the startup path, cannot raise into your code, and times out after 2 seconds.
Privacy
- Schema
default,example,examples,constandenumvalues are removed recursively before sending; parameters with those names are kept. Descriptions are sent as written, so keep secrets out of tool metadata. - Set
THOTH_TOOL_INVENTORY=offto disable collection. In runtimes withoutprocess, such as browsers and edge runtimes, collection stays on.
Added
- Bridged the Terraform provider's 0.1.17 surface.
governance.ToolClassificationdeclares the reviewed effects of one exact tool name (read,write,delete,execute,export,external_call,bulk_operation,credential_access,sensitive_data_access). The enforcer classifies calls to that tool from the declaration; request bodies cannot set classes. See theterraform-provider-thoth0.1.17 changelog for details.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.17. - Bumped Pulumi release defaults/docs to
0.1.17:MakefiledefaultVERSION- plugin install command in
docs/installation-configuration.md
Security
- Updated indirect dependencies, including
golang.org/x/net,golang.org/x/cryptoandgolang.org/x/mod.
Upgrade note
ToolClassification needs a Thoth service that serves
/:tenant-id/thoth/tool-classifications. Against an older service, the update
fails. Every other resource is unchanged.
Added
thoth_tool_classificationdeclares the reviewed effects of one exact tool name (read,write,delete,execute,export,external_call,bulk_operation,credential_access,sensitive_data_access). The enforcer classifies calls to that tool from the declaration; request bodies cannot set classes, and exact-action declarations still take precedence. Wildcards are refused. Changes require a tenant admin, or an approver when the tenant has no admin, and govern decisions within 5 seconds.
Security
- Updated indirect dependencies, including
golang.org/x/net0.58.0 to 0.60.0,golang.org/x/crypto0.55.0 to 0.57.0 andgolang.org/x/mod0.38.0 to 0.41.0.
Upgrade note
thoth_tool_classification needs a Thoth service that serves
/:tenant-id/thoth/tool-classifications. Against an older service, applying the
resource fails. Every other resource and data source is unchanged.
Added
- Bridged the Terraform provider's 0.1.16 surface.
GovernanceSettingsgains the executable compliance declaration (declaredRegulatoryRegimes,complianceEnforcementMode) with computed canonical regimes, coverage, revision and propagation bound, andMcpVendorgains manifest signature, capability, runtime identity and egress attributes. See theterraform-provider-thoth0.1.16 changelog for the full surface and its upgrade note.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.16. - Bumped Pulumi release defaults/docs to
0.1.16:MakefiledefaultVERSION- plugin install command in
docs/installation-configuration.md
Upgrade note
Applying a compliance declaration requires a running enforcer that reports the
same catalogue and evaluator identity the bridged provider pins and reports
transactional declaration support. Otherwise the update fails with
Compliance capability mismatch and changes nothing. A service with tenant
declarations disabled refuses these fields by design; every other resource is
unaffected.
Fixed
- The tracer discarded the final enforcement decision after computing effective
tool arguments, so POST telemetry hardcoded
ALLOWand omitted server-issued reason codes and structured decision evidence. The real outcome is now retained and reported. - A resolved
STEP_UPno longer loses the initial policy evidence or the canonical terminal receipt. Final authorization semantics are merged with the initial reason, policy and receipt evidence, and the terminal receipt is preserved separately. - A sparse server response no longer erases locally established correlation. Sparse decisions bind to the local trace and action IDs.
Security
- A server response whose action or trace ID contradicts the locally established one now fails closed before the tool executes, rather than proceeding with ambiguous correlation.
Added
EnforcementDecisionand the policy exceptions gain an optionalterminal_receiptfield. Existing callers are unaffected.- Claude Agent SDK post-success and post-failure hooks now carry decision context, correlated through a bounded single-use map keyed on the provider tool-use ID. The map holds at most 1024 pending entries; a reused, missing, unseen or evicted ID yields empty context rather than another action's, so evidence correlation fails closed without changing the authorization result.
Unchanged
- Tool execution, blocking, deferral, step-up and argument-modification
semantics, final
MODIFYoutcomes, and currentOBSERVEbehaviour. The enforcement return shape remains private to the SDK implementation.
Added
thoth_governance_settingsgains an executable compliance declaration:declared_regulatory_regimesandcompliance_enforcement_mode, with computedcanonical_regimes,compliance_coverage,compliance_revisionandpropagation_max_ms. A declaration governs all current and future tenant agents, including agents with no policy record.observerecords advisory findings and preserves independent authorization;enforceadds non-grantable restrictions for DENY, STEP_UP and evidence-based UNRESOLVED. Removing a managed declaration or setting[]clears it, and legacy profile defaults never activate the binding.- Per-regime coverage counts are known at plan time from a catalogue pinned into
the provider, so
terraform planpreviews which controls a declared regime would evaluate before any apply. These are Aten's own author classifications and are not a regulatory conformance assessment. thoth_mcp_vendorgains manifest signature attributes (manifest_signature_status,_signer,_bundle_ref,_verified_at), pluscapabilities,runtime_identity,egress_policy_modeandegress_allowed_host_patterns.thoth_governance_settingsgainsregulatory_regimesfor onboarding baseline auto-pack loading. This selects legacy packs only and does not activate executable compliance; the declaration fields above are separate.
Changed
- The governance executive summary and reports overview data sources return additional fields.
Security
- Updated indirect dependencies, including
golang.org/x/text0.37.0 to 0.41.0,golang.org/x/net0.55.0 to 0.58.0 andgolang.org/x/crypto0.52.0 to 0.55.0.
Upgrade note
Applying a compliance declaration requires a running enforcer that reports the
same catalogue and evaluator identity this provider pins and reports
transactional_declarations_supported. If it does not, the apply fails with
Compliance capability mismatch and changes nothing rather than writing a
declaration the service cannot honour.
A service with tenant declarations disabled will therefore refuse these fields by design. Every other resource and data source in this release is unaffected. Verify the three-way agreement before rollout with:
Stable release of the macOS runtime (thoth and thothctl) for Apple Silicon
and Intel. This is the global latest release; Linux and Windows artifacts are
not included and remain at v0.3.6. This client release does not change the
platform readiness status.
Security
- Updated the HTTP/2 stack from
h20.4.13 in v0.3.6 to 0.4.19, fixing RUSTSEC-2026-0258 (unbounded queuing of empty DATA frames throughhyper). The advisory is patched in h2 0.4.16 and later.
Added
- Carried an action attestation ID through every governed tool call. The proxy
reuses
action_attestation_idfrom the request when supplied and otherwise generates one, sends it to the enforcer, and reports it on decision responses and on both the request and terminal telemetry events, so an attempt can be correlated end to end. - Reported decision evidence on
ALLOWandBLOCKresponses, which previously carried none.BLOCK,DEFERandSTEP_UPresponses now include the enforcement trace ID, action attestation ID, authorization decision, reason, reason code, action classification and risk score when the enforcer supplies them.
Fixed
- Stopped writing enforcer error response bodies and selected response headers
into proxy logs when a call fails. A failure is now recorded as a reason code
(
enforcer_transport_error,enforcer_http_error,enforcer_invalid_response) with the HTTP status only, so response content cannot reach logs. - Distinguished an enforcer response with no recognized decision from a genuine
BLOCK. Both still fail closed, but the former is now recorded asenforcer_invalid_responserather than being indistinguishable from a policy denial in evidence. - Preserved request-side correlation IDs on the terminal event when the enforcer is unreachable, returns an error status, or returns an undecodable body, so a failed call is still traceable to the attempt that caused it.
- Kept a locally escalated
STEP_UPfrom exporting a receipt that the underlyingALLOWnever carried. - Distinguished an absent model risk score from one the enforcer explicitly reported as null, and stopped copying non-numeric risk payloads into decision evidence.
- Cleared stale request-side reason fields from terminal telemetry so a decision reason always describes that decision.
Known limitations
- On Windows the proxy API key file (
~/.thoth/proxy_api_key.json) is written with inherited ACLs. The owner-only permission handling thatthothctlapplies on macOS and Linux has no Windows equivalent yet, so treat that file as readable by any account with access to the user profile until it does.
Changed
- Serialized the decision-evidence integration fixtures. Each spawns a proxy subprocess and a mock enforcer, and running them concurrently exhausted the proxy's bounded 5s HTTP timeout, so the proxy failed closed and the suite reported six failures unrelated to proxy behavior.
Added
- Added a per-action attestation ID, generated for each tool call unless the caller supplies one, and propagated it through enforcement decisions, behavioral events, logs, and policy errors for deterministic correlation.
- Added model name/provider/artifact context, authentication and delegation context, MCP runtime identity, and caller metadata to authorization requests.
- Added public process-local delivery status and bounded shutdown APIs.
Changed
- Minimized retained HTTP and SQS telemetry with an explicit allowlist. Tool arguments, free-text context, results, errors, explanations, full receipts, and unknown metadata remain available to authorization but are not retained by default.
- Added bounded HTTP and SQS delivery retries with stable event and FIFO deduplication identifiers. Retrying telemetry never re-executes a governed tool or repeats its authorization decision.
- Added SQS partial-batch failure handling, process-local delivery counters,
bounded shutdown through
CloseWithTimeout, and a five-second overall HTTP request timeout. - Expanded the public decision-envelope compatibility contract and standalone module tests for the new authorization and evidence fields.
- Documented the telemetry privacy boundary and the limits of process-local delivery status.
Added
- Added first-class LangGraph support through
instrument_langgraph(),instrument_tool_node(), and@thoth_graph, including synchronous and asynchronous tool execution, concurrent call history, mock mode, and explicitThothDeferredErrorhandling. - Added per-action attestation IDs across authorization, Claude Agent SDK hooks, lifecycle events, policy errors, and decision evidence. Provider tool-use IDs are used for correlation only and are never represented as authenticated workload identity.
- Added model name/provider/artifact context, authentication and delegation context, MCP runtime identity, and caller metadata to authorization requests.
- Added human-explanation retrieval for blocked and step-up decisions with optional bounded webhook delivery.
- Added wheel-content validation and clean installed-package tests for the base package and the Anthropic, AutoGen, Claude, LangChain, LangGraph, and OpenAI extras.
Fixed
- Return a fresh approval-timeout decision for every sync and async call, so blocked-event evidence cannot inherit an earlier action's attestation ID.
- Reject unresolved or malformed step-up results without executing the tool, and keep synchronous and asynchronous fallback enforcement to one decision per action.
- Reject Claude callback results that identify a different action, and avoid correlating concurrent callbacks by tool name when no trusted action ID is available.
- Govern callable-only tool collections and LangChain-style duck-typed
_run/runtools even when their framework classes are unavailable. - Correct optional dependency declarations and restore SDK type-check coverage.
Changed
- Minimized retained HTTP and SQS telemetry with an explicit allowlist. Tool arguments, free-text context, results, errors, explanations, full receipts, and unknown metadata remain available to authorization but are not retained by default.
- Added bounded HTTP and SQS delivery retries with stable event and FIFO deduplication identifiers. Retrying telemetry never re-executes a governed tool or repeats its authorization decision.
- Added SQS partial-batch failure handling, process-local delivery counters,
and bounded shutdown through
close(timeout=...). - Documented the telemetry privacy boundary and the limits of process-local delivery status.
Fixed
- Continue polling canonical unresolved STEP_UP hold responses until resolution or the configured deadline instead of treating a missing decision field as a terminal fallback block. Timeout and malformed-response handling remain fail-closed.
Added
- Added a per-action attestation ID, generated for each tool call unless the caller supplies one, and propagated it through authorization, lifecycle telemetry, decisions, and policy errors.
- Added bounded human-explanation requests for blocked and step-up decisions and
exposed the explanation on decisions and
ThothPolicyViolation. - Exported behavioral-event emission and per-event delivery status types for applications that need process-local telemetry health signals.
Changed
- Minimize default telemetry with an explicit field allowlist; omit tool arguments and free-text context, reasons, explanations and full receipts. Authorization inputs and enforcement behavior are unchanged. See PRIVACY.md for wire data and migration limits.
- Remove payload-bearing diagnostic logs and verify the installed npm artifact against a local HTTP collector.
- Make telemetry delivery resilient: bounded retries with stable event IDs, so a retried delivery is de-duplicable server-side and never replays a governed tool call or re-requests authorization.
- Use native Node ESM imports throughout the published package.
- Restrict the published package to built output, source and user-facing docs via
an explicit
filesallowlist. Development-only files (tests, CI workflows,tsconfig.json, fixtures and internal notes) are no longer published, and a packing artifact can no longer be swept into the tarball.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.15. - Bumped Pulumi release defaults/docs to
0.1.15:MakefiledefaultVERSION- plugin install command in
docs/installation-configuration.md
Fixed
- Updated docs for Pulumi Registry lint compatibility:
- extensionless internal cross-link in
docs/_index.md - markdown SDK links (no bare URLs) in
docs/installation-configuration.md
- extensionless internal cross-link in
Fixed
- Updated provider docs for Pulumi Registry compatibility by converting markdown cross-links to extensionless paths and replacing bare SDK URLs with explicit markdown links.
Fixed
- Added required YAML front-matter blocks to:
docs/_index.mddocs/installation-configuration.md
- This unblocks Pulumi registry metadata generation (
resourcedocsgen metadata from-github) and future nightly community-package refreshes.
Changed
- Release alignment patch to unblock downstream Pulumi provider
v0.1.14publishing and registry metadata refresh.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.13. - Bumped Pulumi release defaults/examples to
0.1.13:MakefiledefaultVERSION- README release line and manual plugin-install command docs
- Node.js and .NET example package references
- Updated Pulumi bridge language metadata so Node.js SDK publishing is declared
as
@atensec/pulumi-thoth(matching npm publication and registry install instructions). - Corrected .NET namespace configuration to avoid doubled NuGet identity rendering in generated metadata/docs.
- Added explicit plugin download URL + bridge metadata wiring in provider metadata for release consistency.
Added
- Added complete cross-language examples under
examples/for Node.js, Python, and .NET with matching stack config templates. - Added code examples to
docs/_index.mdfor Node.js, Python, and .NET quick starts.
Added
- Added policy-exception workflow resources:
thoth_policy_exceptionthoth_policy_exception_reviewthoth_policy_change_artifact_apply
- Added policy-exception workflow data sources:
thoth_policy_exceptionthoth_policy_exceptionsthoth_policy_change_artifactthoth_policy_change_artifacts
- Added governance + MCP summary data sources:
thoth_governance_executive_summarythoth_governance_board_incident_summarythoth_mcp_inventory_digest
- Added policy-exception workflow example under
examples/policy-exception-workflow.
Changed
- Expanded governance cost report coverage to include pricing-catalog metadata, fallback counters, and unresolved-model visibility fields.
- Refreshed provider docs/README for the new policy exception and governance summary surfaces.
Fixed
- Emitted behavioral telemetry events from the Rust
thothproxy for local preflight outcomes (BLOCK,DEFER,STEP_UP) and forwarded execution outcomes so Claude Desktop/runtime decisions are ingested through/v1/events/batchand appear in governance feeds.
Changed
- Added configurable resilience mode via
Config.FailOpen/THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429,5xx) returnALLOWso tool execution can continue. - Auth failures (
401/403) remain fail-closed and continue returningBLOCK. - Added regression coverage in internal and public SDK tests for fail-open/fail-closed behavior.
- Added vendor-runtime observability coexistence tests for Datadog, LangSmith, OpenTelemetry,
and Sentry in an isolated compat test module (
sdk/thoth/compat). - Added compatibility matrix CI coverage for Go runtime-stack coexistence verification.
Changed
- Added configurable resilience mode via
ThothConfig.fail_open/THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429,5xx) returnALLOWso agent execution can continue. - Auth failures (
401/403) remain fail-closed and continue returningBLOCK. - Added regression tests for fail-open timeout, retryable status, and auth-failure handling.
- Added LangSmith coexistence integration coverage
(
tests/integrations/test_langsmith_compat.py) to ensuretraceabletools continue to execute under Thoth governance wrappers. - Added observability-wrapper coexistence integration coverage for Datadog-like,
OpenTelemetry-like, and Sentry-like instrumentation patterns
(
tests/integrations/test_observability_compat.py). - Hardened
instrument()wrapping for LangChain-style duck-typed tools so_runandrunare both governed even when LangChain classes are not importable at runtime. - Fixed generic
.toolswrapping for callable-only tool entries (plain functions/callables), which are now replaced with governed callables instead of bypassing enforcement. - Added regression tests for callable-only tool entries and LangChain
duck-typed
_run/runwrapping intests/test_instrumentor.py. - Added first-class LangGraph instrumentation APIs:
instrument_langgraph(),instrument_tool_node(), and@thoth_graph. - Added mock-mode LangGraph decision simulation (
THOTH_MOCK_MODE=true) for local end-to-end development without a live enforcer. - Added
ThothDeferredErrorand LangGraph DEFER handling that raises without executing the tool and emits defer metadata in tool telemetry. - Added a thread-safe session call-history path for concurrent LangGraph
branches via
SessionContext.pending_tool_calls(...).
Changed
- Added configurable resilience mode via
failOpen/THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429,5xx) returnALLOWso tool execution can continue. - Auth failures (
401/403) remain fail-closed and continue returningBLOCK. - Added regression tests for fail-open timeout/status behavior and auth-failure handling.
- Added vendor-runtime compatibility regression tests for Datadog, LangSmith, OpenTelemetry, and Sentry coexistence with Thoth tool interception.
- Added compatibility matrix CI coverage with per-stack TypeScript runtime test runs.
Added
- Added a LangGraph runtime enforcement example at
examples/langchain/langgraph_runtime_enforcement.pythat demonstrates observe and progressive enforcement flows usinginstrument_toolchain(). - Added a companion policy example at
examples/langchain/policies/research_agent.regocovering allow, step-up, block, and flag outcomes for a research-agent toolchain. - Added a cookbook notebook at
examples/langchain/cookbook_agent_governance.ipynbwith end-to-end shadow and enforce walkthroughs. - Added a reusable composite GitHub Action at
.github/actions/thoth-policy-check/for static policy checks against Python agent tool-call patterns. - Added a static analysis helper script at
scripts/langchain/thoth_policy_check.pyused by the action. - Added a vendor-neutral RFC issue draft for LangGraph tool interception hooks
at
docs/contributions/langchain_rfc_tool_hooks.md. - Added an engineering blog draft at
docs/blog/langchain-runtime-enforcement.md.
Changed
- Updated Terraform provider bridge dependency pin to
github.com/atensecurity/terraform-provider-thoth v0.1.12. - Bumped Pulumi release defaults/examples to
0.1.12:MakefiledefaultVERSION- Node.js example package dependency (
@atensec/pulumi-thoth)
Added
- Pulumi bridge now exposes Terraform
0.1.12MCP vendor registry and catalog verification surfaces:McpVendorresourcegetMcpVendorsdata sourceMcpCatalogVerifyresourcegetMcpInventoryReportdata source
Fixed
- Inherited Terraform
0.1.12stabilization for MCP vendorhostPatternsordering so Pulumi up/refresh operations converge deterministically when API response ordering differs.
Added
- Added MCP vendor registry and catalog verification command surfaces in
thothctlto align CLI capability with current control-plane governance APIs.
Changed
- Updated release automation and public distribution flow for
thothandthothctlso production release tags drive Homebrew package publication from signed assets.
Added
- Added MCP vendor registry support:
thoth_mcp_vendorresourcethoth_mcp_vendorsdata source
- Added MCP inventory and verification surfaces:
thoth_mcp_inventory_reportdata sourcethoth_mcp_catalog_verifyresource
Fixed
- Stabilized
thoth_mcp_vendor.host_patternsstate behavior to avoid apply/read inconsistencies caused by server-side ordering differences.
Earlier releases
Combined release-line notes up to June 8, 2026.
- v0.1.18 / v0.3.4 (June 8, 2026)
- v0.1.18 / v0.3.3 (May 14, 2026)
- v0.1.17 / v0.3.3 (May 10, 2026)
- v0.1.16 / v0.3.0 (May 5, 2026)
- v0.1.15 / v0.2.23 (April 30, 2026)
- v0.1.14 / v0.2.22 (April 28, 2026)
- v0.5.5 / v0.2.20 (April 27, 2026)
- v0.5.4 / v0.2.19 (April 26, 2026)
- v0.5.4 / v0.2.18 (April 26, 2026)
- v0.1.6 / v0.2.8 (April 24, 2026)
- v0.1.6 / v0.2.8 (April 22, 2026)
- v0.1.6 / v0.2.7 (April 21, 2026)
- v0.1.6 / v0.2.3 (April 20, 2026)
- v0.1.6 / v0.2.2 (April 19, 2026)
- v0.1.3 / v0.2.0 (April 15, 2026)
- v0.1.2 (April 10, 2026)
- v0.1.1 (March 31, 2026)
- v0.1.0 (March 30, 2026)
Enterprise release pathway: Homebrew tap + notarized PKG + supply-chain trust metadata
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.17 - Python SDK: unchanged at
sdk/python/v0.1.16 - TypeScript SDK: unchanged at
sdk/npm/v0.1.18 - Thoth proxy +
thothctlbinary line:thoth/v0.3.4 - Terraform provider: unchanged at
v0.1.11 - Pulumi provider: unchanged at
v0.1.11
Enterprise distribution and verification
- Added Homebrew tap publication flow for
atensecurity/homebrew-tap. - Added notarized macOS PKG release pathway for MDM deployments (Jamf/Intune/Kandji).
- Published Santa trust metadata (
santa-metadata.json) and signing metadata for endpoint allowlisting. - Expanded release metadata set: SBOMs (CycloneDX + SPDX), provenance, immutable manifest, checksums, and Sigstore keyless signatures.
- Added documentation runbooks for release channels, Santa trust policy, Kandji deployment, and deployment validation matrix.
MODIFY, DEFER, and complete MOSES decision envelope across Python, Go, and TypeScript
This release line publishes:
- Go SDK:
sdk/go/v0.1.17 - Python SDK: unchanged at
sdk/python/v0.1.16 - TypeScript SDK:
sdk/npm/v0.1.18 - Thoth proxy +
thothctlbinary line: unchanged atthoth/v0.3.3 - Terraform provider: unchanged at
v0.1.11 - Pulumi provider: unchanged at
v0.1.11
Two new decision outcomes
MODIFY— the enforcer rewrites tool arguments before execution. The governed wrapper calls the tool with the modified args.PolicyViolationError/ThothPolicyViolationis not raised — execution proceeds with policy-applied arguments. The audit trail carries both the original request and the modification reason.DEFER— the enforcer signals the caller to retry after a specified timeout. Different fromSTEP_UP: no human approval required, time-bounded, and recoverable by design. The error surfacesdeferTimeoutSeconds/DeferTimeoutSecondsfor caller-side retry logic.
Legacy enforcer aliases normalize automatically: TRANSFORM→MODIFY, HOLD/DEFERRED→DEFER, DENY→BLOCK, CHALLENGE/ESCALATE→STEP_UP.
Full MOSES ML decision envelope in SDK error types
PolicyViolationError (Go) and ThothPolicyViolation (Python and TypeScript) now carry six new fields from the MOSES two-tier enforcement path:
| Field | Description |
|---|---|
decision_envelope_version / DecisionEnvelopeVersion | Schema version of the enforcer response — for forward-compatibility checks |
enforcement_trace_id / EnforcementTraceID | Correlation ID following the request through enforcer → fast-ML → deep-LLM |
fastml_features / FastMLFeatures | ONNX fast-ML feature vector used to score the request |
score_components / ScoreComponents | Composite risk score breakdown by component (scope, velocity, identity binding, etc.) |
top_contributors / TopContributors | Ranked list of highest-weight features that drove the decision |
decision_evidence / DecisionEvidence | Raw evidence fields from the enforcer response envelope |
These fields are available directly on the caught exception — no additional API calls needed for incident reporting or audit trail reconstruction.
Canonical observe mode
shadow is no longer part of the public SDK surface. The canonical enforcement mode is observe. The enforcer and all three SDKs continue to accept shadow as an alias — no config changes required in running deployments.
Expanded policy context propagation
ThothConfig / Config now accepts environment, enforcement_trace_id, session_intent, purpose, data_classification, and task_context. All fields are forwarded on every enforcement call.
HTTP diagnostics
Improved error messages for 401/403 enforcer responses with actionable hints about API key scope and ingest token configuration.
Proxy 0.3.3 and provider 0.1.7 release alignment
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.15 - Python SDK:
sdk/python/v0.1.16 - TypeScript SDK:
sdk/npm/v0.1.17 - Thoth proxy +
thothctlbinary line:thoth/v0.3.3 - Terraform provider:
v0.1.7 - Pulumi provider:
v0.1.7
Docs and release consistency
- Promoted Thoth CLI/proxy docs to the
thoth/v0.3.3binary line. - Standardized provider references on
v0.1.7across Terraform and Pulumi docs.
Org API key auth for IaC + Thoth 0.3.0 release line
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.15 - Python SDK: unchanged at
sdk/python/v0.1.15 - TypeScript SDK: unchanged at
sdk/npm/v0.1.16 - Thoth proxy +
thothctlbinary line:thoth/v0.3.0 - Terraform provider:
v0.1.3 - Pulumi provider:
v0.1.2
Infrastructure-as-code provider releases
- Added org-level API key auth for provider workflows and preserved bearer-token compatibility.
- Standardized CI/CD auth through
THOTH_API_KEYfor Terraform and Pulumi provider usage. - Updated provider release notes and docs for dual-auth guidance.
Thoth binary line release
- Published
thoth/v0.3.0and aligned customer-facing install/version references. - Updated release docs to reflect the current stable binary line for
thothandthothctl.
Canonical release lines, Secrets Broker GA docs, and ingest resilience
This release line publishes:
- Go SDK:
sdk/go/v0.1.14 - Python SDK:
sdk/python/v0.1.14 - TypeScript SDK:
sdk/npm/v0.1.15 - Thoth endpoint runtime:
thoth/v0.2.23
Release and upgrade clarity
- Standardized customer docs on canonical release channels (
thoth/v*for endpoint runtime,sdk/*for SDKs). - Updated install and quick-reference pages to reflect current stable versions and package constraints.
Operator workflows
- Added customer-ready strict-mode Secrets Broker examples for MCP tools (for example Figma, Notion, and Stitch host bindings).
- Documented fail-closed token handling patterns for endpoint runtime use without storing long-lived tokens in local tool config.
Runtime resilience
- Hardened telemetry ingest behavior for intermittent
403/edge enforcement failures to reduce dropped event noise and improve operator troubleshooting.
SDK log-level controls + governance envelope hardening
This release line publishes:
- Go SDK:
sdk/go/v0.1.13 - Python SDK:
sdk/python/v0.1.13 - TypeScript SDK:
sdk/npm/v0.1.14 - Thoth endpoint runtime:
thoth/v0.2.22
SDK diagnostics and enforcement traceability
- Added SDK log-level controls across Go, Python, and TypeScript for cleaner operator debugging.
- Improved STEP_UP token and enforcement trace diagnostics to make approval-path troubleshooting faster.
Thoth control-plane hardening
- Unified auth/delegation envelope fields across control-plane and runtime services.
- Added stricter default purpose-class enforcement and promotion lifecycle guardrails.
- Hardened model-router policy behavior and admin settings integration for safer runtime rollout control.
- Clarified API key redaction output and governance feed query UX.
Tenant-scoped telemetry and API-key hardening
This release line publishes:
- Go SDK:
sdk/go/v0.1.11 - Python SDK:
sdk/python/v0.5.4 - TypeScript SDK:
sdk/npm/v0.5.5 - Thoth endpoint runtime:
thoth/v0.2.20
SDK telemetry isolation
- Go, Python, and TypeScript SDK ingestion paths now align to tenant-scoped telemetry/event IDs to avoid cross-tenant event collisions.
- Instrumentation payload models were updated to preserve scoped event identity throughout ingest and normalization.
Endpoint runtime management
- Improved API key management UX and guidance for scope-aware authorization.
- Set a secure 90-day default API key expiry with proactive warnings for near-expiry keys.
- Fixed shadow mode STEP_UP visibility so review-to-agent-registry flows surface approval state consistently.
In-place runtime update experience
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.10 - Python SDK: unchanged at
sdk/python/v0.5.3 - TypeScript SDK: unchanged at
sdk/npm/v0.5.4 - Thoth endpoint runtime:
thoth/v0.2.19
Lifecycle management
- Added in-place update workflows for endpoint runtime and admin tooling.
- Each command checks GitHub Releases, verifies asset checksums (
checksums.sha256), and installs only verified binaries. --forceis supported for explicit reinstallation of the latest release.
Customer docs
- Updated external docs to reflect current Thoth binary line
v0.2.19. - Added update workflow guidance so operators can keep binaries current without reinstall scripts.
Scoped key reliability + SDK ingest auth parity
This release line publishes:
- Go SDK:
sdk/go/v0.1.10 - Python SDK: unchanged at
sdk/python/v0.5.3 - TypeScript SDK:
sdk/npm/v0.5.4 - Thoth endpoint runtime:
thoth/v0.2.18
SDK ingest reliability
- Go and TypeScript SDK emitters now send both
Authorization: Bearer ...andX-Api-Keyheaders on ingest calls to match enforcer/runtime expectations. - Non-2xx ingest failures now log the HTTP status, target URL, and a safe response-body snippet to speed up debugging.
API key management
- API key creation and authorization flows now support explicit scope selectors:
--organization--fleet-id--endpoint-id--agent-id
- Command help now explains key scope vs runtime context matching in plain language.
- Authorization output now includes clear hints when validation fails due to expiry, permission mismatch, or scope mismatch.
Operator docs
- Public runbooks now use explicit scope flags in API key command examples so customer operators can copy/paste known-good commands.
Python SDK ThothClient Backward-Compatibility Export
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.5 - Python SDK: unchanged at
sdk/python/v0.1.6 - TypeScript SDK: unchanged at
sdk/npm/v0.1.6 - Thoth binary line: unchanged at
thoth/v0.2.8
Python SDK (atensec-thoth)
- Restored
from thoth import ThothClientcompatibility export. - Added legacy method aliases (
wrap,wrap_openai_tools,wrap_anthropic_tools) that delegate to currentinstrument*APIs.
Documentation
- Python SDK README now includes a legacy compatibility section for
ThothClient. - Docs-site Python SDK reference now calls out preferred module-level APIs and legacy
ThothClientsupport.
Headless operations improvements
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.5 - Python SDK: unchanged at
sdk/python/v0.1.6 - TypeScript SDK: unchanged at
sdk/npm/v0.1.6 - Thoth endpoint runtime:
thoth/v0.2.8
Fleet management + MDM providers
- Added tenant-scoped MDM provider configuration and sync workflows for Jamf and Intune.
- Fleet management now supports on-demand provider inventory synchronization to upsert endpoint records.
- Provider sync now supports default fleet and environment mapping for imported endpoints.
Headless control plane
- Admin tooling is now documented as the default path for no-dashboard bootstrap and updates.
- New headless operations section covers API-driven and automation-driven orchestration patterns.
- Documentation now emphasizes customer-run automation workflows without dashboard dependency.
- SIEM/PAM integration guidance is now aligned to API-first and CI-driven operations.
- Added browser control-plane workflows for provider, policy, and enrollment management across supported browsers.
- Added browser sync workflows for endpoint-side policy resolution and managed artifact application (
applied/rendered/dry_run) to support mixed browser fleets.
Manual endpoint enrollment
- Fleet management now provides generated re-enrollment scripts for endpoints not associated with a fleet.
- Direct endpoint enrollment supports optional fleet assignment through
THOTH_FLEET_ID. - Endpoint health state remains current through periodic proxy check-ins.
Documentation
- Added external-facing docs for MDM provider sync and manual endpoint enrollment flow.
- Proxy install docs now default to
thoth/v0.2.8. - Added public-platform delivery workflows: Terraform-based public repo bootstrap and CI mirroring for provider/runbook content.
Proxy Identity Defaults + Enforcer Context-Diff Warnings
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.5 - Python SDK: unchanged at
sdk/python/v0.1.6 - TypeScript SDK: unchanged at
sdk/npm/v0.1.6 - MCP Proxy:
thoth/v0.2.7
MCP Proxy (thoth binary)
- Endpoint identity resolution now defaults to immutable machine identity (Intune/Jamf managed ID override, then OS machine ID), with hostname only as last-resort fallback.
THOTH_USER_IDremains required and must be a valid email address.enforcer_urlandgovapi_urlare inferred fromtenant_id+apex_domain.--enforcer-url/THOTH_ENFORCER_URLare now deprecated and ignored.
Enforcer
- Requests with valid keys now proceed even when endpoint/fleet scope context does not match exactly; enforcer emits warnings for follow-up.
- Tenant user-domain mismatches are now warn-only when key validation succeeds.
Documentation
- Customer docs now reflect
thoth/v0.2.7defaults for identity, URL inference, and runtime env expectations.
Wrap-Config Env Injection + Simpler Endpoint Routing
This release line publishes:
- Go SDK: unchanged at
sdk/go/v0.1.5 - Python SDK: unchanged at
sdk/python/v0.1.6 - TypeScript SDK: unchanged at
sdk/npm/v0.1.6 - MCP Proxy:
thoth/v0.2.3
MCP Proxy (thoth binary)
thoth wrap-confignow supports repeatable--env KEY=VALUEto inject runtime environment values directly into selected MCP server entries.- Wrap output remains idempotent and now reports environment changes when values are updated.
- Fleet registration URL handling is simplified:
govapi_urlis derived automatically fromtenant_id+apex_domainashttps://grid.<tenant>.<apex-domain>.enforcer_urlis derived automatically ashttps://enforce.<tenant>.<apex-domain>when not explicitly set.- legacy
gov_api_urlcompatibility paths are removed.
- Runtime identity hardening:
THOTH_USER_IDmust be a valid email address.- customer domain policy is enforced centrally by enforcer tenant metadata (admin-managed), with automatic request blocking for non-matching user domains.
Documentation
- Customer-facing docs are updated for
v0.2.3. - Proxy setup examples now use supported
wrap-configflags and document inline environment injection via--env.
Fail-Closed Enforcement + Canonical Contract Parity
This release line publishes:
- Go SDK:
sdk/go/v0.1.5 - Python SDK:
sdk/python/v0.1.6 - TypeScript SDK:
sdk/npm/v0.1.6 - MCP Proxy:
thoth/v0.2.2
Proxy + SDK enforcement behavior
- Go and proxy paths now enforce fail-closed posture on enforcer/runtime failures.
- Enforcement payload contract is normalized to canonical fields:
tool_argsenforcement_trace_iduser_id,approved_scope,session_intent,session_tool_calls
- Session tool-call history is bounded to the latest 128 calls for parity across Go and proxy paths.
Documentation
- Docs now reflect fail-closed behavior in SDK guidance and security posture sections.
- Version banners and docs-site changelog are updated for the latest SDK/proxy releases.
Telemetry Metadata + Policy Context Propagation
This release publishes:
- Go SDK: unchanged at
sdk/go/v0.1.2 - Python SDK:
sdk/python/v0.1.3 - TypeScript SDK:
sdk/npm/v0.1.3 - MCP Proxy:
thoth/v0.2.0(public release:atensecurity/thothv0.2.0)
Python SDK (atensec-thoth)
BehavioralEventnow includes endpoint context fields:endpoint_idhostname
BehavioralEventnow includes WORM chain evidence fields:chain_indexhashprevious_hashsignature
- Dependency lock/metadata refreshed as part of the SDK patch line.
TypeScript SDK (@atensec/thoth)
- Enforcer payload now propagates:
tool_argsuser_idmetadata.policy_contextenforcement_trace_id
ThothConfigadds:policyContextenforcementTraceId
- Instrumentation now serializes tool call arguments safely before enforcement checks.
MCP Proxy (thoth binary)
- Emitted events now include normalized top-level endpoint metadata:
endpoint_idhostname
- Event metadata includes
hostnameconsistently for downstream pipelines. - MCP proxy distribution now uses the cross-platform
thothbinary release line. - Docs + install path standardized to:
curl -fsSL https://install.atensecurity.com/thoth | sh- GitHub release assets from
atensecurity/thoth
Tenant API URL Contract + Session Intent Enforcement
This release publishes v0.1.2 for all Thoth SDKs:
- Go:
sdk/go/v0.1.2 - Python:
sdk/python/v0.1.2 - TypeScript:
sdk/npm/v0.1.2
Unified SDK API URL contract
- Go, Python, and TypeScript SDKs now use a single tenant API URL for both:
- policy enforcement (
POST /v1/enforce) - behavioral event ingestion (
POST /v1/events/batch)
- policy enforcement (
- SDK startup now requires tenant API URL configuration via:
- explicit config (
APIURL/api_url/apiUrl) - or
THOTH_API_URL
- explicit config (
- Removed SDK fallbacks to hosted global defaults and split endpoint semantics.
Go SDK
NewClientnow fails fast whenAPIURLis missing.- Examples and tests updated to pass
THOTH_API_URLexplicitly. - SDK docs now include required env setup and quickstart examples.
Python SDK
ThothConfignow requires tenant API URL resolution (api_urlorTHOTH_API_URL) and enforces a single URL contract.resolved_enforcer_urlnow follows the single-URL contract and mirrorsresolved_api_url.session_intentis now accepted in config and passed to enforcement payloads.- Step-up polling now sends auth headers when
api_keyis present.
TypeScript SDK
- Removed
HOSTED_API_URLfallback and split enforcer semantics. instrument()now throws at startup whenapiUrl/THOTH_API_URLis missing.- Enforcement and event emission now route through the same tenant API URL.
sessionIntentis now supported in config and forwarded to enforcement payloads.- Runtime/test baseline updated and validated for Node.js 18+ compatibility.
This patch release fixes critical mismatches between the Go and TypeScript SDKs and the enforcement API. All SDK consumers on v0.1.0 should upgrade.
Go SDK (github.com/atensecurity/thoth-go)
- Critical enforcement compatibility and decision-handling fixes across request/response mapping.
- Endpoint and schema alignment updates for stable enforcement and step-up behavior.
- Improved client metadata propagation and response observability fields.
TypeScript SDK (@atensec/thoth)
emitBehavioralEventwas not exported from the package root. It is now accessible viaimport { emitBehavioralEvent } from "@atensec/thoth".
REST API documentation
- All endpoint paths, request field names (corrected to snake_case), response schemas, and HTTP status codes in the API reference now match the actual backend.
First General Availability Release
This is the first general-availability release of the Thoth SDK. All three language SDKs (Python, Go, TypeScript) are stable and production-ready.
Hosted API — single API key, zero infrastructure
The Thoth enforcement and event ingestion API is now hosted at https://api.atensecurity.com.
Authentication requires a single THOTH_API_KEY — no AWS credentials, no infrastructure setup.
All three SDKs pick it up automatically from the environment.
Python SDK (thoth-sdk)
instrument(agent, ...)— Instrument any AI agent with a.toolsattribute. Auto-detects LangChainAgentExecutorand CrewAIAgentvia duck-typing.instrument_anthropic(tool_fns, ...)— Wrap tool execution functions for Anthropic Claude agentic loops. Returns a governeddict[str, Callable].instrument_openai(tool_fns, ...)— Wrap tool execution functions for OpenAI tool-calling loops.ThothPolicyViolationexception — raised when the enforcer blocks a tool call. Fields:tool_name,reason,violation_id.get_current_session()— Access the active session context from within a governed tool call.ThothConfig— Pydantic model with full field validation.EnforcementModeenum —observe|progressive|step_up|block.- LangGraph and CrewAI integrations — auto-detected via duck-typing.
Go SDK (github.com/atensecurity/thoth-go)
NewClient(Config)— Initialize the Thoth client with env-var fallback.Client.WrapTool/Client.WrapToolFunc— wrap string and map tool functions.Client.StartSession(ctx, agentID, sessionID)— per-request session isolation.PolicyViolationError,StepUpRequiredError— typed error values.- Fail-open guarantee — enforcer unreachable never blocks tool execution.
TypeScript SDK (@atensec/thoth)
instrument<T>(agent, config)— generic agent instrumentation; preserves TypeScript types.wrapAnthropicTools/wrapOpenAITools— sub-path imports for framework-specific wrappers.ThothPolicyViolation— extendsError. Fields:toolName,reason,violationId.EnforcementModeenum,ThothConfiginterface,BehavioralEventinterface.- Async generator support and
strict: truecompilation.
REST API (https://api.atensecurity.com)
POST /v1/events/batch— up to 100 events per batch; idempotent viaevent_id; 90-day retention.POST /v1/enforce— returnsALLOW | BLOCK | STEP_UPwith progressive anomaly scoring.GET /v1/enforce/hold/{hold_token}— returnspending | approved | denied | expired.- Rate limits: 1,000 req/min (events), 500 req/min (enforce), 200 req/min (hold) per tenant.
| Mode | Behavior |
|---|---|
observe | Log and emit events only. Never block. |
progressive | Escalating enforcement based on session anomaly scoring. Default. |
step_up | Always require human approval for out-of-scope tools. |
block | Immediately reject with ThothPolicyViolation. |