Popular starting points. Use Tab or arrow keys to browse results.

Skip to content
Aten SecurityThoth docs

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.24November 29, 2026Fixed

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/capabilities first and falls back to GET /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/capabilities is still read on /health. It needs platform v0.6.44 or later, which serves /v1/capabilities.
Python SDK 0.9.1November 29, 2026Fixed

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/capabilities first and falls back to GET /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/capabilities is still read on /health. It needs platform v0.6.44 or later, which serves /v1/capabilities.
TypeScript SDK 0.5.1November 29, 2026Fixed

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/capabilities first and falls back to GET /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/capabilities is still read on /health. It needs platform v0.6.44 or later, which serves /v1/capabilities.
Go SDK 0.1.23November 28, 2026Added

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_date or too_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 reads GET /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, when capabilities.client_request_error is not true. 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).
Go SDK 0.1.22November 28, 2026Changed, Fixed, Known limits, Added

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_large and 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 dlp categories, mrn and dob, 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 id or chart number followed by an identifier; DOB, date of birth, birthdate, birthday or born followed 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 after patient id) and false negatives (for example user_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set's ruleset_hash is 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it to accepted_scanner_ruleset_hashes before 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. There mrn and dob are 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 containing mrn or dob with 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 new client_findings field; 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 as prompt_tokens, completion_tokens and, only if you set CostUSD, 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, redact or drop) and Config.DataHandlingPrompts (hash or drop), or the environment variables THOTH_DATA_HANDLING_TOOL_ARGUMENTS, THOTH_DATA_HANDLING_PROMPTS and THOTH_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 in data_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 makes NewClient return an error. No new dependencies. A whole-number float hashes as an integer (3.0 is 3), as in the TypeScript SDK. The args_withheld hold 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 DataHandlingToolArguments set to hash, redact or drop, the SDK scans the raw arguments (and the destination host in RequestMetadata) in your process before withholding them, and sends client_findings next to data_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 accepts client_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself as atensec-thoth-go with ruleset thoth-detectors.v1, ruleset hash 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it sets accept_local_scan and lists that hash in accepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out of scanned instead of reported clean. THOTH_DATA_HANDLING_LOCAL_SCAN=off (or DataHandlingLocalScan: "off") sends no findings. A workspace with require_client_findings holds 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.Reason explains an args_withheld hold and points to THOTH_DATA_HANDLING_TOOL_ARGUMENTS.

Pulumi provider 0.1.25November 28, 2026Changed, Fixed, Added

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 starts pending, and a change to what a live rule matches or does puts it back to pending, where Thoth does not enforce it, until a signed-in org admin decides it. enabled is true for anything not disabled, so a pending rule shows no preview difference; read status.

Fixed

  • thoth.governance.Agent: displayName, ownerEmail and approvedScope no longer fail with an "inconsistent result after apply" error (bridged from thoth_agent).

Added

  • thoth.access.EndpointApiKey gains kind, allowedAgents and allowedTools (bridged from thoth_endpoint_api_key): kind accepts only mcp_gateway, the runtime key of the customer-hosted MCP gateway, which needs permissions: ["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 from thoth_tool_inventory): the workspace's tools with Thoth's advisory recommendation for each (risk, suggested classes, a suggested STEP_UP or BLOCK, the reasons and a draft rule). Read-only; it writes no class, rule or decision. Reported descriptions and schemas are left out of dataJson. Recommendations need an admin credential.
  • thoth.governance.Policy gains argumentConditions (bridged from thoth_policy): up to five numeric checks on a tool's arguments, each argument, operator (gt, gte, lt, lte, eq), value and an optional whenMissing. A review or block rule fails closed on an omitted, non-numeric or differently spelled argument.
  • thoth.governance.DataHandling gains acceptLocalScan, acceptedScannerRulesetHashes and requireClientFindings (bridged from thoth_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.DataHandling gains locked (bridged from thoth_data_handling, default false): 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 in secretBrokerAuthBindingsJson may set upstream, the MCP gateway upstream it is for (bridged from thoth_governance_settings).
  • thoth.governance.PolicyBundle (bridged from thoth_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.PolicyExceptionReview and thoth.governance.PolicyChangeArtifactApply are refused for an API key (403): a review or apply is a signed-in person's decision.
  • thoth.governance.TenantApprovers resource (bridged from thoth_tenant_approvers): who may approve held actions on a workspace with no Slack workspace connected. userIds is a set of user IDs from your sign-in provider (at most 50); revision, updatedBy and updatedAt are 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.
Python SDK 0.9.0November 28, 2026Added

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_deep or too_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 reads GET /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, when capabilities.client_request_error is not true. 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).
Python SDK 0.8.0November 28, 2026Changed, Fixed, Known limits, Added

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_large and 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 true for resolved. 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 dlp categories, mrn and dob, 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 id or chart number followed by an identifier; DOB, date of birth, birthdate, birthday or born followed 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 after patient id) and false negatives (for example user_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set's ruleset_hash is 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it to accepted_scanner_ruleset_hashes before 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. There mrn and dob are 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 containing mrn or dob with 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) and thoth.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 as prompt_tokens, completion_tokens and, 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_from reads OpenAI-style (prompt_tokens, completion_tokens) and Anthropic-style (input_tokens, output_tokens) usage blocks. Additive: nothing changes unless you call it.

  • Opt-in withholding of values at the source. Set data_handling_tool_arguments (hash, redact or drop) and data_handling_prompts (hash or drop) on init(), the instrument*() functions or ThothConfig, or the environment variables THOTH_DATA_HANDLING_TOOL_ARGUMENTS, THOTH_DATA_HANDLING_PROMPTS and THOTH_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_arguments set to hash, redact or drop, the SDK scans the raw arguments (and the destination host in request_metadata) in your process before withholding them, and sends client_findings next to data_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 accepts client_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself as atensec-thoth with ruleset thoth-detectors.v1, ruleset hash 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it sets accept_local_scan and lists that hash in accepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out of scanned instead of reported clean. THOTH_DATA_HANDLING_LOCAL_SCAN=off (or data_handling_local_scan=False on ThothConfig) sends no findings. A workspace with require_client_findings holds calls from a client that withholds arguments and sends no findings. Nothing changes when data handling is not configured.

  • The local scan leaves recipient out of scanned, 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.

Terraform provider 0.1.25November 28, 2026Changed, Added, Fixed

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 starts pending, and a change to what a live rule matches or does puts it back to pending, where Thoth does not enforce it, until a signed-in org admin decides it. Because enabled is true for anything not disabled, the plan shows no difference for a pending rule; the provider now warns when it creates, updates or reads a pending or rejected rule, and status shows it. An admin key that re-enables a rule its owner wrote is refused with 403, and a promotion to prod always starts pending (with replace_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 (so plan keeps 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_review and thoth_policy_change_artifact_apply are refused for an API key (403): a review or apply is a signed-in person's decision. Creating a request with thoth_policy_exception still works with a key.

Added

  • thoth_endpoint_api_key: kind, allowed_agents and allowed_tools issue the runtime key of the customer-hosted MCP gateway. kind accepts only mcp_gateway, which needs permissions = ["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. The thoth_api_keys data source documents the gateway fields in each row, including needs_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: a secret_broker_auth_bindings_json binding may set upstream, the MCP gateway upstream it is for. A gateway is released a binding only when upstream equals the request's and agent_ids and tools are explicit. Needs a server that stores the field.

  • thoth_tool_inventory data source: the workspace's tools with Thoth's advisory recommendation for each (risk flags and level, suggested classes, a suggested STEP_UP or BLOCK, 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 with server or needs_classification. A tool's reported description, schema and annotations are left out of data_json. Recommendations need an admin credential and a server that returns them.

  • thoth_governance_settings: secret_broker_auth_bindings_json documents and round-trips a binding's id, agent_ids and tools (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_secret is sent only when set. Needs a server with binding scopes.

  • thoth_data_handling gains locked (default false): 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 destroy leaves a locked workspace unchanged and warns. Needs a server that stores the field.

  • thoth_policy gains argument_conditions: up to five numeric checks on a tool's arguments, ANDed with the tool match in rules_json, for example hold approve_expense when amount is over 100. Each is argument (a name or dotted path), operator (gt, gte, lt, lte, eq), value and an optional when_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 under argument_conditions in rules_json, but not both. Needs a server that applies them (an older one holds the tool for every call).

  • thoth_tenant_approvers resource: who may approve held actions on a workspace with no Slack workspace connected, such as a dedicated deployment. user_ids is a set of user IDs from your sign-in provider (at most 50, each a verified, active organization member); revision, updated_by and updated_at are read-only. Saving sends the revision it read, so a concurrent change is refused instead of overwritten. Needs use_thothctl_session or 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 serves settings/approvers.

  • thoth_data_handling gains accept_local_scan (default false), accepted_scanner_ruleset_hashes (lower-case sha256 hex, at most 20, default none) and require_client_findings (default false). 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_agent no longer fails after apply with "Provider produced inconsistent result" for display_name, owner_email and approved_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.
Thoth CLI and MCP proxy 0.4.0November 28, 2026Security, Added, Changed, Fixed, Known limits

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 MODIFY for 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=1 withheld them, and THOTH_CHILD_ENV_ALLOW could re-add them. Now every THOTH_* variable whose name contains KEY, TOKEN, SECRET, BEARER or CREDENTIAL, every THOTH_*_FILE variable and THOTH_MCP_GATEWAY_SETTINGS_JSON is withheld whatever the allow list says. An upstream that relied on receiving such a variable no longer does.
  • The hook refuses a THOTH_TENANT_ID that is not one plain DNS label (lower-case letters, numerals and hyphens, at most 63 characters, no dots, @, /, #, : or xn--) 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 as evil.com/# could otherwise move it).
  • thoth gateway does 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-a and -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 unknown key_id, is refused and the hook blocks the call (exit 2).
  • thoth gateway is the customer-hosted MCP gateway: refuse_all (the default; it answers /healthz and refuses everything else) or serve for remote_mcp upstreams with a static credential, which forwards the enforcer's signed decision receipt (require_receipt, on by default). See docs/deployment/customer-hosted-mcp-gateway.md.
  • thoth gateway serve mode can take its settings from THOTH_MCP_GATEWAY_SETTINGS_JSON instead 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, callers and require_receipt. Upgrade note: text that is not JSON, is over the cap, is not an object with a non-empty upstreams list, has any other top-level key (a misspelled callers, 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 gateway stops on SIGTERM or SIGINT: it stops accepting connections, lets in-flight requests finish for THOTH_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-gateway with --allowed-agent and --allowed-tool issues 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, approve and reject handle 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). approve needs the content hash that show printed, so a change that has since moved is refused, and needs --yes or a typed confirmation. show prints 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 makes approve refuse 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 --binding accepts upstream=NAME (letters, digits, - and _, no __, at most 128 characters, checked before anything is sent), the form the preview prints for a gateway binding. bindings lists it, and changing other flags keeps it.
  • thothctl tools recommend: per tool, Thoth's advisory recommendation (suggested classes, STEP_UP or BLOCK, risk and the reasons) from names, schemas and observed decisions, including tools seen only in recorded decisions such as Claude Code traffic. --server filters to one MCP server, --format json prints the recommendation fields (never a tool's description or schema), --show-rules prints each draft rule. --apply-classes --tool <name> declares classes for that ONE tool (no bulk form, no --all) through the same flow as tools 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 with tools confirm. It prints the expected effect first ("effect unknown" when it cannot tell; policy rules you added are not checked) and needs --yes or a y at a prompt; with no terminal and no --yes it refuses. --dry-run prints 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-code checks Claude Code's built-in tools (Bash, Edit, Write, Read and the rest) and its MCP tools with Thoth before they run, as a PreToolUse hook. ALLOW adds no decision, so Claude Code's own permissions still apply; STEP_UP and BLOCK deny the call; any failure denies it. A MODIFY answer 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_publish and similar); what it cannot recognise stays Bash. thoth hook install claude-code adds 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, glob or include is checked even when it has the same value as the pattern, and a search rooted inside ~/.thoth is 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.json and GnuPG private keys; /etc/shadow and /etc/sudoers; anywhere, *.pem, *.key, *.p12, *.pfx, id_rsa* and .env or .env.<anything>, except .pub, .example, .sample and .template names 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, and Grep when 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, curl upload options, redirections and the command behind a wrapper such as sudo or env, 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, and Glob is 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), with ggrep, ag, gawk and similar read as the tool they stand for. The value of --include, --exclude and glob options of a search tool is a file-name pattern and is not read as a path, while -f and --file values 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, rg and 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 ordinary Bash call (ls ~/.ssh is 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 as git_push does not see it; the call gets the default Bash decision, 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, and hook doctor reports a wait that does not fit, a missing onFailure: 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 is thoth.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-owned hook-policy.json can 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 leaf pins (SHA-256 of the certificate's public key); a bundle without pins, with a root or intermediate pin, 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 a pin mismatch message. 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 doctor and thoth hook trust-bundle verify verify 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-id or --trust-bundle. thoth hook verify-endpoint connects 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 resolve and 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 your thothctl auth login session 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-up does the same sign-in ahead of time on such a stack. Workspaces with a dashboard keep the browser step-up.
  • thothctl approvals list, get and resolve print who decided, in what role and why, as the sentence Slack shows (Sam Johnson (Reviewer) approved payments.send because "..."), 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[].reason and .name) moves to untrusted_reviewer_text with reviewer_text_untrusted: true, and is withheld (reason_withheld: true) for a locked workspace. --json --raw keeps the API's own keys for scripts that need them; treat that text as untrusted data. Upgrade note: this changes --json output for these three commands.
  • Local scan detects labelled medical record numbers and labelled dates of birth in tool arguments: two new dlp categories, mrn and dob, 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 id or chart number followed by an identifier; DOB, date of birth, birthdate, birthday or born followed 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 after patient id) and false negatives (for example user_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set's ruleset_hash changes to 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it to accepted_scanner_ruleset_hashes before 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, bindings and set: show the workspace's secret-broker settings, list the auth bindings (reference, host, header, agents, tools) and change them. A binding can carry an id and the agents and tools it is limited to. set changes only the flags given, replaces a list that is given, keeps the stored webhook, SIEM and PAM secrets, and refuses a secret_ref that looks like a credential before sending anything.
  • thoth doctor reports 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 true locks 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 false is refused before a request is sent. Needs a server that stores the field.
  • thothctl governance policies create and update take --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_match to 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, candidates and set read and replace the list of people who can approve held actions on a workspace without Slack. set takes --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 set takes 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 run can withhold values before they leave the machine. --data-handling-tool-arguments (hash, redact or drop) and --data-handling-prompts (hash or drop), each also read from THOTH_DATA_HANDLING_TOOL_ARGUMENTS and THOTH_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_SALT keeps 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 in data_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 is atensec-thoth-proxy with ruleset thoth-detectors.v1 (hash 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46, which includes the medical record number and date of birth detectors above); add the hash to accepted_scanner_ruleset_hashes and turn on accept_local_scan for Thoth to rely on it. The detectors are a heuristic, not a compliance control. --data-handling-local-scan off (or THOTH_DATA_HANDLING_LOCAL_SCAN=off) sends no findings. A workspace with require_client_findings on 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 activity shows 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. --days sets the look-back (1 to 30, default 7) and --json prints 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 replay shows 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, --until and --limit; --json prints 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), Python json.dumps, PHP json_encode with the JSON_HEX_* flags, and a JSON text inside a JSON string. A secret such as p@ss&word-9f3a1c77 echoed as p@ss\u0026word-9f3a1c77 was 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 list must add --json. It now prints a table (tool, server, status, classes, risk and suggested decision) instead of the raw JSON; --json prints 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=false restores 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 any headers object in those events.
  • THOTH_CLEAN_ENV=1 limits what a stdio upstream inherits to a base set plus THOTH_CHILD_ENV_ALLOW. thoth wrap-config turns it on for servers wrapped from now on (listing the variables already in the server's env block); 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 bootstrap no longer sends fail_on_missing_secret: false when --secret-broker-fail-on-missing-secret is 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 and verify-endpoint against 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 mrn and dob detectors are pattern matches with false positives and false negatives.
TypeScript SDK 0.5.0November 28, 2026Added

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_date or too_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 reads GET /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, when capabilities.client_request_error is not true. 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).
TypeScript SDK 0.4.0November 28, 2026Changed, Fixed, Known limits, Added

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_large and 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 dlp categories, mrn and dob, 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 id or chart number followed by an identifier; DOB, date of birth, birthdate, birthday or born followed 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 after patient id) and false negatives (for example user_dob, two-digit years, or a year after 2026), and they make no compliance or PHI claim. The detector set's ruleset_hash is 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46: workspace owners add it to accepted_scanner_ruleset_hashes before 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. There mrn and dob are 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 containing mrn or dob with 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 new client_findings field; the matching platform release accepts and evaluates it.

  • Opt-in withholding of values at the source. Set dataHandlingToolArguments (hash, redact or drop) and dataHandlingPrompts (hash or drop) on init(), instrument(), the wrap*/govern* helpers or ThothClient, or the environment variables THOTH_DATA_HANDLING_TOOL_ARGUMENTS, THOTH_DATA_HANDLING_PROMPTS and THOTH_DATA_HANDLING_SALT. Hashes use a client-held salt (HMAC-SHA256, node:crypto). The enforce and explain requests declare what was applied in data_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 on args_withheld needs 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 dataHandlingToolArguments set to hash, redact or drop, the SDK scans the raw arguments (and the destination host in the request metadata) in your process before withholding them, and sends client_findings next to data_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 accepts client_findings. The report never contains values, paths, local parts or display names. The detectors are heuristic. The scanner identifies itself as atensec-thoth-ts with ruleset thoth-detectors.v1, ruleset hash 9e7e25ec9d1f280b12f6006726cfc9efdaf5a0dc24585b08eb513e140ff3ae46; a workspace relies on the report only after it sets accept_local_scan and lists that hash in accepted_scanner_ruleset_hashes. A check that fails, hits the depth or value bound, or would not fit the 4 KB limit is left out of scanned instead of reported clean. THOTH_DATA_HANDLING_LOCAL_SCAN=off (or dataHandlingLocalScan: false) sends no findings. A workspace with require_client_findings holds 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); resolveJsonModule is now on in the build so the JSON is emitted next to the code.

  • The local scan leaves recipient out of scanned, 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.

Thoth CLI and MCP proxy 0.3.16November 7, 2026Security, Changed

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 update and thothctl update now require a detached Ed25519 signature of checksums.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 thothctl opens them: https only (http only for loopback), no credentials, whitespace, control characters or quotes, and a host that is loopback, an atensecurity.com or authkit.app domain, 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 through cmd /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 --force and thothctl update --force no 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.
Go SDK 0.1.21November 6, 2026Added, Fixed, Changed

Added

  • When a held action is approved or denied, the decision and PolicyViolationError carry the signed TerminalReceipt, and Receipt keeps 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. EnforcementDecision also carries ProfileID, ProfileVersion, TenantDeclarationsStatus and RiskClassification when the enforcer returns them. Event telemetry now includes the receipt's signature_key_id and 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 PolicyViolationError instead of running the original arguments, and a tool with its own args parameter is no longer misread as the positional form.
  • Enforce and hold-status requests send the API key in both X-Api-Key and Authorization: Bearer, as event ingestion already does. The SDK sent only Bearer, so behind an ingress that strips Authorization every 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.StepUpTimeout for 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 decision ALLOW next to authorization_decision MODIFY, and the SDK used to read only decision, so the tool ran with the original arguments while the decision log said MODIFY. A stricter decision (BLOCK, STEP_UP or DEFER) still wins. The TypeScript SDK was not affected.

Changed

  • Config.APIURL and THOTH_API_URL ignore blank (whitespace-only) values, so the order is always Config.APIURL, then THOTH_API_URL, then https://api.atensecurity.com.
  • Config.APIURL defaults to DefaultAPIURL (https://api.atensecurity.com), the API for trial and self-serve workspaces, when neither Config.APIURL nor THOTH_API_URL is set. Previously NewClient returned an error. Enterprise workspaces keep setting their own host; an explicit value always wins.
Python SDK 0.7.0November 6, 2026Fixed, Added, Changed

Fixed

  • ThothPolicyViolation and ThothDeferredError can be copied and pickled. A framework that re-raises the exception from a task (AG2 does) rebuilt it from its message alone and failed with TypeError: ... 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-Key and Authorization: Bearer, as event ingestion already does. The SDK sent only X-Api-Key to 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 a ThothPolicyViolation instead 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 had key_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, raise ToolArgumentsTooLargeError and 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 decision ALLOW next to authorization_decision MODIFY, and the SDK used to read only decision, so the tool ran with the original arguments while the decision log said MODIFY. A stricter decision (BLOCK, STEP_UP or DEFER) still wins. Update to get the redaction applied; the TypeScript SDK was not affected.
  • wrap_autogen_tools takes the Thoth settings (agent_id, tenant_id, approved_scope and the rest) as its docstring showed; it used to accept only a tracer, so the documented example raised TypeError. 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 direct tool.call(). That covers @beta_tool and @beta_async_tool functions, MCP tools from mcp_tool and async_mcp_tool (checked once, not again by the MCP hook), and built-in tools such as your memory tool, including classes defined after init(). 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 with anthropic 2.3.0.
  • thoth.init() now also governs AG2 (1.x): every function tool an AG2 Agent runs, from @tool, a Toolkit or 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 with ag2 1.2.2.

Changed

  • An explicit api_url now wins over THOTH_API_URL, then the environment variable, then the default https://api.atensecurity.com, the same order the TypeScript and Go SDKs use. ThothConfig used to let the environment variable override a value passed in config, so a workload that sets both now talks to the api_url it passed. Blank values are ignored.
  • The autogen extra now installs AG2 (ag2>=1.0), and an ag2 extra is added. It used to install pyautogen, which is now a proxy for Microsoft's autogen-agentchat, an API Thoth didn't govern. For Microsoft's agents, use Microsoft Agent Framework, which thoth.init() governs.
  • api_url defaults to https://api.atensecurity.com, the API for trial and self-serve workspaces, when neither api_url nor THOTH_API_URL is set, including for thoth.init(). Previously the SDK refused to start without one. Enterprise workspaces keep setting their own host.
TypeScript SDK 0.3.0November 6, 2026Fixed, Added, Changed

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 enforcement was 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-Key and Authorization: Bearer, as event ingestion already does. The SDK sent only Bearer, so behind an ingress that strips Authorization every 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 ThothPolicyViolation instead of running the original arguments. A tool whose own parameter is named args is 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 the receipt from when it was held). While it waits, the SDK prints one line saying where to approve or deny it. EnforcementDecision also carries profileId, profileVersion, tenantDeclarationsStatus and riskClassification when 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 with toJSON use 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

  • apiUrl defaults to https://api.atensecurity.com, the API for trial and self-serve workspaces, when neither apiUrl nor THOTH_API_URL is set. Previously the SDK refused to start without one. Enterprise workspaces keep setting their own host; an explicit apiUrl or THOTH_API_URL always wins.
Pulumi provider 0.1.24November 5, 2026Added, Changed, Security

Added

  • thoth.governance.RecipientPolicy resource (bridged from thoth_recipient_policy): the outside-recipient guard. mode is observe (the default: Thoth records what it would hold), enforce (sends, shares and invitations addressed outside the workspace step up for approval) or off, with internalDomains, allowedExternalDomains and allowedDestinations. Needs the server from production v0.6.32 or later.
  • thoth.governance.EvidencePack resource and thoth.governance.getEvidencePacks (bridged from thoth_evidence_pack and thoth_evidence_packs): build a signed evidence pack for a period and list the workspace's packs.
  • thoth.governance.getAgentObserveSummary (bridged from thoth_agent_observe_summary): what enforcing would have changed for an agent in observe, and whether it is ready to enforce.
  • thoth.governance.AgentEnforcement gains afterDecline (raise, the default; stop; or quarantine) and afterDeclineMinutes (5 to 1440, default 30), bridged from thoth_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 rulesJson description on Policy up 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/net to v0.62.0, a security update.
Terraform provider 0.1.24November 5, 2026Added, Changed, Security

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_policy resource: the outside-recipient guard. mode is observe (the default: Thoth records what it would hold), enforce (sends, shares and invitations addressed outside the workspace step up for approval) or off. internal_domains default to the workspace's sign-in domains; allowed_external_domains cover plain sends to customers and partners, never forwards, shares or exports; allowed_destinations names non-address targets such as patient-portal. Destroying the resource restores the defaults. Needs the server from production v0.6.32 or later.
  • thoth_evidence_pack resource: 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 with thothctl evidence pack download and thothctl evidence verify --pack.
  • thoth_evidence_packs data source: the workspace's packs and their status, without part locations.
  • thoth_agent_observe_summary data source: what enforcing would have held or denied for an agent in observe mode, and ready_to_enforce with 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 on thoth_agent_enforcement; Thoth never switches an agent itself.
  • thoth_agent_enforcement gains after_decline (raise, the default; stop; or quarantine) and after_decline_minutes (5 to 1440, default 30): what a person declining one of the agent's held actions does. With raise, 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 to raise for 30 minutes.

Changed

  • Registering an agent (thoth_agent) needs an admin on every workspace, not only on the shared runtime. Setting enforcement_mode while registering also needs a recent second factor when the provider acts as a person (use_thothctl_session); API keys are exempt, as for thoth_agent_enforcement. This is enforced by the server from production v0.6.31 or later.

Security

  • Updated golang.org/x/net to v0.62.0, a security update.
Thoth CLI and MCP proxy 0.3.15November 5, 2026Security, Added, Changed

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|set configures the outside-recipient guard, the same setting as the thoth_recipient_policy Terraform resource. set --mode off|observe|enforce chooses whether sends, shares and invitations addressed outside the workspace are only recorded or held for review. --internal-domains, --allowed-external-domains and --allowed-destinations take 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|clear declares the compliance regimes the workspace is assessed against, without Terraform. set --regimes soc2,hipaa --mode observe|enforce declares them for the whole workspace: in observe each control's result is recorded and no decision changes; in enforce a declared control that fails can deny an action or hold it for approval. clear removes the declaration, and get shows 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 --confirm it 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 set takes --after-decline raise|stop|quarantine and --after-decline-minutes 5..1440 (with raise): what a person declining one of the agent's held actions does. With raise, the default, the agent's next actions of the same kind need approval for that long, in every session; stop isolates that session; quarantine quarantines 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 for agents mode set. The server enforces this from production v0.6.31 or later; thothctl shows the server's refusal as it is.
Python SDK 0.6.0October 31, 2026Fixed, Added

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_options now checks every tool call in a PreToolUse hook, including tools in allowed_tools and calls in bypass-permissions mode, which the SDK never passes to can_use_tool and which Thoth therefore didn't check before. An allowed call is still left to the SDK's rules and your can_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 the mcp package's ClientSession.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 as github_create_issue for create_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 with mcp 2.3.0.
  • thoth.init() now also governs the Claude Agent SDK: every query() and ClaudeSDKClient connection gets Thoth's PreToolUse check, so each tool call, including tools in allowed_tools, is checked before the CLI runs it, without passing options through instrument_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 with claude-agent-sdk 0.2.176.
  • thoth.init() now also governs Strands Agents tools: @tool functions, MCP tools and agents used as tools, whether the model calls them or your code calls agent.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 with strands-agents 1.63.0.
  • thoth.init() now also governs Microsoft Agent Framework tools: @tool functions, 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 with agent-framework-core 1.24.0.
  • thoth.init() now also governs Google ADK tools (FunctionTool, MCP tools, agent tools and your own BaseTool subclasses, including ones defined after init()), checked at run_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 with google-adk 2.13.0's LlmAgent and InMemoryRunner.
  • 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 raises ThothPolicyViolation, since text in its place would become the agent's typed final answer; plain schema outputs call no function of yours. Tested with pydantic-ai-slim 2.64.0's Agent and FunctionModel.
  • thoth.init() now also governs CrewAI tools, including tools defined before init() runs: @tool tools and BaseTool subclasses, 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 with crewai 1.15.33.
  • thoth.init() now also governs OpenAI Agents SDK (openai-agents) function tools, including tools defined before init() 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 with openai-agents 0.24.0's Runner.
  • thoth.init(): one call at startup governs every LangChain tool in the process, including the tools LangGraph's ToolNode runs, with no change to any tool. It reads THOTH_AGENT_ID, THOTH_TENANT_ID, THOTH_API_URL and THOTH_API_KEY; approved_scope is optional. The server's observe or enforce mode for the agent applies, a refusal raises ThothPolicyViolation before 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() or instrument_langgraph() is checked once, not again by init()'s hook.
TypeScript SDK 0.2.0October 31, 2026Fixed, Added

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 AgentExecutor to instrument(), which wraps tools with a .run method. LangChain.js tools have none, so no tool in that example was governed. The section now uses governLangChainTools.

Added

  • actingFor(userId, fn, { sessionId }) now covers every governed tool given no userId, including those governed with instrument() or a govern* function (the AI SDK, OpenAI Agents, Mastra, Genkit, the Claude Agent SDK and the rest), and no longer needs init(). 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. A userId set 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 direct agent.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 an LlmAgent uses is governed as the agent resolves its tools, so your own BaseTool subclasses are governed too; a refused call throws ThothPolicyViolation from runAsync. Tested with @strands-agents/sdk 1.23.0 and @google/adk 2.4.0.

  • init() and actingFor(): 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() reads THOTH_AGENT_ID and THOTH_TENANT_ID with the existing variables; shutdown() removes it. Frameworks whose tools are plain objects keep their govern* functions. Tested with @langchain/core 1.3.2 and @modelcontextprotocol/sdk 1.32.2.

  • Cloudflare Agents: documented governing a chat agent's tools with governAiSdkTools, since AIChatAgent (@cloudflare/ai-chat) runs tools through the AI SDK and this.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's ToolNode and createReactAgent and for LangChain agents. Each invoke (and call) is checked with the tool's arguments, a ToolCall by its args; a refused call never runs. The tools passed in are unchanged. Tested with @langchain/core 1.3.2 and @langchain/langgraph 1.6.0.

  • Mastra: governMastraTools(tools, config) (also @atensec/thoth/mastra) returns governed copies of a Mastra agent's tools, keyed the same. Each execute is 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 Mastra Agent from @mastra/core 1.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 in options.ungoverned. Tested with @openai/agents 0.21.0's run().

  • 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 Strands Agent from @strands-agents/sdk 1.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's runAsync runs, and the tool runs with exactly the arguments Thoth checked, so a beforeToolCallback can't change them after the check; a refused call never runs. Tested with an LlmAgent and InMemoryRunner from @google/adk 2.4.0.

  • Genkit: thothGenkitMiddleware(generateMiddleware, config) (also @atensec/thoth/genkit) builds Genkit generate middleware whose tool hook checks every tool call before it runs and runs the tool with exactly the input Thoth checked. Pass it last in use (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 with genkit 1.43.0's generate.

  • 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 in allowedTools. 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-sdk 0.3.316's hook types.

  • MCP clients: governMcpClient(client, config) (also @atensec/thoth/mcp) governs every callTool an @modelcontextprotocol/sdk client 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/sdk 1.32.2.

  • Vercel AI SDK: governAiSdkTools(tools, config) (also @atensec/thoth/ai-sdk) governs a tool set for generateText, streamText or an Agent. Each tool with an execute is checked before it runs, with only the tool's input sent as its arguments; the call options reach execute unchanged, and tools without execute are left alone. Input schemas (Zod or JSON Schema) are reported to the tool inventory as JSON Schema. Tested with AI SDK 7.0.159.

Thoth CLI and MCP proxy 0.3.14October 29, 2026Added

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 list shows its status; thothctl evidence pack download --pack-id &lt;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 into thothctl, 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). --json gives 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 &lt;id> [--quarantine-agent] --confirm makes Thoth deny every action in one session until it is released, while the agent's other sessions continue; --quarantine-agent also quarantines the agent. thothctl investigate release --session-id <id> --confirm releases it and restores the session's earlier status; an agent quarantine stays until lifted with thothctl agents quarantine lift.
Pulumi provider 0.1.23October 28, 2026Added, Changed

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.TeamMember and thoth.governance.SlackApprovals resources (bridged from thoth_team_member and thoth_slack_approvals). Both need useThothctlSession.
  • Provider configuration useThothctlSession (and thothctlSessionFile): act as the person signed in with thothctl auth login, as in the Terraform provider.
  • thoth.governance.ModelArtifact resource and getModelArtifacts function (bridged from thoth_model_artifact and thoth_model_artifacts): the model artifact registry and its activation gate.
  • thoth.governance.Policy resource (bridged from thoth_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.OrgSecuritySettings resource (bridged from thoth_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.Agent resource (bridged from thoth_agent): registers an agent with its display name, owner and approved scope.

Changed

  • thoth.governance.PolicyException.holdToken is now secret, matching the Terraform provider.
Terraform provider 0.1.23October 28, 2026Added, Changed

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_policy resource: a policy rule in dev or prod, with its type, enforcement, applied_to and conditions (rules_json). A rule created with a key that is not an org admin's starts pending until an org admin approves it; status shows that and Terraform never approves. enabled = false turns a rule off. Changing environment replaces the rule. Import with environment/policy_id.
  • thoth_team_member resource: invite a person, set their role and remove them, on self-serve, trial and dedicated workspaces.
  • thoth_slack_approvals resource: 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 (and thothctl_session_file): the provider acts as the person signed in with thothctl auth login, renewing the session as thothctl does and sharing it. Changes that need a recent second factor use the proof from thothctl 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_artifact resource: registers a model artifact and takes it through Thoth's activation gate (provenance verification, then screening or waiver_reason, then activate). 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_artifacts data source: lists registered artifacts, optionally by lifecycle status.
  • thoth_org_security_settings resource: sign-in security for the workspace. require_mfa asks 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; and ip_allowlist restricts 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_agent resource: registers an agent (agent_id, display_name, owner_email, approved_scope) and reads back its status. 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_token is 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.
Thoth CLI and MCP proxy 0.3.13October 28, 2026Added, Changed

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|delete manages 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 with decide; delete needs --confirm. thothctl governance policies simulate --environment dev|prod --tool &lt;name> --agent-id &lt;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-id is 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-file for a modification). thothctl exceptions artifacts list|get|apply applies 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, and thothctl 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|unblock acts on agents Thoth has seen calling without a registration (block needs --confirm). thothctl kill-switch [--env dev|staging|prod] --confirm quarantines every registered agent and active endpoint and stops running sessions; thothctl endpoints quarantine set|lift --endpoint-id &lt;id> is the way back. thothctl fleets list|get|create|update|delete|deploy|pause|rollback manages fleets (delete and rollback need --confirm), and thothctl endpoints set-mode --endpoint-id <id> --mode enforce|observe|off sets 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 team manages people as a signed-in admin: on self-serve and trial workspaces team members list|remove|set-role, team invitations list|create|revoke and team requests list|approve|deny; on dedicated workspaces team org-members list|invite|remove|set-role. Neither removes yourself or the last admin. thothctl settings security get|set|remove manages sign-in security (--require-mfa, --session-timeout-minutes, --ip-allowlist); get shows the address Thoth sees you connecting from, which an allowlist must include. thothctl auth step-up confirms a second factor in the browser ahead of time; the proof lasts about 15 minutes and is shared with the Terraform provider's use_thothctl_session.
  • Slack. thothctl slack status|channels|set-channel and thothctl slack reviewers list|candidates|set choose the approvals channel and who approves (API keys cannot appoint reviewers). thothctl support status|create|invite|resend manages the Slack Connect support channel with Aten as a signed-in organization admin; writes need --confirm and send an idempotency key you can reuse with --idempotency-key to retry safely.
  • Settings. thothctl settings set changes 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), and thothctl 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|activate takes an artifact through Thoth's activation gate, as the thoth_model_artifact Terraform resource does. waive and activate need --confirm.

Changed

  • thothctl reports list prints a table (report ID, cadence, status, generated, period, denials); --json keeps the full snapshots.
  • thothctl agents observe-summary names modified and deferred actions only when there are any.
  • Tables print booleans as yes or no, and numbers, instead of -.
  • thothctl manual and thoth manual print a reference generated from the commands themselves.
Pulumi provider 0.1.22October 24, 2026Added

Added

  • Updated the Terraform provider bridge to v0.1.22, adding the resources below.
  • thoth.governance.SiemDecisionStream resource (bridged from thoth_siem_decision_stream): which enforcement decisions are sent to the workspace's SIEM destination.
  • thoth.governance.ToolClassification gains optional targetSensitivity and actingPrivilege, sent with each decision in the SIEM decision stream.
  • thoth.governance.AgentEnforcement resource (bridged from thoth_agent_enforcement): an agent's mode, observe or enforce.
  • Updated the build default and plugin installation example to 0.1.22.
Pulumi provider 0.1.21October 24, 2026Added

Added

  • Updated the Terraform provider bridge to v0.1.21: the thoth.governance.DataHandling resource (what Thoth keeps of tool arguments and prompts; defaults hash arguments, drop prompts) and the thoth.governance.getDecisions function (recorded enforcement decisions with the decisions view filters).
  • Updated the build default and plugin installation example to 0.1.21.
Terraform provider 0.1.22October 24, 2026Added

Added

  • thoth_siem_decision_stream resource: which enforcement decisions are sent to the workspace's SIEM destination. decisions is non_allow (holds and blocks, the default) or all, with allow_sample_rate for ALLOWs. Needs thoth_siem_settings first; destroying the resource turns the stream off.
  • thoth_tool_classification gains optional target_sensitivity (public, internal, confidential, restricted) and acting_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_enforcement resource: an agent's mode, observe (Thoth records what enforcing would decide and allows the action) or enforce, with high_risk_action (hold or deny). Destroying it returns the agent to enforce.
Terraform provider 0.1.21October 24, 2026Added

Added

  • thoth_data_handling resource: what Thoth keeps of your agents' tool arguments (store, hash, redact or drop) and prompts, model output and tool results (store, hash or drop). The defaults are hash and drop, and destroying the resource returns the workspace to them. Needs a Thoth API with the data-handling endpoint.
  • thoth_decisions data source: recorded enforcement decisions, newest first, filtered by outcome, agent, tool, reason code, matched rule and time window. Reads up to max_results (default 100, at most 1,000) and sets truncated when more matched.
Thoth CLI and MCP proxy 0.3.12October 24, 2026Added

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 get shows which decisions Thoth sends to your SIEM and how delivery is going (last delivered, last failure, failures in the last 24 hours), and thothctl 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 confirm takes --target-sensitivity public|internal|confidential|restricted and --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, and thothctl agents observe-summary --agent-id <id> [--days N] shows what enforcing would have denied or held for an agent in observe.
Thoth CLI and MCP proxy 0.3.11October 24, 2026Added

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 get shows what Thoth keeps of tool arguments, prompts and tool output for the workspace, and thothctl settings data-handling set --tool-arguments store|hash|redact|drop --prompts store|hash|drop changes 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 list lists recorded enforcement decisions newest first, filtered by --outcome, --agent-id, --tool, --reason-code, --rule-id, --since and --until, with --cursor for the next page. thothctl decisions export downloads 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.
Pulumi provider 0.1.20October 23, 2026Fixed

Fixed

  • A trial or self-serve workspace (a 32-character workspace ID as tenant_id) now reaches https://api.atensecurity.com when apiBaseUrl is omitted. Before, the provider derived https://grid.<workspace-id>.atensecurity.com, which exists only for dedicated tenants. Dedicated tenants are unchanged.
Python SDK 0.5.25October 23, 2026Added

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 and decision_reason_code billing_<code>. The message is logged once per process. fail_open does 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_url on the hold status; with an older enforcer the SDK stays quiet as before.
Terraform provider 0.1.20October 23, 2026Fixed

Fixed

  • A trial or self-serve workspace (a 32-character workspace ID as tenant_id) now reaches https://api.atensecurity.com when api_base_url is omitted. Before, the provider derived https://grid.<workspace-id>.atensecurity.com, which exists only for dedicated tenants. Dedicated tenants are unchanged.
Thoth CLI and MCP proxy 0.3.10October 23, 2026Fixed

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.
Thoth CLI and MCP proxy 0.3.9October 23, 2026Changed, Fixed

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.com as their GovAPI by default. https://govapi.trial.atensecurity.com reaches the same service, and sessions saved for it keep working.
  • thothctl mcp config --trial points clients at https://mcp.atensecurity.com/<tenant>, the dedicated MCP host. https://govapi.trial.atensecurity.com/thoth/mcp/<tenant> keeps working.

Fixed

  • A thothctl auth login session 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.
Pulumi provider 0.1.19October 19, 2026Changed

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.
Terraform provider 0.1.19October 19, 2026Added, Fixed

Added

  • thoth_tool_classification accepts an optional agent_id to 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.
Thoth CLI and MCP proxy 0.3.8October 19, 2026Added, Fixed, Privacy, Changed

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 config generates 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 list shows tools discovered from your agents with their proposed effect classes, and thothctl tools confirm records an admin's confirmed classes. Only confirmed classes change decisions. thoth tools forwards to the same commands.

  • thothctl init --agent-id AGENT --profile PROFILE gives an agent a governance profile (safe-default, coding-agent, finance-operations or customer-support), pinned at --profile-version (default 1.0.0).

  • The MCP proxy reports the tools an MCP server lists, including its readOnlyHint, destructiveHint and openWorldHint annotations, as advisory proposals. Annotations are claims made by the server, never authority.

Fixed

  • thothctl auth login works 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, const and enum values before reporting tools, keeps parameters with those names, and percent-encodes the tenant ID. Set THOTH_TOOL_INVENTORY=off to disable reporting.

Changed

  • Added internal broker execution plumbing that is not enabled in this release and changes no runtime behaviour.
Go SDK 0.1.20October 18, 2026Added, Privacy

Added

  • Tool inventory: RegisterToolInventory sends 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, const and enum values 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=off to disable collection.
Pulumi provider 0.1.18October 18, 2026Added, Changed, Upgrade note

Added

  • Bridged the Terraform provider's 0.1.18 surface. PackAssignment accepts the governance profiles safe-default, coding-agent, finance-operations and customer-support as packId, with profileVersion to pin the version and profileParametersJson for paid-plan parameters. While profileVersion is set, profile changes made through the resource are approved. See the terraform-provider-thoth 0.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:
    • Makefile default VERSION
    • 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.

Python SDK 0.5.24October 18, 2026Added, Privacy

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, const and enum values 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=off to disable collection.
Terraform provider 0.1.18October 18, 2026Added, Upgrade note

Added

  • thoth_pack_assignment accepts the governance profiles safe-default, coding-agent, finance-operations and customer-support as pack_id. A profile gives an agent a starter policy built on confirmed tool classes and named rules, without writing rules.
  • profile_version pins the profile version. While it is set, the provider approves profile changes made through this resource, including a new profile_version; Terraform review is the approval step.
  • profile_parameters_json sets the paid-plan profile parameters: payment_approval_amount_usd (default 10000), refund_approval_amount_usd (default 5000) and approved_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.

TypeScript SDK 0.1.22October 18, 2026Added, Privacy

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, const and enum values 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=off to disable collection. In runtimes without process, such as browsers and edge runtimes, collection stays on.
Pulumi provider 0.1.17October 16, 2026Added, Changed, Security, Upgrade note

Added

  • Bridged the Terraform provider's 0.1.17 surface. governance.ToolClassification declares 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 the terraform-provider-thoth 0.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:
    • Makefile default VERSION
    • plugin install command in docs/installation-configuration.md

Security

  • Updated indirect dependencies, including golang.org/x/net, golang.org/x/crypto and golang.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.

Terraform provider 0.1.17October 16, 2026Added, Security, Upgrade note

Added

  • thoth_tool_classification declares 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/net 0.58.0 to 0.60.0, golang.org/x/crypto 0.55.0 to 0.57.0 and golang.org/x/mod 0.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.

Pulumi provider 0.1.16September 18, 2026Added, Changed, Upgrade note

Added

  • Bridged the Terraform provider's 0.1.16 surface. GovernanceSettings gains the executable compliance declaration (declaredRegulatoryRegimes, complianceEnforcementMode) with computed canonical regimes, coverage, revision and propagation bound, and McpVendor gains manifest signature, capability, runtime identity and egress attributes. See the terraform-provider-thoth 0.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:
    • Makefile default VERSION
    • 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.

Python SDK 0.5.23September 18, 2026Fixed, Security, Added, Unchanged

Fixed

  • The tracer discarded the final enforcement decision after computing effective tool arguments, so POST telemetry hardcoded ALLOW and omitted server-issued reason codes and structured decision evidence. The real outcome is now retained and reported.
  • A resolved STEP_UP no 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

  • EnforcementDecision and the policy exceptions gain an optional terminal_receipt field. 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 MODIFY outcomes, and current OBSERVE behaviour. The enforcement return shape remains private to the SDK implementation.
Terraform provider 0.1.16September 18, 2026Added, Changed, Security, Upgrade note

Added

  • thoth_governance_settings gains an executable compliance declaration: declared_regulatory_regimes and compliance_enforcement_mode, with computed canonical_regimes, compliance_coverage, compliance_revision and propagation_max_ms. A declaration governs all current and future tenant agents, including agents with no policy record. observe records advisory findings and preserves independent authorization; enforce adds 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 plan previews 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_vendor gains manifest signature attributes (manifest_signature_status, _signer, _bundle_ref, _verified_at), plus capabilities, runtime_identity, egress_policy_mode and egress_allowed_host_patterns.
  • thoth_governance_settings gains regulatory_regimes for 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/text 0.37.0 to 0.41.0, golang.org/x/net 0.55.0 to 0.58.0 and golang.org/x/crypto 0.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:

python3 scripts/reliability/compliance_release_preflight.py \
  --base-url https://grid.<tenant>.<apex> --tenant-id <tenant>
Thoth CLI and MCP proxy 0.3.7September 12, 2026Security, Added, Fixed, Known limitations, Changed

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 h2 0.4.13 in v0.3.6 to 0.4.19, fixing RUSTSEC-2026-0258 (unbounded queuing of empty DATA frames through hyper). 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_id from 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 ALLOW and BLOCK responses, which previously carried none. BLOCK, DEFER and STEP_UP responses 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 as enforcer_invalid_response rather 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_UP from exporting a receipt that the underlying ALLOW never 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 that thothctl applies 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.
Go SDK 0.1.19September 11, 2026Added, Changed

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.
Python SDK 0.5.22September 11, 2026Added, Fixed, Changed

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 explicit ThothDeferredError handling.
  • 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/run tools 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.
TypeScript SDK 0.1.21September 11, 2026Fixed

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.
TypeScript SDK 0.1.20September 11, 2026Added, Changed

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 files allowlist. 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.
Pulumi provider 0.1.15July 23, 2026Changed, Fixed

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:
    • Makefile default VERSION
    • 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
Terraform provider 0.1.15July 23, 2026Fixed

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.
Pulumi provider 0.1.14July 10, 2026Fixed

Fixed

  • Added required YAML front-matter blocks to:
    • docs/_index.md
    • docs/installation-configuration.md
  • This unblocks Pulumi registry metadata generation (resourcedocsgen metadata from-github) and future nightly community-package refreshes.
Terraform provider 0.1.14July 10, 2026Changed

Changed

  • Release alignment patch to unblock downstream Pulumi provider v0.1.14 publishing and registry metadata refresh.
Pulumi provider 0.1.13July 9, 2026Changed, Added

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:
    • Makefile default VERSION
    • 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.md for Node.js, Python, and .NET quick starts.
Terraform provider 0.1.13July 9, 2026Added, Changed

Added

  • Added policy-exception workflow resources:
    • thoth_policy_exception
    • thoth_policy_exception_review
    • thoth_policy_change_artifact_apply
  • Added policy-exception workflow data sources:
    • thoth_policy_exception
    • thoth_policy_exceptions
    • thoth_policy_change_artifact
    • thoth_policy_change_artifacts
  • Added governance + MCP summary data sources:
    • thoth_governance_executive_summary
    • thoth_governance_board_incident_summary
    • thoth_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.
Thoth CLI and MCP proxy 0.3.6July 9, 2026Fixed

Fixed

  • Emitted behavioral telemetry events from the Rust thoth proxy for local preflight outcomes (BLOCK, DEFER, STEP_UP) and forwarded execution outcomes so Claude Desktop/runtime decisions are ingested through /v1/events/batch and appear in governance feeds.
Go SDK 0.1.18June 20, 2026Changed

Changed

  • Added configurable resilience mode via Config.FailOpen / THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429, 5xx) return ALLOW so tool execution can continue.
  • Auth failures (401/403) remain fail-closed and continue returning BLOCK.
  • 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.
Python SDK 0.5.21June 20, 2026Changed

Changed

  • Added configurable resilience mode via ThothConfig.fail_open / THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429, 5xx) return ALLOW so agent execution can continue.
  • Auth failures (401/403) remain fail-closed and continue returning BLOCK.
  • 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 ensure traceable tools 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 _run and run are both governed even when LangChain classes are not importable at runtime.
  • Fixed generic .tools wrapping 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/run wrapping in tests/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 ThothDeferredError and 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(...).
TypeScript SDK 0.1.19June 20, 2026Changed

Changed

  • Added configurable resilience mode via failOpen / THOTH_FAIL_OPEN. When enabled, enforcer transport failures and retryable statuses (429, 5xx) return ALLOW so tool execution can continue.
  • Auth failures (401/403) remain fail-closed and continue returning BLOCK.
  • 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.
Python SDK 0.5.20June 15, 2026Added

Added

  • Added a LangGraph runtime enforcement example at examples/langchain/langgraph_runtime_enforcement.py that demonstrates observe and progressive enforcement flows using instrument_toolchain().
  • Added a companion policy example at examples/langchain/policies/research_agent.rego covering allow, step-up, block, and flag outcomes for a research-agent toolchain.
  • Added a cookbook notebook at examples/langchain/cookbook_agent_governance.ipynb with 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.py used 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.
Pulumi provider 0.1.12June 10, 2026Changed, Added, Fixed

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:
    • Makefile default VERSION
    • Node.js example package dependency (@atensec/pulumi-thoth)

Added

  • Pulumi bridge now exposes Terraform 0.1.12 MCP vendor registry and catalog verification surfaces:
    • McpVendor resource
    • getMcpVendors data source
    • McpCatalogVerify resource
    • getMcpInventoryReport data source

Fixed

  • Inherited Terraform 0.1.12 stabilization for MCP vendor hostPatterns ordering so Pulumi up/refresh operations converge deterministically when API response ordering differs.
Thoth CLI and MCP proxy 0.3.5June 10, 2026Added, Changed

Added

  • Added MCP vendor registry and catalog verification command surfaces in thothctl to align CLI capability with current control-plane governance APIs.

Changed

  • Updated release automation and public distribution flow for thoth and thothctl so production release tags drive Homebrew package publication from signed assets.
Terraform provider 0.1.12June 9, 2026Added, Fixed

Added

  • Added MCP vendor registry support:
    • thoth_mcp_vendor resource
    • thoth_mcp_vendors data source
  • Added MCP inventory and verification surfaces:
    • thoth_mcp_inventory_report data source
    • thoth_mcp_catalog_verify resource

Fixed

  • Stabilized thoth_mcp_vendor.host_patterns state 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.4June 8, 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 + thothctl binary 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.
v0.1.18 / v0.3.3May 14, 2026

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 + thothctl binary line: unchanged at thoth/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 / ThothPolicyViolation is 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 from STEP_UP: no human approval required, time-bounded, and recoverable by design. The error surfaces deferTimeoutSeconds / DeferTimeoutSeconds for 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:

FieldDescription
decision_envelope_version / DecisionEnvelopeVersionSchema version of the enforcer response — for forward-compatibility checks
enforcement_trace_id / EnforcementTraceIDCorrelation ID following the request through enforcer → fast-ML → deep-LLM
fastml_features / FastMLFeaturesONNX fast-ML feature vector used to score the request
score_components / ScoreComponentsComposite risk score breakdown by component (scope, velocity, identity binding, etc.)
top_contributors / TopContributorsRanked list of highest-weight features that drove the decision
decision_evidence / DecisionEvidenceRaw 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.

v0.1.17 / v0.3.3May 10, 2026

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 + thothctl binary 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.3 binary line.
  • Standardized provider references on v0.1.7 across Terraform and Pulumi docs.
v0.1.16 / v0.3.0May 5, 2026

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 + thothctl binary 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_KEY for Terraform and Pulumi provider usage.
  • Updated provider release notes and docs for dual-auth guidance.

Thoth binary line release

  • Published thoth/v0.3.0 and aligned customer-facing install/version references.
  • Updated release docs to reflect the current stable binary line for thoth and thothctl.
v0.1.15 / v0.2.23April 30, 2026

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.
v0.1.14 / v0.2.22April 28, 2026

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.
v0.5.5 / v0.2.20April 27, 2026

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.
v0.5.4 / v0.2.19April 26, 2026

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.
  • --force is 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.
v0.5.4 / v0.2.18April 26, 2026

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 ... and X-Api-Key headers 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.
v0.1.6 / v0.2.8April 24, 2026

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 ThothClient compatibility export.
  • Added legacy method aliases (wrap, wrap_openai_tools, wrap_anthropic_tools) that delegate to current instrument* 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 ThothClient support.
v0.1.6 / v0.2.8April 22, 2026

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.
v0.1.6 / v0.2.7April 21, 2026

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_ID remains required and must be a valid email address.
  • enforcer_url and govapi_url are inferred from tenant_id + apex_domain.
  • --enforcer-url / THOTH_ENFORCER_URL are 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.7 defaults for identity, URL inference, and runtime env expectations.
v0.1.6 / v0.2.3April 20, 2026

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-config now supports repeatable --env KEY=VALUE to 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_url is derived automatically from tenant_id + apex_domain as https://grid.<tenant>.<apex-domain>.
    • enforcer_url is derived automatically as https://enforce.<tenant>.<apex-domain> when not explicitly set.
    • legacy gov_api_url compatibility paths are removed.
  • Runtime identity hardening:
    • THOTH_USER_ID must 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-config flags and document inline environment injection via --env.
v0.1.6 / v0.2.2April 19, 2026

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_args
    • enforcement_trace_id
    • user_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.
v0.1.3 / v0.2.0April 15, 2026

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/thoth v0.2.0)
⚡

