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

Skip to content
Aten SecurityThoth docs

Data handling

What Thoth keeps of your agents' tool arguments, prompts and tool output, where, and for how long.

Thoth records a decision for every action an agent asks to take. This page says what that record contains, and how your workspace controls the parts that can hold sensitive data: tool arguments, prompts and tool output.

What every decision record contains

  • The agent, the person it acts for when known, the tool and the session.
  • The decision (ALLOW, STEP_UP, DEFER, MODIFY or BLOCK), the rule or reason that produced it, and whether a model risk score took part. A score can raise a decision but never lower it, so no model produces an ALLOW.
  • A signed decision receipt. Receipts and compliance evidence hold a hash of the tool arguments, never the arguments themselves.

Tool arguments, prompts and tool output

Agents and the MCP proxy can send Thoth the arguments of a tool call, the prompt and model output around it, and the tool's result. Your workspace decides what Thoth keeps of each.

SettingChoicesDefault
Tool argumentsstore as sent, hash each value, redact each value to its type, or drophash
Prompts, model output and tool resultsstore, hash the whole text, or dropdrop

With the defaults, Thoth keeps the shape of a tool call (its argument names) with each value replaced by a hash, and keeps no prompt, model output or tool result.

Hashes are HMAC-SHA256 with a key specific to your workspace. Equal values produce equal hashes within your workspace, so you can still match and count identical calls. Short values, such as an account number, cannot be recovered by guessing, and hashes from different workspaces do not match each other.

The setting is applied when data reaches Thoth, before it is queued or stored, to:

  • events from the SDKs and the MCP proxy (POST /v1/events/batch);
  • the replay snapshots trial workspaces use to improve decisions.

Data already stored keeps the setting it was stored under.

The setting applies on Thoth's servers. Dropping data in the SDKs and the proxy, so that it never leaves your environment, is planned. The server side of that is described under Arguments withheld by the client.

Arguments withheld by the client

Thoth's decision API accepts an optional data_handling field on POST /v1/enforce and POST /v1/explain that says what the client already did to the values it sent. This is server support only: no SDK, proxy or other client sends the field yet, and clients that do will be announced separately. Requests without the field behave exactly as before.

{
  "data_handling": {
    "tool_arguments": "hash",
    "prompts": "drop",
    "applied_at": "client",
    "version": 1
  }
}
  • tool_arguments is hash, redact or drop; prompts is hash or drop. store is not a valid value (a client that applied nothing leaves the field out), and any other value or an unknown key is rejected with 422.
  • Your workspace setting still applies. The effective mode is the stricter of the two, in the order store, hash, redact, drop, so a client can never loosen the workspace setting.
  • When the client says it withheld argument values, Thoth treats the values as not received. Rules that depend only on structure keep working: tool name, action class, profile, agent mode, rate and session history.
  • A policy rule that reads argument values (for example arg.path contains ..., a regex: or a free-text condition) cannot be evaluated. In enforce mode the action is held for review (STEP_UP) with the reason code args_withheld; Thoth never allows it and never treats the rule as a silent non-match. In observe mode the action is allowed and the decision records that it would have been held because arguments were withheld.
  • Built-in checks that need the raw values (sensitive file paths, egress hosts, recipients, retrieval classification filters, policy bundles) hold the action the same way when the call could have contained an input for them. With hash or redact the argument names are kept, so only calls with a matching name are held; with drop the tool name decides. Outbound data redaction cannot run on withheld values and is recorded as not evaluated.
  • Thoth never returns a modified version of the arguments when they were withheld.
  • The declaration is recorded on the decision receipt, the decision's evidence and the replay snapshot, so a replay marks those captures as arguments-withheld.

Findings from a client's local scan

A client that withholds argument values can send what its own scan found instead, so checks that need the values can still run. Thoth's decision API accepts an optional client_findings field on POST /v1/enforce and POST /v1/explain. This is server support only: no SDK, proxy or other client sends the field yet, and clients that do will be announced separately. Requests without it behave exactly as before, including requests that withhold arguments.