Python SDK (atensec-thoth)

  • BehavioralEvent now includes endpoint context fields:
    • endpoint_id
    • hostname
  • BehavioralEvent now includes WORM chain evidence fields:
    • chain_index
    • hash
    • previous_hash
    • signature
  • Dependency lock/metadata refreshed as part of the SDK patch line.

TypeScript SDK (@atensec/thoth)

  • Enforcer payload now propagates:
    • tool_args
    • user_id
    • metadata.policy_context
    • enforcement_trace_id
  • ThothConfig adds:
    • policyContext
    • enforcementTraceId
  • Instrumentation now serializes tool call arguments safely before enforcement checks.

MCP Proxy (thoth binary)

  • Emitted events now include normalized top-level endpoint metadata:
    • endpoint_id
    • hostname
  • Event metadata includes hostname consistently for downstream pipelines.
  • MCP proxy distribution now uses the cross-platform thoth binary release line.
  • Docs + install path standardized to:
    • curl -fsSL https://install.atensecurity.com/thoth | sh
    • GitHub release assets from atensecurity/thoth
v0.1.2April 10, 2026

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)
  • SDK startup now requires tenant API URL configuration via:
    • explicit config (APIURL / api_url / apiUrl)
    • or THOTH_API_URL
  • Removed SDK fallbacks to hosted global defaults and split endpoint semantics.

Go SDK

  • NewClient now fails fast when APIURL is missing.
  • Examples and tests updated to pass THOTH_API_URL explicitly.
  • SDK docs now include required env setup and quickstart examples.

Python SDK

  • ThothConfig now requires tenant API URL resolution (api_url or THOTH_API_URL) and enforces a single URL contract.
  • resolved_enforcer_url now follows the single-URL contract and mirrors resolved_api_url.
  • session_intent is now accepted in config and passed to enforcement payloads.
  • Step-up polling now sends auth headers when api_key is present.

TypeScript SDK

  • Removed HOSTED_API_URL fallback and split enforcer semantics.
  • instrument() now throws at startup when apiUrl/THOTH_API_URL is missing.
  • Enforcement and event emission now route through the same tenant API URL.
  • sessionIntent is now supported in config and forwarded to enforcement payloads.
  • Runtime/test baseline updated and validated for Node.js 18+ compatibility.
v0.1.1March 31, 2026API Contract Fixes

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)

  • emitBehavioralEvent was not exported from the package root. It is now accessible via import { 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.
v0.1.0March 30, 2026

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.

export THOTH_API_KEY="thoth_live_your_key_here"

Python SDK (thoth-sdk)

  • instrument(agent, ...) — Instrument any AI agent with a .tools attribute. Auto-detects LangChain AgentExecutor and CrewAI Agent via duck-typing.
  • instrument_anthropic(tool_fns, ...) — Wrap tool execution functions for Anthropic Claude agentic loops. Returns a governed dict[str, Callable].
  • instrument_openai(tool_fns, ...) — Wrap tool execution functions for OpenAI tool-calling loops.
  • ThothPolicyViolation exception — 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.
  • EnforcementMode enum — 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 — extends Error. Fields: toolName, reason, violationId.
  • EnforcementMode enum, ThothConfig interface, BehavioralEvent interface.
  • Async generator support and strict: true compilation.

REST API (https://api.atensecurity.com)

  • POST /v1/events/batch — up to 100 events per batch; idempotent via event_id; 90-day retention.
  • POST /v1/enforce — returns ALLOW | BLOCK | STEP_UP with progressive anomaly scoring.
  • GET /v1/enforce/hold/{hold_token} — returns pending | approved | denied | expired.
  • Rate limits: 1,000 req/min (events), 500 req/min (enforce), 200 req/min (hold) per tenant.
⚡
ModeBehavior
observeLog and emit events only. Never block.
progressiveEscalating enforcement based on session anomaly scoring. Default.
step_upAlways require human approval for out-of-scope tools.
blockImmediately reject with ThothPolicyViolation.

On this page