{
  "data_handling": { "tool_arguments": "hash", "applied_at": "client", "version": 1 },
  "client_findings": {
    "version": 1,
    "scanner": { "name": "example-scan", "version": "1.0.0", "ruleset_id": "default", "ruleset_hash": "<sha256 hex>" },
    "scanned": ["dlp", "sensitive_path", "egress_host", "recipient"],
    "findings": [
      { "kind": "dlp", "category": "ssn", "count": 2 },
      { "kind": "egress_host", "verdict": "not_allowlisted", "host": "files.example.net" },
      { "kind": "recipient", "status": "outside", "data_move": false, "domains": ["partner.example"] }
    ]
  }
}
  • The field is valid only together with data_handling; without it the request is rejected with 422. It is strict: unknown keys and values are rejected, there is no free text, at most 64 findings are allowed, and the whole field may not exceed 4 KB. A finding never carries a value, a file path, a local part or a full email address; recipient domains and egress hosts are validated host names.
  • Finding kinds are dlp (category credential, email, phone, ssn or confidential_marker, with a count), sensitive_path (a count), egress_host (verdict not_allowlisted or unresolved, optional host) and recipient (status outside, unresolved or internal, whether the action moves data, optional domains).
  • Client-asserted. Thoth cannot check a client's scan. Everything the client reports is recorded as client-asserted on the decision receipt, the decision's evidence, the replay snapshot and the explanation, with whether it was relied on and why.
  • A report only ever adds holds. Findings feed the same hold, step-up and block paths that Thoth's own findings would. They never lower a decision, never clear a hold that something else raised, and an allow rule written against a client finding is not applied.
  • When a report is relied on ("accepted"). For a check to count as satisfied by the client's scan, all of these must hold: the check is listed in scanned; the scanner name, version and ruleset hash are present; your workspace accepts local scans (accept_local_scan, off by default); and the ruleset hash is on your allowlist (accepted_scanner_ruleset_hashes, at most 20 sha256 hex hashes). Otherwise Thoth behaves exactly as described under Arguments withheld by the client. A scan that finds nothing is not treated as clean unless it meets all of these. If the arguments were sent, Thoth scans them itself and ignores the client's report for decisions.
  • What an accepted scan changes, per check. sensitive_path uses the same guard as for arguments Thoth receives, including the session intent. egress_host and recipient use your egress allowlist and your recipient policy, matched by Thoth: send the host or the recipient domains and the client needs none of that configuration (a report with only a verdict is honoured as sent). Egress findings follow the egress gate exactly: with MCP control or the egress policy off, no host is flagged; with them on, a host your allowlist does not cover is flagged (an empty allowlist covers none), in observe mode as well as enforce mode. dlp is recorded and does not hold the call by itself; redaction needs the values, so it does not run.
  • Policy rules. Rule conditions finding.dlp.<category> >= n, finding.sensitive_path >= n, finding.egress_host.not_allowlisted, finding.egress_host.unresolved, finding.recipient.outside and finding.recipient.unresolved decide the same way whether the findings come from an accepted client scan or from Thoth's scan of arguments it received. When the report is not accepted or lacks the check, such a rule is treated like any rule that reads argument values: the call is held with args_withheld.
  • Requiring a report. With require_client_findings on, a client that withholds arguments and omits client_findings, or whose scanned lacks a check that applies to the call (DLP always, the others where the call could have had an input), is held with the reason findings_missing. It is a hold, not a block. In observe mode the hold is recorded and the action is allowed.
  • Replay: captures keep the findings the decision read, so a candidate rule that uses a finding.* condition replays from them. Where a capture did not record the check, the replay says it cannot evaluate it and why; it does not guess.

Limits of the DLP categories. Thoth's own DLP is pattern based, not a classifier. It looks for cloud and API key shapes, secret assignments (password=...), email addresses, North American style phone numbers, 123-45-6789 style numbers and confidentiality phrases. It misses other formats and encodings and can match text that is not sensitive. A client's scanner is its own code; its categories and counts are only as good as its ruleset, which is why you decide which rulesets to accept.

The three workspace settings (accept_local_scan, accepted_scanner_ruleset_hashes, require_client_findings) are available through the API and the thoth_data_handling Terraform resource. They are not yet in thothctl or the MCP configuration server.

What approvers see on a held action

An approver needs to see what a held call would do. While an action waits for approval, its approval record shows a short preview of the call: the command, query or code, or else its path, URL and similar context, never a dump of every argument. Credentials, secret assignments, email addresses and phone numbers in it are masked, and values of arguments named like secrets (a password, token or key) are hidden. The preview is at most 500 characters and appears in Approvals, the chat's held-action card, the Slack approval message and the MCP server's get_held_action.

Tool arguments settingThe held action shows
Not set, or storeThe masked preview
hash or redact, chosenThe argument names only
dropNothing about the arguments

The preview is kept only while the action is pending. It is removed from the approval record when the action is approved, denied or expires, and the Slack message is rewritten to its outcome.

Changing the setting

Changing it needs an admin with a recent second factor. A signed-in thothctl session confirms it in the browser; an API key used by Terraform does not need to.

thothctl settings data-handling get
thothctl settings data-handling set --tool-arguments redact --prompts drop
resource "thoth_data_handling" "this" {
  tool_arguments = "redact" # store | hash | redact | drop
  prompts        = "drop"   # store | hash | drop
}

These need thothctl 0.3.11 or provider 0.1.21 or later; in Pulumi the resource is thoth.governance.DataHandling. Destroying the Terraform resource returns the workspace to the defaults. From an MCP client, read the setting with get_data_handling and change it with preview_data_handling, committed like any configuration preview. A change applies to records made after it, not to records already kept.

Where data is kept

Trial and self-serve workspaces run on Thoth's hosted service in the United States: compute in Azure West US 2, and queues, keys and storage in AWS us-west-2. Thoth is hosted only; running it in your own cloud or air-gapped is not available yet.

How long

Agent events, including the decision records above, expire after 90 days.

On this page